#walking speed bug in my game

1 messages · Page 1 of 1 (latest)

oak hinge
lusty cape
#

oh sorry forgot

strange oriole
#

Is this correct

local humanoid =charekter.Humanoid
#

nevermind LOL

#

u did call it charekter

#

im not sure if the whitespaces actually make a difference so it should be fine lol

#

im a noob kk im just waiting for help on my own help post so im trying to read others people code while i wait

lusty cape
#

ok but thank you anyways

strange oriole
#

i use toolbox ShiftToRun model lol for me

fallen glacier
#

Why do you have 2 input begans

lusty cape
#

so you only sprint after pressing W twice

fallen glacier
#

yes but you should do it all in 1 inputbegan function

lusty cape
#

so how would you code that exactly

fallen glacier
#

wdym

#

just do a few if statments

stable gust
#

you'd want to use an input ended event too, and script it so it checks the time between pressing/letting go of the W key

#

and then if its within a certain timeframe, do the sprinting

#

something along those lines

stable gust
#

but he has 2 inputbegins

fallen glacier
#

hes also defining player and character twice for some reason

stable gust
#

so he is..

fallen glacier
#

and hes getting character from game.workspace instead of player.character... interesting

stable gust
#

that certainly is a way to do it

lusty cape
#

not my script btw

quaint sunBOT
#

studio** You are now Level 2! **studio

fallen glacier
#

or did you buy it

stable gust
#

please tell me you didnt buy it

lusty cape
#

my friend

stable gust
#

i see

fallen glacier
#

hm

lusty cape
#

you understand

stable gust
#

i understand

#

but, without just doing the fix ourselves, theres not much reason to try helping if you can't script yourself to a reasonable level

fallen glacier
#

well to fix the 2 InputBegan ill give you an outline of what do to

if pressed1 then
  -- do the stuff in second InputBegan
else
  -- do the other stuff
end
lusty cape
#

thanks

stable gust
lusty cape
#

I will send the reworked script from my friend in a bit

stable gust
#

oh nvm misunderstood

fallen glacier
strange oriole
#

hey i have a weird bug if someone could read over my script rq #1020374354867007528 Help - variable not incrementing?

stable gust
#

true, wouldnt take long to get a decent understanding of it

#

not your thread @strange oriole go away

fallen glacier
#

your friend clearly isnt the most experienced

strange oriole
#

theres 3 scripters in this one thread

fallen glacier
#

doesnt make it yours

lusty cape
#

2

#

im animator not scripter not my script

fallen glacier
#

as I was saying, your friend doesnt have the most experience with it so I wouldnt trust him

lusty cape
#

so if I do all the things you send me would it work then ?

#

working now thanks

#

how do I close this

stable gust
#

just leave it, nice one

lusty cape
stable gust
#

shows up in studio?

lusty cape
lusty cape
stable gust
#

yeah i aint touching this bro

#

sorry

lusty cape
#

wait

#

nvm to many messages

#

I can send you a screenshot

stable gust
#

no

#

not helping sorry

lusty cape
#

alright thanks anyways