Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trouble with sending variables through Remote Events, any suggestions?

Asked by 5 years ago

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?

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. xPolarium 1388 — 5y
0
:connect is also deprecated “:Connect” ABK2017 406 — 5y
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? Stanlyhalo 0 — 5y
0
the second time i said connect i meant to say :Connect Stanlyhalo 0 — 5y
0
So if your able to bring a client side variable(player) then why aren't you able to bring over RenderStepped? Stanlyhalo 0 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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?

Ad

Answer this question