RoReimer
|
  |
| Joined: 12 May 2013 |
| Total Posts: 170 |
|
|
| 27 Sep 2016 05:56 PM |
hi guys, I have a brick that is welded onto something. im trying to make this brick rotate (without moving position)
i did this & it worked, but it keeps moving the brick. but i need it to stay still can somebody teach me how to rotate a brick without moving it or is this even possible please help
while wait(0.2) do script.Parent.rotate =script.Parent.Rotate + Vector3.new(1,1,1) end |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2016 06:13 PM |
script.Parent.Rotate =script.Parent.Rotate + Vector3.new(1,1,1)
not script.Parent.rotate =script.Parent.Rotate + Vector3.new(1,1,1) bc rotate is lower xD!
|
|
|
| Report Abuse |
|
|
|
| 27 Sep 2016 06:13 PM |
and dont use Vector3 use a numerical value :)) forgot to fix that #tired
|
|
|
| Report Abuse |
|
|
|
| 27 Sep 2016 06:28 PM |
CFrame is much better, unless you want the supposed block to glitch out if something happens be on it (example.) CFrame prevents this from happening:
while wait(.2) do script.Parent.CFrame = scrcipt.Parent.CFrame * CFrame.Angles(math.rad(1),math.rad(1),math.rad(1)) end
Search the internet if you want to find out what radians are.
This siggy is copyrighted © |
|
|
| Report Abuse |
|
|
RoReimer
|
  |
| Joined: 12 May 2013 |
| Total Posts: 170 |
|
|
| 27 Sep 2016 08:39 PM |
thank you so much killerbot but i found a new problem the part is welded onto another part & although this script is only linked to the first part, both parts rotate together. is there anyway to rotate just 1 part or is this impossible because of the weld? I tried using constraints but nothing is working please help |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 27 Sep 2016 10:54 PM |
part.CFrame = part.CFrame * CFrame.Angles(0,0,0)
|
|
|
| Report Abuse |
|
|
Thezi
|
  |
| Joined: 23 May 2014 |
| Total Posts: 253 |
|
|
| 28 Sep 2016 05:24 AM |
cframe is better
return thezi |
|
|
| Report Abuse |
|
|