FIXED. When i F9'ed for the log. I forgot to check the Server-Log... It's all working
Howdy!
So, i'm working on a script that fires a RemoteEvent in ReplicatedStorage. It's fired from a LocalScript in a PlayerGui.
It fires the remote like this
RemotePlace1 = game.ReplicatedStorage.RemotePlace1 RemotePlace1:FireServer()
The Receiverscript is stored in ServerScriptService
That script is this:
OurEvent = game.ReplicatedStorage.RemotePlace1 OurEvent.OnServerEvent:Connect(function() print("OOF") end)
But, i don't get it to work :-/
Anyone in here who can tell me what i'm doing wrong?
Howdyy! Since I see nothing else wrong with it, then the problem must be in getting the signal on the button, If the LocalScript is inside the button, then is it
script.Parent.MouseButton1Click:Connect(function() RemoteEvent:FireServer() end)
?
I only have two ideas to make it work.
1: You might've forgotten to actually create the remoteEvent
2: You should try placing the server-side script inside your workspace