#Advice abt ts script

1 messages · Page 1 of 1 (latest)

main grove
#

local RUN = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

RUN.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.W then
while input do
task.wait(1)
char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 50
end
end
end)

oblique spokeBOT
#

studio** You are now Level 1! **studio

thick path
#

I mean it's ok if your goal is to increase the humanoid's speed every second

drifting nebula
#

What r u trying to do

main grove
#

local RUN = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

RUN.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
while RUN:IsKeyDown(Enum.KeyCode.W) do
task.wait(1)
char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed + 50
end
end)

RUN.InputEnded:Connect(function(input, gamePro)
if gamePro then return end
if not RUN:IsKeyDown(Enum.KeyCode.W) then
while not RUN:IsKeyDown(Enum.KeyCode.W) do
task.wait(1)
char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed - 50
end
end
end)

#

i tried to adjust it

thick path
main grove
#

if not it gose down