I want it to get the character from the player when the button is clicked, here's my script.
Button = script.Parent Button.MouseButton1Up:Connect(function(Player) local char = Player.Character if char then if Player.leaderstats.Doges.Value >= 100 then Player.leaderstats.Doges.Value = Player.leaderstats.Doges.Value - 100 char.Head.BillboardGui.TextLabel.BackgroundTransparency = 0 char.Head.BillboardGui.TextLabel.TextTransparency = 0 char.Head.BillboardGui.TextLabel.Text = "Noob" else Button.Sound.Playing = true end end end)