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 |
|
|
|
| 24 Aug 2014 03:55 PM |
mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button2Down:connect(function()
end) |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
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
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 28 Jan 2014 |
| Total Posts: 324 |
|
|
| 24 Aug 2014 08:59 PM |
| I'm figuring it out don't fret. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|