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
 

Teleport help?

Previous Thread :: Next Thread 
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
29 Mar 2014 01:24 PM
I need a script that teleports everyone to some co-ordinates, I will change the co-ordinates themselves, so do not worry about that, thanks.
Report Abuse
ZirutoHellfire is not online. ZirutoHellfire
Joined: 16 Aug 2012
Total Posts: 4647
29 Mar 2014 01:26 PM
player.Character:MoveTo(x, y, z)

-Sophisticated bucket moose father of c&g-
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Mar 2014 01:30 PM
player.Character:MoveTo(Vector3.new(x, y, z))
Report Abuse
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
29 Mar 2014 01:49 PM
y dis no work
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
29 Mar 2014 01:59 PM
for I,v in pairs(game.Players:GetPlayers()) do
x = v.Character or v.CharacterAdded:wait()
x:MoveTo(Vector3.new(x,y,z))
end
Report Abuse
GreatKyle232 is not online. GreatKyle232
Joined: 25 Sep 2010
Total Posts: 48
29 Mar 2014 02:19 PM
since I'm not making this for me, i didn't go all out (and didn't test or even look over the code), but you should be able to fix it if there're any errors

local admins = {"GreatKyle232","you","can","add","anyone's","name","here"}

game.Players.PlayerAdded:connect(function(player)
local test = false
for i=1,#admins do if admins[i] == n then test = true end end
if not test then return end
player.Chatted:connect:function(function(msg,player)
if msg:lower() ~= "come here" then return end
local coords = Vector3.new(0,0,0)
local p = game.Players:children()
for i=1,#p do coroutine.resume(coroutine.create(function()
p[i].Character.Torso.CFrame = p[i].Character.Torso.CFrame.p + coords - p[i].Character.Torso.CFrame.p + Vector3.new(math.rad()*5,0,math.rad()*5)
end end))
end) end)
Report Abuse
GreatKyle232 is not online. GreatKyle232
Joined: 25 Sep 2010
Total Posts: 48
29 Mar 2014 04:33 PM
ah, i went through my own script, i forgot i renamed the variable n to player, so look for "n" and replace that with player.Name
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