|
| 10 Nov 2016 09:16 AM |
| I've made a turret that shoots while it turns in circles. But that isn't what I want. How would i make the turret face the direction of the player (with rays maybe?)? The rest i can handle. This idea hit me, how do i make the turret face the right direction? |
|
|
| Report Abuse |
|
|
Egzekiel
|
  |
| Joined: 10 Jan 2011 |
| Total Posts: 1079 |
|
|
| 10 Nov 2016 09:45 AM |
Use a BodyGyro or a loop and use model:SetPrimaryPartCFrame(turret.Position,torso.Position)
|
|
|
| Report Abuse |
|
|
|
| 10 Nov 2016 05:29 PM |
| what does model set primary part cframe do? make it look at point? |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
|
| 10 Nov 2016 05:31 PM |
while game:GetService('RunService').RenderStepped:wait() do model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame,target.CFrame) end |
|
|
| Report Abuse |
|
|
caca50
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 2037 |
|
| |
|
|
| 10 Nov 2016 06:31 PM |
| Alls gud, except that my hinge that i have in place to make it turn "forever", when disabled it doesn't make the turret stare at the player... |
|
|
| Report Abuse |
|
|
| |
|