repeat wait() until game.Players.LocalPlayer local Mouse = game.Players.LocalPlayer:GetMouse() local Plr = game.Players.LocalPlayer Mouse.KeyDown:connect(function(KeyDown) if KeyDown == "0" then Plr.Character.Humanoid.WalkSpeed = 190 end end) Mouse.KeyUp:connect(function(KeyUp) if KeyUp == "0" then Plr.Character.Humanoid.WalkSpeed = 16 end end)
I need to change the field of view
Just add a variable defining the camera in Workspace. And in the code where you want to change the FOV, just use the camera property.
Ex:
local Cam = game.Workspace.Camera Cam.FieldOfView = 50