https://gyazo.com/22467f796637f40faece9ff30e531e73
script:
local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local cam = game.Workspace.Camera
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://10278241509"
local playanim = hum:LoadAnimation(anim)
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Z then
cam.FieldOfView = 90
hum.WalkSpeed = 36
playanim.Priority = "Movement"
playanim:Play()
end
end)
uis.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.Z then
cam.FieldOfView = 70
hum.WalkSpeed = 16
playanim:Stop()
end
end)