My script enables the visibility of an ImageLabel every other second, but when I run the game/play test it only begins to appear when it is selected.
script
billboard = script.Parent:WaitForChild("BillboardGui")
bright = script.Parent:WaitForChild("Light")
while true do
script.Parent.PointLight.Enabled = true
billboard.ImageLabel.Visible = true
bright.bulb.Visible = true
wait(1)
script.Parent.PointLight.Enabled = false
billboard.ImageLabel.Visible = false
bright.bulb.Visible = false
wait(1)
end
config
2 Likes
What do you mean by it only appears when it’s selected?
Lin27
(Lin27)
May 14, 2021, 8:12pm
#3
probably when you highlight it in the explorer tab
1 Like
Lin27
(Lin27)
May 14, 2021, 8:16pm
#4
@cuberoot5 can you put print("Script Loaded")
at the end of the script and see if it prints into the output during the test run?
1 Like
yep it prints and i dont have any errors
Lin27
(Lin27)
May 14, 2021, 8:21pm
#6
I don’t have a lot of information to go on, so I’m gonna suggest these things:
Is the BillboardGui enabled in properties?
Is the BillboardGui a descendant of game.workspace
?
(Does the BillboardGui have an adornee?)
Are you in range of the BillboardGui (see properties)?
1 Like
it doesn’t have an adornee. what should i set it to?
Lin27
(Lin27)
May 14, 2021, 8:24pm
#8
I’m sure it can be set to nil and you’ll still see the gui, hence why its between ( ). You can set it to anything under workspace and it will teleport instantly to that position. Recommendation: Part
or Attachment
.
i set it to an attachment but it still won’t appear unless i select it in explorer.
here’s the properties of both GUIs
Lin27
(Lin27)
May 14, 2021, 8:28pm
#10
Can you send a picture of the Gui in-game (selected and unselected)?
1 Like
here i took a video as its a bit easier to see when i select it
i select the gui in explorer at 00:07
Lin27
(Lin27)
May 14, 2021, 8:38pm
#12
Excuse me for asking a lot of questions, I just need more information to see what went wrong.
When in Studio Mode, how is it suppose to look like when the image is visible?
don’t worry about asking questions i was very vague.
its meant to look like this in studio:
Lin27
(Lin27)
May 14, 2021, 8:47pm
#14
I don’t have a clue what went wrong. It seems to be likely an asset loading issue that I’m not familiar with. If you play this game LIVE (so no studio mode or test runs), does this bug still persist?
1 Like
actually, it seems to work in live gameplay. it didn’t previously though so thanks very much for using your time to help me! much appreciated have a good day
1 Like