I'm trying to move a local script into the player at a certain point so I can detect player input, and move said local script out after once a certain condition is met. However for whatever reason I the code cannot even find "PlayerScripts" inside the player.
ProximityPrompt.Triggered:Connect(function(plr)
Seat:Sit(plr.Character.Humanoid)
player = plr
local ClientSideScript = Vehicle.ClientVehicleScript:Clone()
ClientSideScript.Parent = plr.PlayerScripts
Seat.ProximityPrompt.Enabled = false
end)
Based on the nature of this issue I thought it has something to do with filtering enabled and all that jazz with not being able to edit things from the client. However, this whole code is running from a server script so I have no clue why I would be getting the error " PlayerScripts is not a valid member of Player"

1 comment
Well, problem is, I need to run the code on the server side. However now that you mention it, I could probably use remote functions called from the client.