I’m a new game developer and have a very big and ambitious idea. I’m starting with basic movement animations and found this run script and was hoping someone could create something to get a custom R6 animation to work.
local UIS = game:GetService(“UserInputService”)
local player = game.Players.LocalPlayer
local walkSpeed = 20
local sprintSpeed = 32
UIS.InputBegan:Connect(function(input, gameProccessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
player.Character.Humanoid.WalkSpeed = sprintSpeed
for i = 1,5 do
game.Workspace.CurrentCamera.FieldOfView = (90+(i*2))
wait()
end
end
end)
UIS.InputEnded:Connect(function(input, gameProccessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
player.Character.Humanoid.WalkSpeed = walkSpeed
for i = 1,5 do
game.Workspace.CurrentCamera.FieldOfView = (100-(i*2))
wait()
end
end
end)