Are you sure that there is no other script that overwrites the player position during/after a jump? Since the script prints out all the debug messages, I imagine there is something else going on here.
local Position = workspace.Depart.Spawn:GetChildren()
local RandomPosition
--Function blablabla
if v.Character then
RandomPosition = Position[math.random(1, #Position)]
v.Character.HumanoidRootPart.CFrame = RandomPosition.CFrame
end
No bugs appeared after about 50 tries, it seems more stable (fingers crossed)
No other script that interfer no, the problem seem to be fixed, this is probably related to an instability of the random inside a CFrame
2 Likes