#Int variable hud to show currency and int

1 messages · Page 1 of 1 (latest)

wet elk
#

I'm making a game where the player can either buy cash ( with tokens ) or complete task for it. I want to make it a int variable hud to show the amount of cash a player has but when i made it the green output stays the same. this is because the way i connected it with the "get current balance" chip. Im wondering how else can i go about doing this.

#

Int variable hud to show currency and int

lethal torrent
lethal torrent
#

I’ll tell you them right now

wet elk
#

please lmk im still trying to understand this all

wet elk
lethal torrent
#
  1. Set hud element enabled only needs to be enable ONCE so use a player joined event and a if player is local

  2. Why do you need a Kash int variable? makes not sense just wire Total balance to the Set game hud element value

  3. If you configure the game hud element constant you can set the label so you don’t need a set game hud element label

#

Change the stuff out and answer the questions i asked @wet elk

#

You also don’t need a if player is local after the 30hz because the 30hz is running locally for each player

wet elk
lethal torrent
#
  1. no

  2. okay

lethal torrent
wet elk
#

😭

wet elk
#

This is the main issue im having I want to be able to buy cash but it also be in a int variable if that makes sense

lethal torrent
#

you don’t need and int variable

wet elk
#

idk what i was thinking mb thanks for the help

vernal pollen
#

I’m following this because I have a similar issue.

I’m not using currency chips but I am using a Cloud Int Variable.

When my players do something that will alter their specific Cloud Int value, it alters the values for every player in the room. Is this something to do with Networking? (Authority/local)

wet elk
lethal torrent
vernal pollen
# wet elk is your int varible synced im pretty sure that makes it for every player

No it’s set up as a Cloud Variable. So it will only hold data from a players perspective.

In a nutshell, I’m working to make it so that the Cloud Variable (int) is a players credit value, which they use to open doors, unlock things etc.

Problem I have is that when (for example) player A activates a circuit that charges them, all other players in the room are charged too. I’m assuming it’s a networking issue.

wet elk
lethal torrent
#

I’m online rn?

wet elk
# lethal torrent I’m online rn?

this is completly unrelated but its just a small issue so i didnt think i needed to make a whole new thingy but

im trying to remove a object from the players hand but there is multiple of the objects im wondering if its possible if i can remove the object based on the tag it has and how to do it

lethal torrent
#

Gun0

#

Gun1

#

Gun2

#

example ⬆️

wet elk
#

oh i see

lethal torrent
#

Use rec room object get first with tag

wet elk
#

would i have to make multiple of the remove object from players

lethal torrent
#

Are you trying to give every player there own set of weapons?

#

explain what your doing in ur map

wet elk
#

i have like 3 guns and im trying to make is so when the player dies the gun is unequiped but i rlly dont want to connect each gun ( present and in the future ) to a unequip lol

lethal torrent
wet elk
#

oh fr

lethal torrent
#

Use the get equipped objects chip

#

And the is valid chip

#

Wire Dominant hand and Off hand to separate Is valid chips

#

Wire the Is valid chips into seperate If chips

wet elk
#

is this correct

lethal torrent
#

If it’s true then remove the object from the player on death

lethal torrent
#

If you need specific chip names lmk

#

send a pic when ur done

wet elk
#

mb for late responds

wet elk
wet elk
lethal torrent
#

Y?

wet elk
#

i use that to respawn the player and set the health back to 100

#

lmk if any of this stuff is not the bestt way to do it i can send a pic but its rlly messy

lethal torrent
#

My heart 💔

#

so messy

#

💔

#

😔

wet elk
#

chilllll 😭😭

#

prob cant even tell whats happening cause how cooked the pic is but yea i pretty much had it so if a int ( health ) reaches 0 it teleports them to spawn and unequips there gun

lethal torrent
#

u used the rclman tutorial

wet elk
#

yea yea

lethal torrent
#

good

verbal escarp
#

why do you want to have a bar to show currency? (my opinion) Put a check button using textcv2 to show your financial state and more. I'm trying help not to hate on your idea just that it would use less brain power. I not big brain.

fleet plover
#

Use HUD.

daring aurora