local maps = game.ServerStorage.Maps:GetChildren() local Storage = game.Workspace.MapStorage local PLR = game.Players.LocalPlayer.Character local Point = game.Workspace.Hub.Spawn local Point2 = game.Workspace.Point2 while true do local random_map = maps[math.random(1,#maps)] random_map:Clone().Parent = Storage wait (5) PLR.HumanoidRootPart.CFrame = CFrame.new(math.random(-178,-218), 19, math.random(156,196)) wait (60) PLR.HumanoidRootPart.CFrame = CFrame.new(math.random(39,79), 19, math.random(152,192)) Storage:ClearAllChildren() wait (15) end
Before-- Now ---
local PLR = game.Players.LocalPlayer.Character local Point = game.Workspace.Hub.Spawn local Point2 = game.Workspace.Point2 local PLRname = game.Players.LocalPlayer.Name while true do wait (5) PLR.HumanoidRootPart.CFrame = CFrame.new(math.random(39,79), 19, math.random(152,192)) wait (60) PLR.HumanoidRootPart.CFrame = CFrame.new(math.random(-178,-218), 19, math.random(156,196)) wait (15) end
The teleport still seems to not work.
Try setting the HumanoidRootPart's Position of the Character. (make sure it's server side)
Ex:
Player.Character.HumanoidRootPart.Position = (position here)