How to fire the location of something over the server

Maybe I’ve been up too late coding and my brain is fried but my brain no work right now I guess.

LocalScript
Camera:FireServer(Player, PassportCam)

ServerScript

Camera.OnServerEvent:Connect(function(Player, Camera)
	
	zoomTo:FireClient(Player, "zoomto" , Camera)
	
end)

PassportCam is a location of a part referenced in both the localscript and serverscript.
But that data isn’t being sent through as it prints nil.

1 Like

You don’t send the player as an argument from the local script

It should be:
Camera:FireServer(PassportCam)

The player is automatically sent

1 Like

Ah yeah of course oof. thank you!
:slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.