|
| 30 Sep 2016 03:52 PM |
I have this: Model- Camera Union- Cam Part- Killbrick Part- SwivelPoint
Now, in SwivelPoint there is a script that says:
while true do wait() script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(7), 0) wait(0.03) end
This makes it spin. I have welds in the SwivelPoint connecting it to the cam and another to the killbrick. I want it to spin and the cam and killbrick spin with it in their respective positions to the swivel.
But the swivelpoint spins and the rest stay still. Why? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2016 03:54 PM |
| All connected objects have to be unanchored to work correctly and a camera is not a BasePart, just a PVInstance so it cannot be welded |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2016 03:55 PM |
So the union can't be welded? They are unanchored. |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2016 03:57 PM |
| But then why doesn't the part, KillBrick move? |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Sep 2016 04:12 PM |
| Okay I got the welds but not because it is unanchored it falls and glitches around and flys away. How do i keep it where it was without anchoring? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2016 04:13 PM |
body movers or cframe or weld to anchored object (as long as 2 connected things are unanchored there are no glitches) |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2016 04:24 PM |
Well i ununioned the cam so that worked and i have one part anchored. Here is the rotate script now: local i = 0 while true do wait() script.Parent.CFrame = script.Parent.Parent.SwivelPointSpot.CFrame * CFrame.Angles(math.rad(i+1), 0, 0) i = i+1 wait(0.03) end
but that makes it turn because it won't go into the right spot and spin the wrong axis |
|
|
| Report Abuse |
|
|
| |
|