#How to make a likes variable, every time anybody presses it goes up by 1?

1 messages · Page 1 of 1 (latest)

magic frost
#

I want to make a variable that never resets, every time somebody presses the button it goes up by 1 for example, like in Castle or views on YouTube. How can I do this?

#

Sorry if it’s a very obvious question idk

twilit lark
#

Create a global variable named likes (with the numbers type)

#

Make a like button and give it the tappable component

#

And make a script for the button

#

When tapped
Set (likes) +1

#

And make a text where you wanna display it

#

And give it the when generating objwct component

#

And add this script

#

Infinite loop
Set (text)=text = (likes)

#

And here you go

magic frost
#

I know but I want to make it that when other players, like in different servers, when they press it everybody can see it increase
Idk how to explain
But basically it changes everytime somebody presses it even in different servers

twilit lark
#

Hmm

#

I dont know if i can make that

magic frost
#

yea idk if it’s a thing or not

#

But ty anyway

twilit lark
#

Np

sleek marlin
sleek marlin
magic frost
magic frost
sleek marlin
#

its system menu

sleek marlin
magic frost
sleek marlin
#

you need to create ranking with a score

#

and then take score in singlplayer game

#

i didnt know you can take values from ranking lol, just found it today

#

this is the coolest feature in je

magic frost
#

Thanks for the idea

sleek marlin
#

👍

magic frost
sleek marlin
#

Try to search in 4x editor version

fossil vale
magic frost
fossil vale
#

hmm

#

ig u gotta use leaderboards

#

or save the publica variable in a player variable

magic frost
fossil vale
magic frost
#

I want it to show the amount of likes so how do I do that

fossil vale
magic frost
#

so how do I get the total amount of likes from the leaderboards??

#

I’m very confused

fossil vale
#

been trying to do it, can't find how

#

so ig just use public and player variables

magic frost
#

ok

sleek marlin
#

I already said its not possible

fossil vale
#

who are u

#

i didn't read the previous messages

sleek marlin
fossil vale
sleek marlin