|
| 08 Oct 2012 02:52 PM |
This is my script that teleports a player and it's supposed to teleport my spawns but it only teleports the player: player = script.Parent.Parent.Parent.Parent repeat wait() until player.Character
function onClick() if player.Character:findFirstChild("Torso") then player.Character:MoveTo(Vector3.new(19, 20, -14)) game.Workspace.SpawnLocation.CFrame = CFrame.new(21, 7, -17)--CHANGE game.Workspace.SpawnLocation.CFrame = CFrame.new(83, 6, 159) end end script.Parent.MouseButton1Down:connect(onClick)
script.Parent.MouseButton2Down:connect(function() script.Parent.Parent:remove() end)
(I added the change to remind myself to change the location) Some forum person locked my last post of this for some reason. Idk why.
|
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 03:00 PM |
player = script.Parent.Parent.Parent.Parent repeat wait() until player.Character
function onClick() if player.Character:findFirstChild("Torso") then player.Character:MoveTo(Vector3.new(19, 20, -14)) game.Workspace.SpawnLocation.CFrame = CFrame.new(Vector3.new(21, 7, -17))--CHANGE game.Workspace.SpawnLocation.CFrame = CFrame.new(Vector3.new(83, 6, 159)) end end script.Parent.MouseButton1Down:connect(onClick)
script.Parent.MouseButton2Down:connect(function() script.Parent.Parent:remove() end) |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 03:44 PM |
@blindbird17 I highly doubt anyone but yourself disabled replies to your post. You probably, unaware of what it actually did, accidentally checked 'Do not allow replies to this post.' |
|
|
| Report Abuse |
|
|