CanToggleMouse={allowed=true;activationkey=Enum.KeyCode.Q}CanViewBody=true Sensitivity=.6 Smoothness=.15 FieldOfView=80 HeadOffset=CFrame.new(0,.7,0)local R=game.Workspace.CurrentCamera local d=players.LocalPlayer local e=d:GetMouse()e.Icon="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\053\054\057\048\050\049\051\056\056"local B=d.Character or d.CharacterAdded:wait()local C=B.Humanoid local z=B.HumanoidRootPart local y=B:WaitForChild("\072\101\097\100")local a,M=R.CoordinateFrame.p,R.CoordinateFrame.p local F,h=0,0 local P,c=0,0 local O=true local p=false local S=FieldOfView local Z,G,K,l,N=false,false,false,false,false
-- you can mess with these settings
CanToggleMouse = { allowed = true, activationkey = Enum.KeyCode.Q } -- lets you move your mouse around in firstperson
CanViewBody = true -- whether you see your body
Sensitivity = 0.6 -- anything higher would make looking up and down harder; recommend anything between 0~1
Smoothness = 0.15 -- recommend anything between 0~1
FieldOfView = 80 -- fov
HeadOffset = CFrame.new(0, 0.7, 0) -- how far your camera is from your head

local cam = game.Workspace.CurrentCamera
local player = players.LocalPlayer
local m = player:GetMouse()
m.Icon = "http://www.roblox.com/asset/?id=569021388" -- replaces mouse icon
local character = player.Character or player.CharacterAdded:wait()
local human = character.Humanoid
local humanoidpart = character.HumanoidRootPart

local head = character:WaitForChild("Head")
local CamPos, TargetCamPos = cam.CoordinateFrame.p, cam.CoordinateFrame.p
local AngleX, TargetAngleX = 0, 0
local AngleY, TargetAngleY = 0, 0

local running = true
local freemouse = false
local defFOV = FieldOfView

local w, a, s, d, lshift = false, false, false, false, false
