|
| 25 May 2015 05:12 PM |
| Like when moveing anyway there character still faces forward? |
|
|
| Report Abuse |
|
|
| |
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 25 May 2015 05:14 PM |
cframe the torso every time you move to where your mouse is pointing
before that make sure mouse is locked to center of screen. |
|
|
| Report Abuse |
|
|
|
| 25 May 2015 05:22 PM |
| On a side note is their a way to force the cameras zoom distance? I know how to set min and maxz but not force it. FOV is not what im looking for, |
|
|
| Report Abuse |
|
|
|
| 25 May 2015 05:23 PM |
LocalScript in StarterGui
local player = game.Players.LocalPlayer local char = player.CharacterAdded:wait() local hrp = char:WaitForChild("HumanoidRootPart") local cam = game.Workspace.CurrentCamera print("Ready") cam.CameraType = Enum.CameraType.Scriptable game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter
local x = 0 local y = 0
spawn(function() while true do game:GetService("RunService").RenderStepped:wait() hrp.CFrame = CFrame.new(hrp.Position) * CFrame.Angles(0, x, 0) cam.CoordinateFrame = hrp.CFrame * CFrame.Angles(y, 0, 0) * CFrame.new(1, 2, 10) end end)
function MouseMove(name, state, inputObject) x = x + (-inputObject.Delta.x / 100) y = y + (-inputObject.Delta.y / 100) if y > 1.5 then y = 1.5 elseif y < -1.5 then y = -1.5 end end
game:GetService("ContextActionService"):BindActionToInputTypes("MouseMove", MouseMove, false, Enum.UserInputType.MouseMovement)
Off an open source place that I forget,
"I like to program." - Bosswalrus |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 25 May 2015 05:23 PM |
| set the max and min to the same number |
|
|
| Report Abuse |
|
|
|
| 25 May 2015 05:24 PM |
Uh not a script that complex.
I just want to make them go out of Firstperson and back in with the toggling key x.
I have all the UIS setup, i just need to toggle it. |
|
|
| Report Abuse |
|
|
|
| 25 May 2015 05:26 PM |
@amanda
Oh wow how do i not realize. |
|
|
| Report Abuse |
|
|
Leveraged
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 11564 |
|
|
| 25 May 2015 05:38 PM |
You know there's a minzoomdistance and maxzoom in starterplayer...
Leveraged/tixmaker101 + 55k posts | |
|
|
| Report Abuse |
|
|