I cant seem to teleport the player?!?
Asked by
5 years ago Edited 5 years ago
01 | local maps = game.ServerStorage.Maps:GetChildren() |
02 | local Storage = game.Workspace.MapStorage |
03 | local PLR = game.Players.LocalPlayer.Character |
04 | local Point = game.Workspace.Hub.Spawn |
05 | local Point 2 = game.Workspace.Point 2 |
07 | local random_map = maps [ math.random( 1 ,#maps) ] |
08 | random_map:Clone().Parent = Storage |
10 | PLR.HumanoidRootPart.CFrame = CFrame.new(math.random(- 178 ,- 218 ), 19 , math.random( 156 , 196 )) |
12 | PLR.HumanoidRootPart.CFrame = CFrame.new(math.random( 39 , 79 ), 19 , math.random( 152 , 192 )) |
13 | Storage:ClearAllChildren() |
Before--
Now ---
01 | local PLR = game.Players.LocalPlayer.Character |
02 | local Point = game.Workspace.Hub.Spawn |
03 | local Point 2 = game.Workspace.Point 2 |
04 | local PLRname = game.Players.LocalPlayer.Name |
07 | PLR.HumanoidRootPart.CFrame = CFrame.new(math.random( 39 , 79 ), 19 , math.random( 152 , 192 )) |
09 | PLR.HumanoidRootPart.CFrame = CFrame.new(math.random(- 178 ,- 218 ), 19 , math.random( 156 , 196 )) |
The teleport still seems to not work.