|
| 20 Jul 2014 06:25 PM |
I have this relatively simple script:
script.Parent.MouseButton1Down:connect(function() if script.Parent.Text ~= "" then script.Parent.Parent.Parent.Parent.Parent.Character:MoveTo(Vector3.new(game.Workspace[script.Parent.Text].Torso.Position)) script.Parent.Parent.Parent.Parent.Parent.Character["Player Teleport"]:remove() script.Parent.Parent.Visible = false end end)
This basically checks which name in the Gui I clicked on (In this case it was my own) and it's supposed to move the player to the other player. However it teleports me to the middle of the map under the map and I fall to my death. |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2014 06:26 PM |
script.Parent.Parent.Parent.Parent.Parent.Character
game.Players.LocalPlayer.Character |
|
|
| Report Abuse |
|
|
|
| 20 Jul 2014 06:27 PM |
Vector3.new(game.Workspace[script.Parent.Text].Torso.Position)
Position is a Vector3, and Vector3.new(Vector3) does not throw an error, but creates a Vector3 value with value 0, 0, 0.
game.Workspace[script.Parent.Text].Torso.Position |
|
|
| Report Abuse |
|
|
| |
|