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: Rotation for Torso?

Previous Thread :: Next Thread 
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:16 PM
I want to be rotating a character after I teleport him, what's wrong with this?

getchildren[a].Character.Torso.CFrame = CFrame.new(Rotation.new(-90, -89.98, -90))
Report Abuse
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:17 PM
Obviously there's something really wrong, i'm new :)
Report Abuse
iwishforpie1 is online. iwishforpie1
Joined: 20 Mar 2011
Total Posts: 1423
29 Jan 2015 09:19 PM
CFrame is both position and a rotation, this is your fix:

getchildren[a].Character.Torso.CFrame= CFrame.new(-> YOUR POSITION <-)*CFrame.Angles(math.rad(-90),math.rad(-89.98),math.rad(-90)
Report Abuse
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:31 PM
it says this

21:33:42.717 - Workspace.Game:15: ')' expected near ','

getchildren[a].Character.Torso.CFrame = CFrame.new((-18, 2.185, -57.16)*CFrame.Angles(math.rad(-90),math.rad(-89.98),math.rad(-90))

NOOO

Im having such a hard time
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
29 Jan 2015 09:35 PM
You added an extra "(" fix:
getchildren[a].Character.Torso.CFrame = CFrame.new(-18, 2.185, -57.16)
Report Abuse
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:39 PM
What about with the Rotation part?
Report Abuse
iwishforpie1 is online. iwishforpie1
Joined: 20 Mar 2011
Total Posts: 1423
29 Jan 2015 09:42 PM
getchildren[a].Character.Torso.CFrame = CFrame.new(-18, 2.185, -57.16)*CFrame.Angles(math.rad(-90),math.rad(-89.98),math.rad(-90))

there, that should do it
Report Abuse
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:44 PM
Last bug.

It says I need ends in here -_- i've tried a lot of things

while players >= 2 do
pick()
teleport()
removemap()
wait(1)
else
wait()

end
Report Abuse
iwishforpie1 is online. iwishforpie1
Joined: 20 Mar 2011
Total Posts: 1423
29 Jan 2015 09:46 PM
while true do
if players >= 2 then
pick()
teleport()
removemap()
wait(1)
else
wait()
end
end

You can't have an else for while true do.
Report Abuse
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:54 PM
You mean if and then?
Report Abuse
RoboGean is not online. RoboGean
Joined: 24 Mar 2011
Total Posts: 577
29 Jan 2015 09:57 PM
22:00:35.644 - Workspace.Game:24: attempt to compare number with table

Line 24 is the if players >= 1 line

I have a variable for players it's players = game.Players:GetChildren()
Report Abuse
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
29 Jan 2015 11:10 PM
#players
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