Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How come my Murder Game Script is not tping players to baseplate when done?

Asked by
MrPena 0
10 years ago

I have tried game.Players.Examplenoob.Character:MoveT... workspace.Base)

3 answers

Log in to vote
1
Answered by
Mr1Vgy 30
10 years ago
game.Players.PLAYEREXAMPLE.Character:MoveTo(game.Workspace.Base.Position)
Ad
Log in to vote
0
Answered by 10 years ago

Well first of all, you want to get ALL of the players, by that you would do :GetAllChildren()

local teleport = game.Workspace:FindFirstChild("Base")
game.Players:GetAllChildren().Character:MoveTo(teleport.Position,teleport)

--Please note that this is from zack785's answer, I have just added the :GetAllChildren()
Log in to vote
-1
Answered by 10 years ago
local teleport = game.Workspace:FindFirstChild("Base")
game.Players.Examplenoob.Character:MoveTo(teleport.Position,teleport)

--When teleporting to parts you need to do (part.Position,part), I don't really know the use since it's already a position but that's how it works.

Answer this question