The first two print() functions fire in the output and I am putting game.ReplicatedStorage.RemoteEvent:FireClient(game.Players.D3r3kM4n) into my console bar (on the server side of the F9 screen) but nothing happens. I even tried to run this in a script in ServerScriptService but nothing happened there either.
What may be happening and how can I fix this?
First of all… :FireClient() only works with localscripts… and second of all, i believe localscript can only run if it’s on a player character, player scripts, or playergui… and you said it’s on replicatedfirst?
The code you’ve provided in your post should work fine as long as the event is fired after the client has finished the wait time at the beginning of the LocalScript. What are you using this event for in your game? Knowing what you’re trying to accomplish would help.
I put the local script into both PlayerScripts and ReplicatedFirst. Plus, the Roblox description/documentation of a local script says that it will run even in ReplicatedFirst.
I was trying to make it so that the client’s camera moves to a position and I know that it cannot be done in the server but I need to make it so the server can control that.
Also, like I mentioned, the event is fired via F9 console on the Server tab. The time that I enter the command into the console is way beyond the time that the waiting finishes, signaled by the second print('run') function.
I am not super experienced in using the f9 menu, but the command line seems to act strangely compared to Command bar in the View tab. If I try to do print("a") it does not print anything.
The code seems to work if I use the Command bar on the Server.