Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a 3rd person veiw? i tried lots of videos.

What im trying to make is a 3rd person shooter.

3 answers

✓ Accepted answer

Lock the mouse with

local UserInput = game:GetService("UserInputService")

UserInput.MouseBehavior = Enum.MouseBehavior.LockCenter

Lock the mouse zoom with

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Zoom = 10
Player.CameraMinZoomDistance = Zoom 
Player.CameraMaxZoomDistance = Zoom 

put them together in a loop

local UserInput = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Zoom = 10

while wait(1) do
	UserInput.MouseBehavior = Enum.MouseBehavior.LockCenter
	Player.CameraMinZoomDistance = Zoom 
	Player.CameraMaxZoomDistance = Zoom
end 

you need to disable the property EnableMouseLockOption in StarterPlayer

Uhm... Isn't Roblox set to third person as default?

3 comments

0

I think he means like with Shift Lock

0

please make this a comment next time

0

No. This is an answer.

I'm pretty sure you can change the Camera script in StarterPlayerScripts in the StarterPlayerFolder

You should find a script that has the following lines of code:

function this:GetShiftLock()
return ShiftLockController:IsShiftLocked()
end

Try changing the code to this:

function this:GetShiftLock()
return true
end

This discussion is preserved as it was. New answers, comments, and votes are closed.