generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Very sensitive rotation

Previous Thread :: Next Thread 
badfitz67 is not online. 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 is not online. 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 is not online. 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 is not online. Rerumu
Joined: 11 Oct 2014
Total Posts: 950
15 Oct 2016 09:04 AM
mouse.TargetFilter = turret
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
15 Oct 2016 09:10 AM
#######################################
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image