It should, but it doesn't..?
local s = game.Workspace.Part.Sound local b = script.Parent.Parent.Song2.Script.Disabled function Clicked() s.SoundId = "rbxassetid://148321914" s:Play() end script.Parent.MouseButton1Down:connect(Clicked) if s.IsPlaying == true then b = true end
local s = game.Workspace.Part.Sound local b = script.Parent.Parent.Song2.Script --.Disabled returns a boolean, changing the boolean wont change the Disabled property further into the script function Clicked() s.SoundId = "rbxassetid://148321914" s:Play() b.Disabled = true --set .Disabled to true to disable the script when it is played end script.Parent.MouseButton1Down:connect(Clicked)