gosha gosha

Generation

fix invalid codeSun, 19 Feb 2023

local runModule = require(game.ReplicatedStorage.RunModule) local HUMANOID = game.Players.LocalPlayer.Character.Humanoid local SPRINT_SPEED = 50 local sprintInput = {Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift} game:GetService("UserInputService").InputBegan:Connect(function(input,processed) if processed then return end if table.find(sprintInput, input.KeyCode) then HUMANOID.WalkSpeed = SPRINT_SPEED runModule:Activate("sprint") end end) game:GetService("UserInputService").InputEnded:Connect(function(input,processed) if processed then return end if table.find(sprintInput, input.KeyCode) then HUMANOID.WalkSpeed = 16 runModule:Deactivate("sprint") end end)

Questions about programming?Chat with your personal AI assistant