#billboard gui and local player intvalue.

32 messages · Page 1 of 1 (latest)

trim ice
#

Everything looks fine, is it a local script?

#

Either way, you need to start a function whenever labLocation1Int changes the value

#

To "update" the gui

grand silo
#

oh okay

muted ingot
#

does it error?

grand silo
#

in output?

#

no

#

im gonna start a function like alligatorsaurus rex said

muted ingot
#

lol

#

u wrote all his name xd

grand silo
#

its a good username

trim ice
#

Alligator + T-REX = Alligatousaurous Rex

#

But you can call me AVG

grand silo
#

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

grand silo
#
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

trim ice
#
labLocation1Int.Changed:Connect(function()
    if labLocation1Int:IsA("IntValue") and labLocation1Int.Value > 0 then
        lab1MarkerFrame.Visible = true
    end
end)
#

Try this

#

GetPropertyChangedSignal is weird af

grand silo
#

oh okay

#

darn still doesnt wor

#

k

trim ice
#

Any error?

grand silo
#

no

grand silo
#

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