''''lua
local UIS = game:GetService("UserInputService")
local TS = game:GetService("TweenService")
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local Base_Walkspeed = script:GetAttribute("Base_WalkSpeed")
local Sprint_Speed = script:GetAttribute("Sprint_Speed")
UIS.InputBegan:Connect(function(key, processed)
if processed then return end
end)
UIS.InputBegan:Connect(function(key)
if key.UserInputType == Enum.UserInputType.Keyboard then
if key.KeyCode == Enum.KeyCode.LeftShift then
print("Sprint Activated")
local FOVProperties = {FieldOfView = 90}
local FOVTweenInfo = TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local FOVTween = TS:Create(workspace.CurrentCamera, FOVTweenInfo, FOVProperties)
FOVTween:Play()
local Properties = {WalkSpeed = Sprint_Speed}
local Info = TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local Tween = TS:Create(humanoid, Info, Properties)
Tween:Play()
end
end
end)
UIS.InputEnded:Connect(function(key)
if key.UserInputType == Enum.UserInputType.Keyboard then
if key.KeyCode == Enum.KeyCode.LeftShift then
print("Sprint Deactivated")
local FOVProperties = {FieldOfView = 70}
local FOVTweenInfo = TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local FOVTween = TS:Create(workspace.CurrentCamera, FOVTweenInfo, FOVProperties)
FOVTween:Play()
local Properties = {WalkSpeed = Base_Walkspeed}
local Info = TweenInfo.new(0.8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local Tween = TS:Create(humanoid, Info, Properties)
Tween:Play()
end
end
end)