soundをscriptから再生する【Roblox Studio】

方法

local Part = script.Parent

-- create a sound
local sound = Instance.new("Sound", Part)
sound.SoundId = "rbxassetid://301964312" 

sound:Play()

参考

https://developer.roblox.com/en-us/api-reference/class/Sound

コメントを残す

メールアドレスが公開されることはありません。