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 » Scripters
Home Search
 

Re: Help

Previous Thread :: Next Thread 
VVaterballoon is not online. VVaterballoon
Joined: 10 Aug 2015
Total Posts: 172
09 Oct 2015 03:45 PM
i have 8 parts
i want to teleport 1 player per part
Once a player is on a part another player can no longer be teleported there.
-------------------------------------------------------------------------------------
player.Character.Torso.CFrame = game.Workspace.p1.Position or p2 or p3 or p4 or p5 or p6 or p7 or p8
------------------------------------------------------------------------------------------


"Splish Splosh Sploch"
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
09 Oct 2015 03:49 PM
psst,
.CFrame = CFrame.new(game.Workspace.p1.Position)
Report Abuse
VVaterballoon is not online. VVaterballoon
Joined: 10 Aug 2015
Total Posts: 172
09 Oct 2015 03:50 PM
Slpsishy!


"Splish Splosh Sploch"
Report Abuse
VVaterballoon is not online. VVaterballoon
Joined: 10 Aug 2015
Total Posts: 172
09 Oct 2015 03:51 PM
dank u bu well i need more help :(


"Splish Splosh Sploch"
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
09 Oct 2015 03:59 PM
Ok so what you'd want to do is loop through all the players and change their Character.Torso.CFrame to that of the brick, something like this

local players = game:GetService("Players"):GetPlayers()
for i = 1,#players do
player[i].Character.Torso.CFrame = CFrame.new(game.Workspace["p"..i].Position) + Vector3.new(0,3,0) --spawns 3 studs higher :D
end

This is assuming that you don't have more playeres than you have teleport locations

morashsPeasant is a peasant
Report Abuse
VVaterballoon is not online. VVaterballoon
Joined: 10 Aug 2015
Total Posts: 172
09 Oct 2015 04:03 PM
So do i have 2 rename de p1 p2 p3 p4 spawn blocks?


"Splish Splosh Sploch"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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