ImageLabel wont become visible

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character

local CharHealthStats = Character:WaitForChild("CharHealthStats")

local Value = CharHealthStats.Generic.Starving

Value:GetPropertyChangedSignal("Value"):Connect(function()
	if CharHealthStats.Generic.Starving.Value == true then
		script.Parent.Visible = true
		CharHealthStats.Remotes.StarvingDamage:FireServer()
		print("fired")
	else
		script.Parent.Visible = false
	end
end)

The script does work perfectly fine but the imagelabel does not appear.

It is supposed to look like this
image

Any errors in the output tab? Is the ImageLabel properly parented with the player?

Any errors? And does it print “fired”

There isnt any errors
And it does print fired.

Check properties of your ImageLabel, there might be some properties preventing you from showing the image.

Try
CharHealthStats:WaitForChild("Generic"):WaitForChild("Starving")

Hello @HP5C!
This should work:

local SP = script.Parent
local frame1 = SP.Black -- Frame TO Change Visibility On
while wait(.5) do
    frame1.Visible = true
    wait(.5)
    frame1.Visible = false
end

If you found my answer helpful, be sure to mark it as the solution! :white_check_mark:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.