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
 

Re: Question about teleport scripts

Previous Thread :: Next Thread 
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
17 Mar 2012 06:53 AM
This script here, how would I change it so it teleports everyone throughout 1 script, without having to touch it?

function onTouched(part)
local h = part.Parent:findFirstChild("Torso")
if (h ~=nil) then
h.CFrame = CFrame.new(40 + math.random(-100, 100), 48, 40 + math.random(-100,100))--input CFrame here

end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
17 Mar 2012 07:01 AM


C'mon please
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
17 Mar 2012 07:19 AM
bump
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
17 Mar 2012 07:22 AM
This is how I would teleport all the players.

for _,plr in pairs(game.Players:GetPlayers()) do
if plr.Character then
plr.Character:MoveTo(Vector3.new(0,0,0))
end
end
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
17 Mar 2012 07:24 AM
local c=game.Players:GetChildren()
for i=1,#c do
c[i].Character.Torso.CFrame = CFrame.new(40 + math.random(-100, 100), 48, 40 + math.random(-100,100))
end
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
17 Mar 2012 07:35 AM
Ok, thanks guys!

Canone of you come here to see if it works?

http://www.roblox.com/Gear-wars-NEW-place?id=19732565
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
17 Mar 2012 07:46 AM
Ok - it works.
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