CanToggleMouse={allowed=true;activationkey=Enum.KeyCode.F}CanViewBody=true Sensitivity=.6 Smoothness=.05 FieldOfView=100 HeadOffset=CFrame.new(0,.7,0)local w=game.Workspace.CurrentCamera local G=players.LocalPlayer local y=G:GetMouse()y.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 g=G.Character or G.CharacterAdded:wait()local N=g.Humanoid local n=g.HumanoidRootPart local I=g:WaitForChild("\072\101\097\100")local J,o=w.CoordinateFrame.p,w.CoordinateFrame.p local s,Q=0,0 local x,r=0,0 local a=true local S=false local M=FieldOfView local u,W,m,v,h=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 = 100 -- 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
