Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trouble with sending variables through Remote Events, any suggestions?

So This is the Sender Client Side Code

game.Worskpace.script.event:FireServer(game:GetService("RunService").RenderStepped)

then the Server Client Script code is

script.RS.OnServerEvent:connect(function(player,RS)
end)

It claims that RS is a nil value, even if I exchange the

game.Worskpace.script.event:FireServer(game:GetService("RunService").RenderStepped)

with

local RS = game:GetService("RunService").RenderStepped
game.Worskpace.script.event:FireServer(RS)

It still says the same error, any suggestions?

5 comments

0

Why are you trying to pass a service? RenderStepped can only be used in a LocalScript and it's not like this would work at all.

0

:connect is also deprecated “:Connect”

0

:connect still works just like :connect, also it's because I'm doing framework to make a mesh be apart of the current camera, and right now it works, but it doesn't work in a server because RenderStepped is only a client side, but your able to get player in a server side script, so why can't u get RenderStepped?

0

the second time i said connect i meant to say :Connect

0

So if your able to bring a client side variable(player) then why aren't you able to bring over RenderStepped?

1 answer

So I now have it fixed, but here's the problem, it does not show up in the CurrentCamera(The Camera Child of Workspace) is their a Camera in the Players body?

This discussion is preserved as it was. New answers, comments, and votes are closed.