I know this script isn't the most efficient, but i'm having troubles with it. I want to click a button and make fog go to 0 and play a thump noise got that done. It just won't work in local script that makes it so it will only happen to the person that presses it. It's either a simple mistake or the whole 9 yards. Thanks for helping!
local sound = script.Parent.Sound local sound1 = script.Parent.Thump function playsound() sound:Play() game.Ambient.FogEnd = 0 sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(1) sound1:Play() wait(2) sound1:Play() wait(3) game.Ambient.FogEnd = 50 end script.Parent.ClickDetector.MouseClick:connect(playsound)