Hi, for the past month ive been working on a camping like game. I made a car in the lobby to teleport people to the main map, but its super laggy and the player dies when teleported, heres the script:
workspace.Car.Position = Vector3.new(52.62, 155.521, 8.33)
workspace.Car.Transparency = 0.9
wait(0.1)
workspace.Car.Transparency = 0.8
wait(0.1)
workspace.Car.Transparency = 0.7
wait(0.1)
workspace.Car.Transparency = 0.6
wait(0.1)
workspace.Car.Transparency = 0.5
wait(0.1)
workspace.Car.Transparency = 0.4
wait(0.1)
workspace.Car.Transparency = 0.3
wait(0.1)
workspace.Car.Transparency = 0.2
wait(0.1)
workspace.Car.Transparency = 0.1
wait(0.1)
workspace.Car.Transparency = 0
wait(5)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
workspace.Car.Position += Vector3.new(0.2,0,0)
wait(0.1)
game.Players:GetChildren()[1].Character.Head.Position = workspace.Map.Spawns.Spawn1.Position
wait(0.1)
game.Players:GetChildren()[2].Character.Head.Position = workspace.Map.Spawns.Spawn2.Position
wait(0.1)
game.Players:GetChildren()[3].Character.Head.Position = workspace.Map.Spawns.Spawn1.Position
wait(0.1)
game.Players:GetChildren()[4].Character.Head.Position = workspace.Map.Spawns.Spawn3.Position
wait(0.1)
game.Players:GetChildren()[5].Character.Head.Position = workspace.Map.Spawns.Spawn1.Position
wait(0.1)
game.Players:GetChildren()[6].Character.Head.Position = workspace.Map.Spawns.Spawn4.Position
wait(0.1)
game.Players:GetChildren()[7].Character.Head.Position = workspace.Map.Spawns.Spawn1.Position
wait(0.1)
game.Players:GetChildren()[8].Character.Head.Position = workspace.Map.Spawns.Spawn5.Position
if workspace.Map.Monster.Attack.Value == 1 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[1].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 2 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[2].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 3 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[3].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 4 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[4].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 5 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[5].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 6 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[6].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 7 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[7].Character.Head.Position
elseif workspace.Map.Monster.Attack.Value == 8 then
workspace.Map.Monster.Head.Position = game.Players:GetChildren()[8].Character.Head.Position
end