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
 

Anyone know how to make it so when you zoom

Previous Thread :: Next Thread 
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:32 PM
I'm making a game, and there's a part in it I need to zoom in and I need the mouse to move smoothly, the problem is I don't know how to do this. Does anyone know how? I've seen it done at multiple places.
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
10 Feb 2015 01:34 PM
Call me a moron but I don't understand what you're asking. Clarify?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:36 PM
In this part of my game, I need to zoom in. So I change the field of view to 30.
When I do this, when you move your mouse, it moves in steps. It does not move smoothly.
I've seen it done before where its smooth but I have no idea how to do it.
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
10 Feb 2015 01:39 PM
Well I just went into studio and changed my FOV to 30 and didn't notice anything wrong with the mouse. Might be an issue on your end because I'm not experiencing any issues.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:41 PM
repeat wait(1) until game.Workspace.CurrentCamera
game.Workspace.CurrentCamera.FieldOfView=20


Put that in a local script in starterpack. Try to put your mouse on something far away.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:42 PM
Also you have to be zoomed in sorry
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
10 Feb 2015 01:43 PM
Still not noticing anything different. Don't know what to tell ya man.
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
10 Feb 2015 01:43 PM
Oh hold on let me try zooming in.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:44 PM
First person*
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
10 Feb 2015 01:44 PM
So I noticed that my camera is a bit choppy while moving, nothing with my cursor though. Did you mean the camera?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
10 Feb 2015 01:45 PM
You'll need to set camera type to scriptable and redo the camera to move slowly
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:56 PM
"You'll need to set camera type to scriptable and redo the camera to move slowly"

I don't know what you mean by redo the camera.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
10 Feb 2015 01:57 PM
I mean script the camera to move yourself instead of the default way roblox does
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 01:59 PM
Oh so position the camera at the head and make it look toward that mouse?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 02:28 PM
Okay well this isnt working at all.

player.CameraMode=Enum.CameraMode.LockFirstPerson
camera.CameraType='Scriptable'
game["Run Service"].RenderStepped:connect(function()
camera.CoordinateFrame=CFrame.new(head.CFrame.p,mouse.Hit.p)
end)
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 02:29 PM
Mind helping?
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
10 Feb 2015 02:32 PM
player.CameraMode=Enum.CameraMode.LockFirstPerson
camera.CameraType='Scriptable'
game:GetService("RunService").RenderStepped:connect(function()
camera.CoordinateFrame=CFrame.new(head.CFrame.p,mouse.Hit.p)
end)

Try that. Also do you have "camera" defined somewhere? If this doesn't work I can't help you. (Unless you don't have camera defined)
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
10 Feb 2015 02:36 PM
I have it working, Thats just part of my code. It just looks all.. its hard to explain, run it yourself if you want to know.
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