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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Whats wrong with this script?

Previous Thread :: Next Thread 
BobbyAteCheese is not online. BobbyAteCheese
Joined: 27 Jun 2011
Total Posts: 7
07 Sep 2012 05:28 PM
I was making a group teleport with a waiting system and I cant seem to get it going?
Please help. Thank you!


wait (10)
target = CFrame.new(0, 100, 0)
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)

end
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
07 Sep 2012 07:54 PM
Change
"player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)"
to
"player.Character.Torso.CFrame = target + CFrame.new(0, i * 5, 0)"

Basicly you tried to add up a Vector3-value and a CFrame-value which caused the script to error.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
07 Sep 2012 08:03 PM
No.

To add to CFrame with vector 3 you do

Part.CFrame = CFrame.new(0,0,0) + Vector3.new(0,0,0)

and to do it with CFrame only you do

Part.CFrame = CFrame.new(0,0,0) * CFrame.new(0,0,0)
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