My character sometimes becomes immobile with his head in the floor. Do you guys know why this happens?
I don’t know why that is but is your spawnpoint in the ground? Try lifting the spawnpoint up a few studs if so.
My spawnpoint isn’t in the ground, but I did realized something odd. On the client, the character is not at the same location than the server. Do you know why this happens? I could give you images if you want.
Do you have any tools or character scripts?
No tools, but there is a fall damage script.
Alright, if it’s run on the client, you should send the script here.
It’s not run on the client. In the lobby everything is fine but when the players get teleported they get offset?
Probably that. You should send that script.
local Map = GameFolder.Map:FindFirstChildOfClass("Model")
for _, v in pairs(GameFolder.Players.Lobby:GetChildren()) do
v.Parent = GameFolder.Players.Playing
v.PrimaryPart.Position = Map.Spawns:GetChildren()[math.random(1, #Map.Spawns:GetChildren())].Position
wait()
end
I think I just realized the issue…
Is it because I’m only setting the primary part’s position?
You should be using PivotTo
instead of v.PrimaryPart.Position
. Though this doesn’t seem to be teleporting the character.
Ok I will try that thanks for the info. I didn’t realize how to move models without SetPrimaryPartCFrame
You are such a lifesaver. Thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.