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 problem

Previous Thread :: Next Thread 
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
31 Mar 2014 06:05 PM
function teleport(plrs, area)
for _, v in pairs(area) do
for i = 1, #plrs do
plrs[i].Character.Torso.CFrame = CFrame.new(area[math.random(1, #area)].Position + Vector3.new(0, 3, 0))
end
end
end

teleport(players, game.Workspace.Classic.Spawns:GetChildren())

It doesn't teleport :(


ℭ - Frame
Report Abuse
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
31 Mar 2014 06:08 PM
for i, v in pairs(area) do
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
31 Mar 2014 06:09 PM

Whats the difference?

ℭ - Frame
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
31 Mar 2014 06:11 PM

It didn't do anything.

ℭ - Frame
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
31 Mar 2014 06:13 PM
Oh my gosh, are you trying to kill them?

function teleport(plrs, area)
for _, v in pairs(area) do
for i = 1, #plrs do
plrs[i].Character:MoveTo(area[math.random(1, #area)].Position + Vector3.new(0, 3, 0))
end
end
end

teleport(players, game.Workspace.Classic.Spawns:GetChildren())

Dontcha know that separating the torso from the head (or vice versa) instananeously kills your subject. Come on now.
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
31 Mar 2014 06:14 PM

@fire, that wasn't the problem :/

CFrame works perfectly, its just not teleporting.

ℭ - Frame
Report Abuse
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
31 Mar 2014 06:14 PM
Why dont you just breakjoints, then they automatically spawn there?
Report Abuse
Clickest is not online. Clickest
Joined: 06 Aug 2013
Total Posts: 6504
31 Mar 2014 06:19 PM

Because it's not an actually spawn.

ℭ - Frame
Report Abuse
Kyrothehero is not online. Kyrothehero
Joined: 14 Aug 2012
Total Posts: 306
31 Mar 2014 06:28 PM
actual
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