So I'm trying to fire a RemoteEvent in ReplicatedStorage from something in PlayerGui. Nothing is working. On my localscript I have 3 lines in between my script.Parent.MouseButton1Click function. One prints "button clicked" the other one fires the server, and the last one prints "event fired". I added a print in the script that controls the RemoteEvent to print out "Event fire detected." but nothing came out, and no errors either but it's not working. Here is my code:
First Button local script:
script.Parent.MouseButton1Click:Connect(function()
print("button clicked")
game.ReplicatedStorage.conveyorEvent:FireServer(game.Players.LocalPlayer, "go")
print("event fired")
end)
Second Button local script:
script.Parent.MouseButton1Click:Connect(function()
print("button clicked")
game.ReplicatedStorage.conveyorEvent:FireServer(game.Players.LocalPlayer, "stop")
print("event fired")
end)
and my script for my RemoteEvent is a server script that is a descendant of the actual event.
What will fix it?

2 comments
I don't think you need to give the player as the first parameter when firing from client to server
although from server to client you do