#For the love of god can someone help me with this simple problem
17 messages · Page 1 of 1 (latest)
Try this at line 92 :
if humanoid.MoveDirection.Magnitude > 0 then
IsRunning = true
setWalkSpeed(25)
elseif
IsRunning = false
setWalkSpeed(10)
end
Does it work @icy monolith ?
going to try it now
Alright
uhhh small error here
Im grabbing the attribute isRunning it already exists I don't need to set it
I coded if my character is running or not already
Instead of doing this, i think you can use the event humanoid.Running event
hummanoid.WalkSpeed = 10 --let say this is the walking walskpeed
humanoid.Running:Connect(function()
humanoid.WalkSpeed = 25 -- this is the walkspeed when the character is running
end)
mhmm
Im going off of the custom attribute I made called isRunning
Is there a specific event I can call for running?
Yes :Roblox Creator Hub
https://create.roblox.com › classes
Humanoid.Running | Documentation - Roblox Creator Hub
Sorry for the late reply i was busy with something
@icy monolith
I solved it thanks alot for the help! @lethal berry
** You are now Level 1! **