Hey guys, i recently made a game called “Parkour Islands”. The game is good, but there is this glitch that makes players fly around in random places in the game. It doesn’t happen for the player himself, but for other people looking at him. I can’t figure out what is happening.
Screenshots:
People is under the ground:
People flying in the air:
I don’t understand what’s happening
I think mabye this happens in the teleport part of the game. Idk. Here is the game link and the code i use to teleport:
for i, v in pairs(players) do
-- Checking if the character is loaded
local Character = game.Workspace:FindFirstChild(players[i].Name)
if Character then
SpawnCounter += 1
local SpawnLocation = SpawnLocations:FindFirstChild(SpawnCounter)
local Pivot = Character:GetPivot()
Character:PivotTo(SpawnLocation.CFrame)
end
end
I use the spawn counter so the players appear on different spawns. Thank you.
(English is not my first language)