#just wanna know how to make a text update when i get 1 cash

325 messages · Page 1 of 1 (latest)

vocal phoenix
#

i need help on updating a text label that displays the amount of cash i have

deft sequoia
#

cash:GetPropertyChangedSignal("Value"):Connect(function()
UrText.Text = cash.Value
end)

jaunty flameBOT
#

studio** You are now Level 12! **studio

elder patrol
#

That works

#

Or do while true if u want

vocal phoenix
#

its indexing nil

elder patrol
vocal phoenix
#
    TextLabel.Text = cash.Value
end)```
elder patrol
#

What’s the error?

vocal phoenix
#

attempt to index nil with GetPropertyChangedSignal

elder patrol
#

While true do UrText.text=cash.value

vocal phoenix
#

index nil with Value

feral bronze
#

wtf

#

oh wait

#

nvm

elder patrol
#

Can u show code?

vocal phoenix
#

while true do
TextLabel.Text = cash.Value
end

feral bronze
#

i thought blud was updating a textlabel as

cash.Value += 1
feral bronze
vocal phoenix
#

wha

elder patrol
#

Add a wait

jaunty flameBOT
#

studio** You are now Level 7! **studio

feral bronze
#

why are you using

while true do
  Textlabe.Text = cash.Value
end
vocal phoenix
elder patrol
#

Idk none of his things are working

vocal phoenix
#

my leaderstats work

#

and my button works too

feral bronze
rustic sundial
feral bronze
#

wait no

#

WAIT NO

feral bronze
#

WE BOTH USED GETPROPERTYSIGNAL WTRONG

#

LMAOOO

vocal phoenix
#

thats why it says nil ;-;

rustic sundial
#

wdym

elder patrol
#

Cash.value

rustic sundial
#

it has always been getpropertychangedsignal

feral bronze
#
cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end
rustic sundial
#

OH F

feral bronze
#

LMAO

rustic sundial
#

NICE ONE

feral bronze
#

😭

rustic sundial
#

LMAO

feral bronze
#

@vocal phoenix

rustic sundial
#

I FEEL DUMB

vocal phoenix
#

wha

feral bronze
# vocal phoenix wha

its

cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end
#

not

cash:GetPropertyChangedSignal:Connect(function()
    TextLabel.Text = tostring(cash.Value)
end
vocal phoenix
feral bronze
vocal phoenix
#
    TextLabel.Text = tostring(cash.Value)
end)```
vocal phoenix
#

all of the scripts?

jaunty flameBOT
#

studio** You are now Level 5! **studio

elder patrol
#

Just this one

vocal phoenix
#

thats the whole thing
the rest are in other scripts

feral bronze
#

so its the first line

#

are we deadass

#

so your telling me

rustic sundial
#

yes

feral bronze
#

theres no variables

feral bronze
#

and its just

cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end)
elder patrol
#

No cash varible?

feral bronze
#

?

vocal phoenix
rustic sundial
#

@feral bronze cash might be nil

feral bronze
#

cause its the first line

#

no variables at all

elder patrol
vocal phoenix
#
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player
    
    local cash = Instance.new("IntValue")
    cash.Name = "Cash"
    cash.Value = 1
    cash.Parent = leaderstats
end)```
elder patrol
#

Has to be in one script

vocal phoenix
#

and cash it in it

feral bronze
#

there should be the cash variable

elder patrol
vocal phoenix
#

ohh

elder patrol
#

They don’t carry over

rustic sundial
#

damn

vocal phoenix
#

so do i define cash in the local script

elder patrol
feral bronze
#

yes

rustic sundial
#

yes

#

3 yes

elder patrol
#

Triple yes

vocal phoenix
#
    TextLabel.Text = tostring(player.leaderstats.cash.Value)
end)```like this?
feral bronze
#

no

#

oh my lrod

elder patrol
#

Just define the varible

feral bronze
#

OH MY LORD

rustic sundial
#

...

vocal phoenix
feral bronze
#

dont skid

#

😭

rustic sundial
#

so how 's your patience pcall?

feral bronze
#

dead

vocal phoenix
elder patrol
#

Local cash=game.players.local player.playergui.screengui.textlabel

#

I’m on mobile do retype that

#

WAIT

vocal phoenix
rustic sundial
elder patrol
#

IM DUMB

rustic sundial
#

OH MY GOD

elder patrol
#

DONT DO THAT

#

SMH

vocal phoenix
#

oh

#

lel

elder patrol
#

local cash=game.players.localplayer.leaderstats.Cash

#

I think

vocal phoenix
elder patrol
#

At the top

#

It’s easier so we can use cash multiple times

#

Called a varible

rustic sundial
feral bronze
# vocal phoenix in the parantheses?
local players = game:GetService("Players")
local lp = players:WaitForChild("LocalPlayers")

local cash = lp:WaitforChild("leaderstats"):WaitForChild("Cash")
local gui = whereevertheguiislocated
local frame = gui:WaitForChild("Frame") -- (assuming its inside a frame)
local TextLabel = Frame:WaitForChild("TextLabel")

cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end)
#

i think i did something wrong here ngl

feral bronze
#

but whatever

elder patrol
#

His has waitforchilds

#

Which is better if there are errors

feral bronze
#

Those who Waits for Childs:

feral bronze
#

oh

#

its Cash

deft sequoia
rustic sundial
#

😄

rustic sundial
elder patrol
deft sequoia
#

cuz while true will use script a lot

elder patrol
rustic sundial
#

waitforchild 😁
waitforchild 😫

elder patrol
deft sequoia
#

and thats not good for bad devices

#

waitforchild 😫
waitforchild 😫

rustic sundial
deft sequoia
#

WaitForChild("")🗿

feral bronze
#

DO NOT USE WHILE TRUE DO STATEMENTS

#

😭

rustic sundial
#

why

elder patrol
rustic sundial
#

i have been using it

#

🙂

elder patrol
#

Idc about stinky mobile

feral bronze
#

why do you use

while true do
  TextLabel.Text = cash.Value
end
deft sequoia
#

i am not talking abt mobiles

feral bronze
#

THATS FUCKING DUMB

#

💔

deft sequoia
#

i mean overall

deft sequoia
#

CUZ

rustic sundial
#

its gon crash the game..ngl

feral bronze
#

😭

deft sequoia
elder patrol
deft sequoia
#

BRO

elder patrol
feral bronze
deft sequoia
#

WHT DU EVEN CARE IF BOTH WORK AND MINE IS BETTER FOR PERFORMANCE

vocal phoenix
#

infinite yield on LocalPlayers 💔

feral bronze
elder patrol
feral bronze
#

oh wait

deft sequoia
feral bronze
#

i knew that i did something wrong

#

LMAO

vocal phoenix
feral bronze
# deft sequoia lemme see the script
local players = game:GetService("Players")
local lp = players:WaitForChild("LocalPlayers")

local cash = lp:WaitforChild("leaderstats"):WaitForChild("Cash")
local gui = whereevertheguiislocated
local frame = gui:WaitForChild("Frame") -- (assuming its inside a frame)
local TextLabel = Frame:WaitForChild("TextLabel")

cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end)
elder patrol
deft sequoia
elder patrol
#

LocalPlayer

#

Not players

vocal phoenix
# elder patrol Show code
local lp = players:WaitForChild("LocalPlayer")

local cash = lp:WaitforChild("leaderstats"):WaitForChild("Cash")
local gui = whereevertheguiislocated
local frame = gui:WaitForChild("Frame") -- (assuming its inside a frame)
local TextLabel = Frame:WaitForChild("TextLabel")

cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end)```
rustic sundial
vocal phoenix
#

wait lemme replace the gui thing

feral bronze
elder patrol
#

Do players.LocalPlayer

#

No need to wait

#

It’s always there

deft sequoia
#

local players = game.Players
local lp = players.LocalPlayer

#

here u go

feral bronze
#

i think it was the localplayers thats wrong

#

yup

#

knewi t

#

LMAO

vocal phoenix
elder patrol
deft sequoia
#

its the same

elder patrol
#

Do it again

rustic sundial
#

patience 📉📉📉 crying

elder patrol
#

Most local scripts will always have that

deft sequoia
#

bro i am leaving there is people that need real help

vocal phoenix
#

wait for child is not a valid member of Playersevilcat

elder patrol
feral bronze
deft sequoia
#

in wht

feral bronze
#

just invite me to the studio atp

#

let me fix it

#

:brok

deft sequoia
#

or me

vocal phoenix
# elder patrol show code
local lp = players.LocalPlayer

local cash = lp:WaitforChild("leaderstats"):WaitForChild("Cash")
local gui = script.Parent.Parent
local frame = gui:WaitForChild("Frame") -- (assuming its inside a frame)
local TextLabel = Frame:WaitForChild("TextLabel")

cash:GetPropertyChangedSignal("Value"):Connect(function()
    TextLabel.Text = tostring(cash.Value)
end)```
deft sequoia
#

i am good scripter

rustic sundial
#

did u use chatgpt

#

for this

vocal phoenix
rustic sundial
deft sequoia
#

i will retype the code

elder patrol
#

Let @deft sequoia do it

rustic sundial
#

:p

vocal phoenix
#

YES

#

I FIXED IT

#

IT WORKS

feral bronze
#

sigh

#

finally

#

jkesus christ

deft sequoia
rustic sundial
#

patient 📈📈📈

vocal phoenix
#

because of those WaitForChild

rustic sundial
#

stonks

feral bronze
#

me when WaitForChild

deft sequoia
feral bronze
#

🤑

elder patrol
feral bronze
#

i always spam WaitForChild

#

LMAO

grave swallow
#

you dont need waitforchild on replicated storage

feral bronze
#

?

#

its GetService

#

on replicatedstorage

grave swallow
#

yeah

#

just do

feral bronze
#

r u tripping

grave swallow
#

RS.Modules.AdminManager

rustic sundial
elder patrol
grave swallow
#

faster

elder patrol
#

Or a bug

deft sequoia
deft sequoia
#

don't spam it

feral bronze
grave swallow
#

no, dont spam it

#

its bad

deft sequoia
#

fr

feral bronze
#

Id waitforchi

#

ld

grave swallow
#

ok

rustic sundial
#

its normal

feral bronze
#

hold on lemme show u how much i really spam it

vocal phoenix
#

thunk you :D

feral bronze
#

😭

rustic sundial
#

a child waits for child which waits for child which is waiting for a child

deft sequoia
#

yo can i have a question

shy copper
shy copper
feral bronze
#

waits for child

elder patrol
grave swallow
#

that is really aint that bad

deft sequoia
#

how to get helper roll cuz i almost help in every thing i see @shy copper

grave swallow
#

on gui ok

elder patrol
shy copper
#

Its a staff role

feral bronze
#

waitsforchild

#

🤑

shy copper
#

But a low one

deft sequoia
#

again???

elder patrol
rustic sundial
deft sequoia
#

they took 4 days to gimme the scripter roll

elder patrol
#

too many child’s

rustic sundial
#

nothing wrong at all pcall , your doing great 😄

shy copper
#

They have million tickets to go through.

feral bronze
#

ok ve

shy copper
#

You have to be patient.

deft sequoia
#

ye ik

#

they r working hard

shy copper
#

Anyway guys, either help the guy or go to #💬︱general if you wanna have a talk

feral bronze
#

we js waiting for child

#

waiot no

shy copper
#

Then #💬︱general, please.

feral bronze
#

thats out of conext

#

thats out of context

vocal phoenix
rustic sundial
#

resl

feral bronze
#

:Sob

rustic sundial
#

real

#

;'(

deft sequoia
rustic sundial
#

sheriff is coming

feral bronze
#

alr back to helping