CanToggleMouse={allowed=true;activationkey=Enum.KeyCode.F}CanViewBody=true Sensitivity=.6 Smoothness=.05 FieldOfView=80 HeadOffset=CFrame.new(0,.7,0)local z=game.Workspace.CurrentCamera local p=players.LocalPlayer local R=p:GetMouse()R.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 W=p.Character or p.CharacterAdded:wait()local s=W.Humanoid local k=W.HumanoidRootPart local m=W:WaitForChild("\072\101\097\100")local V,Q=z.CoordinateFrame.p,z.CoordinateFrame.p local t,L=0,0 local Z,e=0,0 local x=true local F=false local S=FieldOfView local g,N,G,E,f=false,false,false,false,false
-- you can mess with these settings
CanToggleMouse = { allowed = true, activationkey = Enum.KeyCode.F } -- 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.05 -- 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
