So what I need is I have this script that when a certain button is clicked it should make an instance.new with a billboardGui under the player's Head in the hireachy.
local player = game:GetService("Players").LocalPlayer
local character = player.Character
if not character or not character.Parent then
character = player.CharacterAdded:wait()
function yes(Player)
local BillboardGui = Instance.new("BillboardGui",character.Head) -- Instantiate a Part, as a child of the Workspace
BillboardGui.Name = "BillboardGui"
end
end
script.Parent.MouseButton1Down:connect(yes)

2 comments
But here, in a localscript... what?
but here, in a localscript... we find peace within ourselves.