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.
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!