generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Teleportation Script

Previous Thread :: Next Thread 
Z007 is not online. Z007
Joined: 14 Sep 2010
Total Posts: 11729
09 May 2012 11:51 AM
Yeah, I'm pretty sure this is basically JUNK.

function onTouch(part)
O009 = script.Parent
arget = CFrame.new(-9.7, 24, 107.6) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + Vector3.new( i * 5, 0, 0)
end
O009.Touched:connect(onTouch)

end
Report Abuse
Celestus is not online. Celestus
Joined: 15 Aug 2011
Total Posts: 14873
09 May 2012 11:54 AM
thx i rlly needed this 1
Report Abuse
StatueOfTrolls is not online. StatueOfTrolls
Joined: 10 Apr 2012
Total Posts: 48
09 May 2012 11:57 AM
It doesn't work. That's why I'm posting it.

Derp.
This, is Z007 by the way.
Report Abuse
Celestus is not online. Celestus
Joined: 15 Aug 2011
Total Posts: 14873
09 May 2012 12:02 PM
Isn't 'arget' supposed to be target?
Report Abuse
jelly134 is not online. jelly134
Joined: 25 Aug 2008
Total Posts: 1137
09 May 2012 12:15 PM
Fixed

O009 = script.Parent --this needs to be outside of the function

function onTouch(part)
target = CFrame.new(-9.7, 24, 107.6) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + CFrame.new( i * 5, 0, 0)
end
end

O009.Touched:connect(onTouch) --this also needs to be outside of the function you want it to trigger

--This should hopefully work for you :)
Report Abuse
Z007 is not online. Z007
Joined: 14 Sep 2010
Total Posts: 11729
09 May 2012 03:38 PM
Doesn't work... Don't know why.
Report Abuse
Z007 is not online. Z007
Joined: 14 Sep 2010
Total Posts: 11729
09 May 2012 07:35 PM
Bump
Report Abuse
jelly134 is not online. jelly134
Joined: 25 Aug 2008
Total Posts: 1137
10 May 2012 10:10 AM
i know why, it says 'in ipairs'. instead of 'in pairs'
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image