#my bum hurts
1 messages · Page 1 of 1 (latest)
Right so when I hover a block, let's say stone. It shows the health value, but when I switch over to coal it bugs out and they for some reason switch values even though I'm not storing them ANYWHERE so it's not technically possible
But when I change their positions in a folder where the values are, it just switches, so now it's the iron that's being funny when hovering stone and iron. so for some funky reason it's index 3 that's so fucked up but I'm using strings to get the values
5h of debugging i even printed the values when hovering. which are correct but the GUI is not
💀
local function UpdateBar(block)
local health = block:FindFirstChild("Health")
local maxHealth = block:FindFirstChild("MaxHealth")
if not health or not maxHealth then return end
TextLabel.Text = maxHealth.Value
print(health.Value, maxHealth.Value)
Canvas.Parent.Enabled = true
end```
This is the function that's responsible for printing AND changing the textlabel's value
As you can see, the print is always correct
but the text label isnt???
cant help you with that sorry, but who calls there butt a bum?
alot of people
if thes are localscript and serverscript
use a remote event to send the values to the UI
but if its server and server / local and local
use a bindable event
to send the print value
so its accurate
how to unoptimize your game
and it wont work
the values aren't off, it's roblox being funny
As you can see I'm printing them in the same function, the prints are correct
but for some funky reason the textlabel isn't
🤯
then change the title name
??????
how am i supposed to know its roblox being funky
yes
ok so you are either:
- ragebaiting
- being stupid
- doesnt have a frontal lobe to make good decisions
im out
did you watch the video?
** You are now Level 13! **
You clearly can't script 😭