I am making a sandbox game in roblox, one where anyone can make their own obby. I have a Billboard Gui in StarterGUI that shows up whenever someone clicks an object. When i click the object, it says that BillboardGUI is not a valid member of PlayerGui. The game works perfectly when i test it in studio, but not when i play it in Roblox Player. I have no idea what's going on, could someone please help me?
Edit:
The script that i was using was in the part that was clicked, and this is the script:
part = script.Parent.Parent
part.ClickDetector.MouseClick:connect(function(player)
local billboard = player.PlayerGui:WaitForChild("BillboardGui")
billboard.Adornee = part
if billboard.Enabled == true then
billboard.Enabled = false
else
billboard.Enabled = true
end
end)

1 comment
What is the script you are using?