#UI isnt working

1 messages · Page 1 of 1 (latest)

native carbon
#

Its meant to show how many coins and strength they have but it doesnt work on UI and there is a leaderstats that works

short dawn
#

Im sure your ai can help with that

#

This just pmo

alpine igloo
#

like the fucking ai told u

native carbon
#

i didnt use AI My friend made it

alpine igloo
#

well your friend is chat gpt

#

then

native carbon
#

how

native carbon
alpine igloo
#

yea am not helping with a guy that cant even read stuff ai is saying

#

to him

native carbon
#

and can you tell me whats the problem is and why it isnt working

native carbon
alpine igloo
#

to told u to read the fucking text from ai

native carbon
#

I DIDNT MAKE AI MAKE THE CODE

alpine igloo
#

its ai tho

#

ask your friend then

native carbon
#

He made it last night and hes sleeping

alpine igloo
#

then wait for him

native carbon
#

but why

#

Im asking for help not to get my fucking friend to say ai stuff

alpine igloo
#

your code is ai

#

and u still cant figure out how to follow basic instructions

#

start learning basics man

native carbon
#

BECAUSE IM A BUILDER AND HES DOING THE SCRIPTS

alpine igloo
#

then wait for him g

#

this is help not writing scripts

native carbon
#

your annoying as fuck

alpine igloo
#

you're*

native carbon
#

see annoying

regal condor
#

😭

#

the clue is literally right there

native carbon
regal condor
#

jeeessus 💔

native carbon
regal condor
#

ok atp

#

js wait for your friend

native carbon
#

???

#

why

regal condor
#

Its literally clear as day

#

that you have to replace YourCoinsLabel and YourStrengthLabel

#

to the names of the text label

#

or atleast the path

#

😭

#

clear as day brochacho

#

might need glasses next time!

short dawn
#

Yes like i said this pisses me off

native carbon
regal condor
#

its just a bit annoying

#

but since thsi mf is new, its kindof a no choice moment tbh

#

the point of scripting-help is to actually help

#

so

#

🤷‍♂️

native carbon
#

but what do I do

regal condor
#

it will usually find the matching name

native carbon
#

script or UI

regal condor
#

💔

#

the Script line

native carbon
#

k

keen sandalBOT
#

studio** You are now Level 8! **studio

native carbon
#

what do I replace the name as

short dawn
#

1 WaitForChild() isnt enough. Your text label is inside of the frames

native carbon
#

still isnt working

native carbon
#

local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local coins = leaderstats:WaitForChild("Coins")
local strength = leaderstats:WaitForChild("Strength")

-- Get the labels inside your nested structure
local coinsLabel = script.Parent:WaitForChild("Coins"):WaitForChild("Main"):WaitForChild("CoinTextLabel")
local strengthLabel = script.Parent:WaitForChild("Strength"):WaitForChild("Main"):WaitForChild("StrengthTextLabel")

-- Update function
local function updateStats()
coinsLabel.Text = "Coins: " .. coins.Value
strengthLabel.Text = "Strength: " .. strength.Value
end

-- Connect to value changes
coins:GetPropertyChangedSignal("Value"):Connect(updateStats)
strength:GetPropertyChangedSignal("Value"):Connect(updateStats)

-- Set initial values
updateStats()

#

My friend gave me this new script

short dawn
#

Your friend is ai

native carbon
#

well what am I meant to do

#

local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local coins = leaderstats:WaitForChild("Coins")
local strength = leaderstats:WaitForChild("Strength")

local function getLabel(parent, ...)
local obj = parent
for _, name in ipairs({...}) do
obj = obj:WaitForChild(name)
print("Found:", obj.Name)
end
return obj
end

local success, coinsLabel = pcall(getLabel, script.Parent, "StatsFrame", "Coins", "Main", "CoinTextLabel")
local success2, strengthLabel = pcall(getLabel, script.Parent, "StatsFrame", "Strength", "Main", "StrengthTextLabel")

if not success or not coinsLabel then
warn("Could not find CoinTextLabel!")
end
if not success2 or not strengthLabel then
warn("Could not find StrengthTextLabel!")
end

local function updateStats()
print("Updating stats:", coins.Value, strength.Value)
coinsLabel.Text = "Coins: " .. coins.Value
strengthLabel.Text = "Strength: " .. strength.Value
end

coins:GetPropertyChangedSignal("Value"):Connect(updateStats)
strength:GetPropertyChangedSignal("Value"):Connect(updateStats)
updateStats()

#

he send this one now

native carbon
short dawn
#

local coinsLabel = script.Parent.StatsFrame.Currency.Coins.Main.TextLabel
local strengthLabel = script.Parent.StatsFrame.Currency.Strength.Main.TextLabel

native carbon
#

???

short dawn
#

I give up

#

Figure it out

native carbon
#

how

short dawn
#

Replace the 2 lines after the green text

#

Wym how

native carbon
#

what 2 line

native carbon
signal imp
#

He's either ragebaiting or just a kid

native carbon
#

I only started a week ago chill

signal imp
# native carbon your not telling me which line

If you are genuinely stuck, try following the green text's instructions. If you can't comprehend that then I don't think you're ready for scripting yet because you'll run into a hell of a lot more complex stuff (complex in your case) in the future

native carbon
signal imp
#

I doubt your "friend" left comments for you to fix it for him, but okay. Good luck with this project

native carbon
#

I fixed it guys

dire osprey
#

ts pmo 💔💔💔🫩🫩🫩🫩

hexed umbra
#

it screaming gpt

#

could that be the issue?

native carbon
#

why are yall still messaging I said I fixed it 2 hours ago

patent rampart
#

like its bad af

#

you cant tell me its not gpt

native carbon
#

HAVE YOU BEEN HERE OR WHAT BECAUSE I SAID MY FRIEND MADE IT

patent rampart
#

are you acting dumb or are you actually dumb?

#

@native carbon

native carbon
#

WHAT DO YOU FUCKING WANT

patent rampart
#

i want nothing from you lmao

#

you cant even help me

native carbon
#

IM TRYING TO SLEEP

patent rampart
native carbon
#

IM TRYING BUT YOUR PINGING ME

patent rampart
native carbon
#

BRUH

patent rampart
native carbon
patent rampart
native carbon
#

MESSAGING ME AND PINGING ME

patent rampart
#

ohhh mb

patent rampart
native carbon
#

BRUH

patent rampart
#

what now

patent rampart
patent rampart
native carbon
#

WHAT ARE YOU GETTING FROM ANNOYING ME

patent rampart
#

nothing haha

#

i gotta do something now

lament depot
patent rampart
modern sandal
#

Bros friend is chatgpt