I have a car buying and spawning system, that, when a car is spawned, it teleports the player to the car’s VehicleSeat. However, my local Character value seems to have something wrong with it. Here is the error:
Player.LocalPlayer only works in LocalScripts so in order to get someone’s Character in server for some reason you can create a RemoteEvent and use RemoteEvent.OnServerEvent event in ServerScript and RemoteEvent:FireServer() function in LocalScript.
When did I say that it’s local script lol? In my first reply I told what to do if it’s server sided script. But I didn’t say that it’s local or server script