#clicks dont show up in label

1 messages · Page 1 of 1 (latest)

little pine
#

Hey guys so i tried to write a code (i began scripting today) and for some reason my clicks dont show up in the next label

#

ik the fix is probably really simple but im new :(

lucid hare
#

you should open the output window so you can see any errors

#

you're probably having problems because you define click as click = click + 1

#

since click doesn't exist (you're trying to make it exist) it is probably erroring

#

you also don't define textlabel

#

you're saying variable = string

lucid hare
#

but i think you're trying to do label.Text = string

heady sleet
#

It has to be .Text

lucid hare
#

like these are both problems bruh

heady sleet
#

So the testable name .Text

lucid hare
#

oh yeah and you wrote local print

#

there's a lot wrong here you may have to re read the beginner documentation

heady sleet
#

Your whole script is cooked Doesn’t follow the rules of luau

lucid hare
#

you're trying to define a local variable as a command

little pine
#

ima js delete it how shouuld i start

heady sleet
#

Watch some tutorials but don’t stay on them for too long long

lucid hare
#

you're almost there

heady sleet
lucid hare
#

it's like you're in the ballpark but don't know how to speak properly

heady sleet
#

The only thing that went right was your 1sr line

lucid hare
#

just go back to the documentation and read up on things like defining variables

#

bro is brand new

little pine
#

im genuinely cooked

#

is it normal that im this stupid

heady sleet
#

Do label.text = “Dhfhfjcisb”

#

That’s how you change the text

little pine
#

i started 3hrs ago with a fighting game which i gave up on

heady sleet
lucid hare
#

just google roblox beginner scripting documentation

#

and read that

heady sleet
#

Months of coding if you know a different coding language already

#

Like a year if u don’t

little pine
lunar houndBOT
#

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

little pine
#

like

#

the one above is my previous text

#

code

heady sleet
#

I mean yeah that’s right

little pine
heady sleet
#

Is click defined

little pine
#

how do i do that

#

in python its def

heady sleet
#

There’s two ways to define a variable local or globally

#

So you can do local click = 0

#

Oh if you know python it will transfer very easily to luau

#

After you learn the Roblox code basics

little pine
#

were doing it at school rn

#

btw i got a very important question

#

jeez this might sound genuinely stupid

#

if i define clicks in this tab

#

will it stay defined here too?

#

@lucid hare im genuinely dying

raven carbon
#

watch some tutorials

#

you have literally no idea what to even do

little pine
#

idk if im allowed to send links here

#

if anyone wants to try and rate it

little pine