|
| 25 Jul 2015 12:52 PM |
I DON'T MEAN ANYTHING IN THE TITLE, IT'S JUST SO PEOPLE ACTUALLY LOOK AT MY THREAD SINCE NOBODY EVEN LOOKED AT MY OTHER ONE!
So I've got this weld going on where it welds a part to my characters torso and then it's supposed to make it spin around it's axis, everything works fine except it doesn't spin....
game:GetService("RunService"):BindToRenderStep("Reposition", Enum.RenderPriority.Last.Value, function() if Character:FindFirstChild("Aura") then Character.Aura.CFrame = Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0) end end)
I've also tried this, but same thing happened
game:GetService("RunService"):BindToRenderStep("Reposition", Enum.RenderPriority.Last.Value, function() if Character:FindFirstChild("Aura") then Character.Aura.CFrame = Torso.CFrame * CFrame.Angles(math.rad(0),math.rad(500),math.rad(0)) end end) |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 25 Jul 2015 12:53 PM |
| You need to make the Angles Change. You have it as a constant (1) therefore it is not going to rotate. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 25 Jul 2015 12:53 PM |
Woulda helped, but nope
I don't need a siggy |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 Jul 2015 12:55 PM |
Your mom is fat
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
| |
|
|
| 25 Jul 2015 01:11 PM |
Your mom is fat [3]
( ͡ಠ ͜ʖಠ) |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 01:13 PM |
So I have this
game:GetService("RunService"):BindToRenderStep("Reposition", Enum.RenderPriority.Last.Value, function() if Character:FindFirstChild("Aura") then Character.Aura.CFrame = Character.Torso * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0)) end end)
And it works, but it only adds 10 to the y once, how do I make it keep adding? I think it's supposed to keep adding, but it doesn't for some reason. pls heeelp |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 Jul 2015 01:15 PM |
http://wiki.roblox.com/index.php?title=Lua_errors http://wiki.roblox.com/index.php?title=API:Class/RunService/RenderStepped http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting http://wiki.roblox.com/index.php?title=CFrame
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 Jul 2015 01:16 PM |
http://wiki.roblox.com/index.php?title=Arithmetic_operator
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 01:18 PM |
| @Time that doesn't really help since what I wanted to know is why doesn't the CFrame.Angles thingy add to the Y every 1/60th of a second? It only does it once for some reason.... |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 01:37 PM |
My mother may have her own area code But your mother is designated as her own solar system. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 25 Jul 2015 01:46 PM |
| Woulda helped, but nope[2] |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 25 Jul 2015 01:48 PM |
Since you didn't take my first advice, I'll just spoon feed you, since that's what you want.
game:GetService("RunService"):BindToRenderStep("Reposition", Enum.RenderPriority.Last.Value, function() if Character:FindFirstChild("Aura") then local currentRot = {Character.Aura.CFrame:toEulerAnglesXYZ()}; Character.Aura.CFrame = Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,currentRot[2]+1,0) end end)
|
|
|
| Report Abuse |
|
|