I tried the script and it worked perfectly for me.
local plr = game.Players.LocalPlayer
local vibratesound = game:GetService("SoundService").Sound
script.Parent.MouseButton1Click:Connect(function()
vibratesound:Play()
print("MainGui Visible to false")
print("ChooseGui Visible to true")
end)
(The same script without ‘choose’ and ‘main’ GUI…)
I think i understood what is the issue. Its because this sounds were upload from my account in studio, and this game is from group. So i have to give permission to use it
I’m pretty sure sounds have to be parented to the Workspace (they play everywhere in the game) or a Part (local sound, only plays around the Part, distance depends on the sound’s MaxRollOffDistance Property).
Everything is local when you play test in Studio. In game the Server hosts the game so there’s a difference between local and global game dynamics.