So Im making a script where when you click the water it fires a remote event and it keeps on saying FireServer can only be called from the client at line 9.How do I fix it?
local water = script.Parent local ReplicatedStorage = game.ReplicatedStorage local waterEvent = ReplicatedStorage:WaitForChild("RemoteEventWater") local cd = water.ClickDetector cd.MouseClick:connect(function(plr) print(plr.Name.." Has Clicked the water") water.Transparency = 1 waterEvent:FireServer() print("Server has been fired") end) while wait()do if water.Transparency == 1 then wait(45) water.Transparency =1 end end