|
| 06 Jan 2013 08:54 AM |
How would i do this?
function tele(hit)
end script.Parent.Touched:connect(tele) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 06 Jan 2013 09:04 AM |
| You have to make a script to move the players torso. |
|
|
| Report Abuse |
|
|
Luc599345
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 1169 |
|
|
| 06 Jan 2013 10:03 AM |
function tele(hit) local char = hit.Parent local pyr = game:service'Players':GetPlayerFromCharacter(char) if pyr and char and char:FindFirstChild("Torso") then char.Torso.CFrame=CFrame.new(position you want here!) end end script.Parent.Touched:connect(tele) |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2013 10:13 AM |
I like :MoveTo a little better. and I'll add a debounce
time = 1 --Seconds before another player can touch it. ting = 0 function tele(hit) if ting == 0 and hit.Parent:FindFirstChild("Humanoid") ~= nil then ting = 1 hit.Parent:MoveTo(Vector3.new(0, 0, 0)) --(0,0,0) is the XYZ coordinates where the player goes. print(""..hit.Parent.Name.." was teleported!") wait(time) ting = 0 end end script.Parent.Touched:connect(tele)
> "Even the sun sets in Paradise" ~Blueboy112 |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2013 10:19 AM |
Ive got
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then hit.Parent:MoveTo(Vector3.new(workspace.TeleTo.Position.X,workspace.TeleTo.Position.Y+2,workspace.TeleTo.Position.Z)) end end) |
|
|
| Report Abuse |
|
|