#billboard gui and local player intvalue.
32 messages · Page 1 of 1 (latest)
Either way, you need to start a function whenever labLocation1Int changes the value
To "update" the gui
oh okay
does it error?
its a good username
so, the function needs to occur whenever the value of the int is changed right?
because the int value is only changed in another script
Yea
labLocation1Int:GetPropertyChangedSignal(function(showBillboardGUI)
if labLocation1Int:IsA("IntValue") and labLocation1Int.Value > 0 then
lab1MarkerFrame.Visible = true
end
end)
wrote this but it still doesnt work
labLocation1Int.Changed:Connect(function()
if labLocation1Int:IsA("IntValue") and labLocation1Int.Value > 0 then
lab1MarkerFrame.Visible = true
end
end)
Try this
GetPropertyChangedSignal is weird af
Any error?
no
the issue seems to be with the if statement
i wrote a script that uses the same if statement to print "chicken" and it didnt work
local player = game.Players.LocalPlayer
local labLocation1Int = player:FindFirstChild("LabLocation1Int")
labLocation1Int.Changed:Connect(function()
if labLocation1Int:IsA("IntValue") and labLocation1Int.Value > 0 then
print "chicken"
end
end)
wait
i did print wrong
okay now it works