local userinput = game:GetService("UserInputService")
local players = game:GetService("Players")
local SprintSpeed = 26
local Walkspeed = 16
local Player = players.LocalPlayer
local function BeginSprint(input , gameProcessed)
if not game.gameProcessed then
if input.UserInPutType == Enum.UserInputType.Keyboard then
local key = input.KeyCode
if key == Enum.KeyCode.LeftShift then
Player.Character.Humanoid.Walkspeed = SprintSpeed
end
end
end
end
local function StopedSprint(input , gameProcessed)
if not game.gameProcessed then
if input.UserInPutType == Enum.UserInputType.Keyboard then
local key = input.KeyCode
if key == Enum.KeyCode.LeftShift then
Player.Character.Humanoid.Walkspeed = Walkspeed
end
end
end
end
userinput.InputBegan:Connect(BeginSprint)
userinput.InputEnded:Connect(StopedSprint)
COMMUNITY QUESTION
Shift to run not working gameProcessed not a valid member of DataModel?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
What is game.gameProcessed? Shouldn't it just be || if not gameProcessed then
Yeah, it's just GameProcessed lol.