I’m having a issue when the player gets teleported the seat gets brought to the round how do i fix here is the code:
--Anti Seat
for i, v in pairs(game.Players:GetChildren()) do
if v.Afk.Value == false then
if v.Character.Humanoid.Seated == true then
v.Character.Humanoid.Jump = true
end
end
end
wait(1)
for i, v in pairs(game.Players:GetChildren()) do
if not v.Afk.Value then
table.insert(plrtable, v)
print(plrtable)
print(v.Afk.Value)
v.InRound.Value = true
v.Character.HumanoidRootPart.CFrame = CFrame.new(clone.Spawn.Position)
v.Character.HumanoidRootPart.CFrame = clone.Spawn.CFrame * CFrame.new(0, 1, 0)
v.Character.Humanoid.Jump = true
else
--v.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Spawn.SpawnLocation.Position)
--v.Character.HumanoidRootPart.CFrame = workspace.Spawn.SpawnLocation.CFrame * CFrame.new(0, 1, 0)
--v.InRound.Value = false
end
end