EDIT: I changed the name because I’m pretty sure it’s not the code that is the problem since when I click on my billboard UI it doesn’t register the click does anyone what the problem is?
The first one is that you have a local script inside of your billboard gui. If it is in the workspace, then you cannot use a local script.
The second is that you are accessing the “ScreenGui” from StarterGui. Once you play the game, you can only change a gui if the script is inside of starter gui, or by accessing it via PlayerGui.
See if this will work (REMEMBER: This is in a Server Script, not a Local Script.)
script.Parent.Activated:Connect(function(plr)
local Frame = plr.PlayerGui.ScreenGui.Frame
Frame.Visible = true
end)
You cannot access the ScreenGui this way. Each player has a PlayerGui, the StarterGui is where you place GUIs that will be loaded into the PlayerGui when a player joins.
You can try to set your local script to a script where you set the RunContext to client and in your script put that :
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
Player.PlayerGui.ScreenGui.Frame.Visible = true
end)
ive been doing stuff so sorry for the late replies
but what im saying is that since your doing mousebutton1click and the ui cant even be clicked it wont work like its no the code that doesnt work you just cant even click the ui