Won't work in localscript?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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!
01 | local sound = script.Parent.Sound |
02 | local sound 1 = script.Parent.Thump |
07 | game.Ambient.FogEnd = 0 |
38 | game.Ambient.FogEnd = 50 |
41 | script.Parent.ClickDetector.MouseClick:connect(playsound) |