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 » Scripting Helpers
Home Search
 

Re: mouse.Button2Down

Previous Thread :: Next Thread 
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 03:52 PM
I have the cameratype set to scriptable, but I want the player to be able to rotate the camera when the RMB is held down, and help?
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
24 Aug 2014 03:55 PM
mouse = game.Players.LocalPlayer:GetMouse()

mouse.Button2Down:connect(function()

end)
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 03:59 PM
That doesn't help me because I already know how mouse works. I don't know how to make sure that when the function starts the mouse will rotate.
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 04:08 PM
Bump.. please help
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 04:17 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 04:23 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 04:31 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 06:17 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 06:30 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 06:40 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 06:50 PM
Another u wince no one wants to help me
Report Abuse
V0xels is not online. V0xels
Joined: 30 Mar 2012
Total Posts: 2072
24 Aug 2014 07:00 PM
Do a thing like:

while wait() do
repeat wait() until mouse.Button2Down:connect(function()
-- if user dragging mousedofancy stuff
repeat wait()until mouse.Button2Up:connect(function()
end rotate
endendnendnedend
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 07:07 PM
Dude

My problem is using cframe for rotation because I don't know how to rotate the real camera
Or how to end the rotation, help me on those two and I'll be good
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 07:20 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 07:31 PM
Bump -_-
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 07:38 PM
FOR GOD'S SAKE WHY CAN NO ONE HELP ME
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 07:58 PM
...
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
24 Aug 2014 08:14 PM
The simplest thing is to not use Scriptable, 'cause then u gotta write a script (I always take the easy way out).

Really, I think that u should try to describe the effect which u r trying to create...

This locks Players view to that of a free-roaming Satalite, looking-down on a globe.

View is always toward Brick, "Core". Player can gimbal-rotate Cam, but not move it.




local camera = workspace.CurrentCamera
local subject = camera.CameraSubject -- save
local type = camera.CameraType --save

local core = Instance.new("Part", Workspace)
core.CFrame = CFrame.new(Vector3.new(0,0,0))
core.Anchored = true
camera.CameraSubject = core --game.Workspace.Core
camera.CameraType = "Watch"
camera.FieldOfView = 55




local Player = Game.Players.LocalPlayer -- And this does not work as ecpected, for me anyway, but if un-commented, will just completely lock zoom, at current CFrame.

--Player.CameraMinZoomDistance = 40
--Player.CameraMaxZoomDistance = 100

Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 08:19 PM
The thing is I already have a custom camera set up that took me about an hour to create, which is why it needs to be scriptable. I can't take the easy way out this time(unless SH is, but bumoing like this isn't very 'easy'), so can you please help me with this?
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 08:31 PM
Bump
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 08:48 PM
I AVE BEEN BUMPING THIS FOR FIVE HOURS! WHY CAN'T A SCRIPTER HELP ME TODAY?
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
24 Aug 2014 08:58 PM
Gee Trpane,

you have not said what u want to do. It's pretty hard to help.
Report Abuse
Amexurous is not online. Amexurous
Joined: 28 Jan 2014
Total Posts: 324
24 Aug 2014 08:59 PM
I'm figuring it out don't fret.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
24 Aug 2014 09:00 PM
I'm not quite sure that this is going to work out. ROBLOX allows the rotation by freezing the cursor when RMB is held. However, you can't freeze the cursor and still detect mouse movement at the same time.
Report Abuse
Tripane is not online. Tripane
Joined: 03 Jun 2011
Total Posts: 11432
24 Aug 2014 09:08 PM
The cursor isn't frozen, what do you mean...

I want the player to be able to rotate the camera with RMB like with the custom cameratype, but since this is my custom created camera, it's scriptable and does not allow that regularly
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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