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
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 29 Jan 2015 09:17 PM |
| Obviously there's something really wrong, i'm new :) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
|
| 29 Jan 2015 09:39 PM |
What about with the Rotation part?
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 24 Mar 2011 |
| Total Posts: 577 |
|
| |
|
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 |
|
|
| |
|