badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 15 Oct 2016 07:35 AM |
I'm trying to make the camera follow the rotation of the turret, but it's incredibly sensitive and spins around with the slightest mouse movement
How can I fix this?
code: mouse.Move:connect(function() turret.Model:SetPrimaryPartCFrame(CFrame.new(turret.Model:GetPrimaryPartCFrame().p,mouse.Hit.p)) -- point turret towards mouse workspace.CurrentCamera.CFrame = turret.Model:GetPrimaryPartCFrame() * CFrame.new(0,5,10) -- set camera and offset camera end)
"Attention duellists! My hair will huff, my hair will puff and my hair will blow down your house!" |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 15 Oct 2016 07:40 AM |
| Change from a mouse move to a renderstep? |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 15 Oct 2016 07:48 AM |
"Change from a mouse move to a renderstep? "
causes it to constantly rotate even when mouse isn't moving, which I don't want
"Attention duellists! My hair will huff, my hair will puff and my hair will blow down your house!" |
|
|
| Report Abuse |
|
|
Rerumu
|
  |
| Joined: 11 Oct 2014 |
| Total Posts: 950 |
|
|
| 15 Oct 2016 09:04 AM |
| mouse.TargetFilter = turret |
|
|
| Report Abuse |
|
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 15 Oct 2016 09:10 AM |
| ####################################### |
|
|
| Report Abuse |
|
|