Hello! I'm trying to use RemoteEvent to clone something infront of the player when he clicks the Gui's TextButton, but for some reason it only works in test mode.
First of all, here is my explorer: Screenshot
RemoteEvent, Script and LocalScript are marked.
Here is my LocalScript:
ThrowEvent = game.ReplicatedStorage:WaitForChild("ThrowEvent")
script.Parent.MouseButton1Click:connect(function()
ThrowEvent:FireServer()
end)
And server Script:
ThrowEvent = game.ReplicatedStorage:WaitForChild("ThrowEvent")
ThrowEvent.OnServerEvent:connect(function()
print("Event fired")
--Part that isn't important
end)
When I saw it only works in test mode, I tried only printing "Event fired", but that also didn't work in a server, so i'm guessing there's nothing wrong with other part of the script.
Does anybody have any idea what could be wrong? I tried similar script in another game, everything is same except it's about players moving to a part, when someone says "MoveTo" and it worked in both, test mode and the server (original concept was to only move player that says it, which I could easily fix, but I don't care about that, it was just a test).

1 comment
Test mode runs as though FE was disabled. To test if it works with FE click the start button near the blue test button to see if it works with FE.