#How do I make it so that the sprint DOESNT stop whenever the game detects ANY input
1 messages · Page 1 of 1 (latest)
I didnt fully understand what ure trying
can u explain
u want a normal sprinting script or?
huh
so basically
when i start sprinting
whenever i click or press another key WHILE im holding w down
my sprint stops
u wanna make a combat game?
maybe ill make a few abilities
I mean
when I hold W and then press D
Im still runing
running*
wait lemme just read ur script
i think the problem is how i detect when w is pressed
ok goo
d
this line stops
put a print under this if statement
idk much abt tick() but ur script basically does tick() - 0
which is not smaller than timeLimit
so what do i need to do
wait im checking
correct me if im wrong with the tick
cuz I dont know anything abt tick()
ill switch tick() with time() since tick() probably has more issues
** You are now Level 5! **
yk whats funny
when I hold LeftShit
nothing works
like the custom shiftlock u made doesnt work then
but when I change to Q it works
yea
wait let me check my script
cuz if I hold down W it works fine
so uh
if input.KeyCode == Enum.KeyCode.W and not gme then
if Sprint == true then return end
Sprint = true
Humanoid.WalkSpeed += Speed
end
end)
UserInputService.InputEnded:Connect(function(input,gme)
if input.KeyCode == Enum.KeyCode.W and not gme then
if Sprint == false then return end
Sprint = false
Humanoid.WalkSpeed = NormalSpeed
end
end)```