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

How do you make a players camera follow their mouse?

For example Arsenal they dont use shift lock but the camera somehow follows the mouse not being able to see the hands disconnected from the body. How do i do that? Is it a script or a property?

3 comments

0

wait wut

0

Umm do you mean first person camera?

0

Well, the thing you are saying means in Arsenal, they have FirstPerson view and the arms you see are fake arms, as roblox hides the real ones when on FirstPerson view.

1 answer

Here you go

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Moved:Connect(function()
	workspace.Camera.CFrame = mouse.Hit.CFrame
end)

1 comment

0

Hmm lemme try it :)

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