Basically, I'm making a fog thingy. A modulescript will go through each area's "FogBoxes" and add a Touched
event to it. Essentially, it's not calling the localscript that changes fog.
Here's the sending code:
function SetFog(char, id) print(game.Players[char.Name]) game.ReplicatedStorage.Fog:FireClient(game.Players[char.Name], module.FogVals[id]) end
the receiving code:
script.Parent.OnClientEvent:Connect(function(val)
Help?
Hey guys! So I was doing some research, and I found out that it works when it was moved to StarterPlayerScripts. LocalScripts apparently have to be in the player for it to work.