Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why are only one of these scripts not working?

Asked by 8 years ago

So I just started using FE, and I am paranoid. I have two remote events in the replicated storage named ShowBrightnessGuiEvent and ShowWalkSpeedGuiEvent. So Far, only one of the scripts work. Am I doing something wrong?

 local ShowGuiEvent = game.ReplicatedStorage.ShowBrightnessGuiEvent

game.Players.PlayerAdded:connect(function(player)
    ShowGuiEvent:FireClient(player) -- player should be the player you want to send the message to
end)
 local ShowGuiEvent = game.ReplicatedStorage.ShowWalkSpeedGuiEvent

game.Players.PlayerAdded:connect(function(player)
    ShowGuiEvent:FireClient(player) -- player should be the player you want to send the message to
end)
0
Maybe include the client-code? Maybe you have a typo in one of the listeners BlueTaslem 18071 — 8y
0
I figured it out, thanks! laughablehaha 494 — 8y

1 answer

Log in to vote
1
Answered by
Oaktin 35
8 years ago

If any of these scripts are in the client they must be local scripts, if they are a server script then they will not run. Just a guess, try it out and see if it works.

Ad

Answer this question