Its meant to show how many coins and strength they have but it doesnt work on UI and there is a leaderstats that works
#UI isnt working
1 messages · Page 1 of 1 (latest)
did u even try to change names
like the fucking ai told u
i didnt use AI My friend made it
how
but how
and can you tell me whats the problem is and why it isnt working
then why did you even come here in the first place
to told u to read the fucking text from ai
I DIDNT MAKE AI MAKE THE CODE
He made it last night and hes sleeping
then wait for him
your code is ai
and u still cant figure out how to follow basic instructions
start learning basics man
BECAUSE IM A BUILDER AND HES DOING THE SCRIPTS
your annoying as fuck
you're*
see annoying
its literally right there bro
😭
the clue is literally right there
where
the green part
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!
Yes like i said this pisses me off
I have glasses on
It tickles my brain, but it doesnt really piss me off
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
🤷♂️
but what do I do
change the name
it will usually find the matching name
script or UI
k
** You are now Level 8! **
what do I replace the name as
1 WaitForChild() isnt enough. Your text label is inside of the frames
still isnt working
then what do I change it too
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
Your friend is ai
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
so what am I gonna do the script doesnt work and my friend is now a ai acordding to you
local coinsLabel = script.Parent.StatsFrame.Currency.Coins.Main.TextLabel
local strengthLabel = script.Parent.StatsFrame.Currency.Strength.Main.TextLabel
???
whats this for
how
what 2 line
your not telling me which line
He's either ragebaiting or just a kid
I only started a week ago chill
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
I aint the one scripting its my friend whos making it and hes gone for awhlie so Im trying to fix it
I doubt your "friend" left comments for you to fix it for him, but okay. Good luck with this project
I fixed it guys
ts pmo 💔💔💔
this code does not seem like urs
it screaming gpt
could that be the issue?
your joking, right?
why are yall still messaging I said I fixed it 2 hours ago
why do you use gpt lol
like its bad af
you cant tell me its not gpt
HAVE YOU BEEN HERE OR WHAT BECAUSE I SAID MY FRIEND MADE IT
i saw that 🥀
are you acting dumb or are you actually dumb?
@native carbon
WHAT DO YOU FUCKING WANT
IM TRYING TO SLEEP
then sleep and dont answer
IM TRYING BUT YOUR PINGING ME
okay
BRUH
yeah?
JUST STOP
with?
MESSAGING ME AND PINGING ME
ohhh mb
sorry
BRUH
what now
?
oh man
WHAT ARE YOU GETTING FROM ANNOYING ME
Why are you lying💔💔
frr 🥀
Bros friend is chatgpt
