of     1   

Fluffmiceter
#141263682Wednesday, July 23, 2014 10:55 AM GMT

So I have a LocalScript in StarterGui, a RemoteEvent and a Script in ReplicatedStorage. LocalScript: game.ReplicatedStorage.RemoteEvent:FireServer("foo","bar") Script: script.Parent.RemoteEvent.OnServerEvent:connect(function(player,var1,var2) print(var1,var2) end) I check my server output on play solo, but for some reason nothing gets printed to the output. Why is this happening?
Geodesic
#141263851Wednesday, July 23, 2014 11:00 AM GMT

do scripts even run in replicatedstorage..?
Bebee2
#141264196Wednesday, July 23, 2014 11:11 AM GMT

No. Place the script anywhere BUT inside the ReplicatedStorage or any storages for that matter. Perhaps it would work then.
Fluffmiceter
#141265164Wednesday, July 23, 2014 11:38 AM GMT

I made a mistake when posting the situation. Sorry! So I have a LocalScript in StarterGui, a RemoteEvent in ReplicatedStorage, and a Script in ServerScriptService LocalScript: game.ReplicatedStorage.RemoteEvent:FireServer("foo","bar") Script: game.ReplicatedStorage.RemoteEvent.OnServerEvent:connect(function(player,var1,var2) print(var1,var2) end) I check my server output on play solo, but for some reason nothing gets printed to the output. Why is this happening?
Bebee2
#141265210Wednesday, July 23, 2014 11:39 AM GMT

Place the RemoteEvent in workspace and see what happens then.
filiptibell
#141267016Wednesday, July 23, 2014 12:26 PM GMT

I store all my RemoteEvents and remoteFunctions in ReplicatedStorage. It should work fine :o Try puttin a wait() at the top. Sometimes that helps, probably due to loading. ~The herp lerped a derp~
Fluffmiceter
#141267102Wednesday, July 23, 2014 12:28 PM GMT

^ Thanks, it worked.

    of     1