#Where did I go wrong here?

1 messages · Page 1 of 1 (latest)

still sorrel
#

I'm pretty new to this scripting thing, so as expected this is not my code, its from a youtube video about a stamina system. This is only the first part and I've somehow already messed up, leading me to think that I either did something here badly or the code just doesn't work anymore. Any one willing to help?
-# I swear I've double checked the code to see if I copied it correctly.

neon nimbus
#

wait so whats the problem

still sorrel
#

It doesn't work. I playtest the game and the shift button does nothing.

neon nimbus
#

does it enter shiftlock?

still sorrel
#

Lemme see

#

Wait

#

No it dosen't

#

I don't even have it enabled :p

neon nimbus
#

i meant in roblox studio

#

also print the "IsTyping"

#

to check if its true or not

#

before the if IsTyping then return end

#

also why does the code check twice for the sprint debounce

still sorrel
#

I followed what the tutorial did 🤷‍♀️

rough merlinBOT
#

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

still sorrel
neon nimbus
#

well the tutorial is trash then

#

you dont know how to use print statements?????//

still sorrel
#

Nope :[

neon nimbus
#

just do

#

print(IsTyping)

#

thats it

#

literally it

#

and check the output

#

put it inside the inputbegan btw

still sorrel
#

Alr

neon nimbus
#

also if you're going to post a problem at least know what you're working with

#

and how they work

#

use brawldev, gnomecode, alvinblox, or thedevking tutorials

#

use brawldev its more recent

still sorrel
#

Noted!

neon nimbus
#

but ofc not everyone uses the same person*

still sorrel
#

Ye, I'll check em out :p

neon nimbus
#

press play

#

and see what the output it

#

is

#

if you put the print statement

still sorrel
#

Alr hold on

#

Uhh, where's the output supposed to show?

#

Forgive my peanut-sized brain

neon nimbus
#

😔

still sorrel
#

But I genuinely can't think rn

neon nimbus
#

its in the view bar

still sorrel
#

Rq, just checking, is it supposed to look like this

#

And is the viewbar the thing at the bottom?

#

Or is this it?

neon nimbus
#

yo im actually about to cry

#

WHAT IS THIS

still sorrel
#

I'm sorry 😭

neon nimbus
#

I MEANT ADD ANOTHER LINE

still sorrel
#

Oh alright

neon nimbus
#

THAT WILL HAVE THE PRINT STATEMENT

still sorrel
#

Does this work

rough merlinBOT
#

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

still sorrel
#

And do I have to stop the game now?

neon nimbus
neon nimbus
still sorrel
#

Yep

neon nimbus
#

also PLEASE LEARN ABOUT STUDIO TOOLS AND FEATURES

#

ok now test the game

still sorrel
#

I will!!

#

then?

#

Cuz nothing's happening :p

#

The game is on btw

neon nimbus
#

like i said

#

CHECK THE OUTPUT

still sorrel
#

Where is it?

neon nimbus
#

and this is why you need to learn how to use studio ui and stuff

#

😔

still sorrel
#

I FOUND IT

#

This thing

#

Right?

neon nimbus
#

yes

still sorrel
#

Now what :P

neon nimbus
#

see that red thing

#

theres an error

#

click on that

#

and see whats wrong with it

still sorrel
#

Do I just replace the . with an : here?

#

It directs me to that one line of code

neon nimbus
#

if that is the error

#

then yes

still sorrel
#

Alright, another error!

#

It takes me here now

neon nimbus
#

.WalkSpeed

still sorrel
#

alr

#

OMG IT WORKS NOW, THE ANIMATIONS LOOK LIKE SOMETHING OUT OF A HORROR MOVIE THO 😭

#

Time to follow the rest of the tutorial, wish my luck bro ✌️ 🥹