My script is supposed to make a Motor6D and make the C0 and C1 connect but its not working. D: can someone help? PS: this is for a turret. I need my turret to be able to move around without breaking a weld. --This is my script--
01 | local base = script.Parent.Body |
02 | local Base = script.Parent.VehicleSeat |
03 |
04 | if script.Disabled = = false then |
05 |
06 | local motor = Instance.new( "Motor6D" ) |
07 | motor.C 0 = base |
08 | motor.C 1 = Base |
09 | motor.Parent = base |
10 | motor.Parent = script.Parent |
11 | end |
Heres my script
01 | local VehicleSeat = script.Parent |
02 |
03 | local Base = VehicleSeat.Parent.Hull.Bottom |
04 | local Swivel = VehicleSeat.Parent.Turret.Top |
05 |
06 | local W = Instance.new( "Motor" , Base) |
07 | W.Part 0 = Base |
08 | W.Part 1 = Swivel |
09 | W.C 0 = CFrame.new( 0 , 0 , - 0.2 ) * CFrame.fromEulerAnglesXYZ( 0 , 0 , 0 ) |
10 |
11 | Base.Anchored = false |
12 | Swivel.Anchored = false |
13 |
14 | Base.Motor.DesiredAngle = 0 |
15 | Base.Motor.MaxVelocity = 0.01 |
Hope this helps