I'm trying to make a text button local script that fires a remote event for a server script to disable a billboard GUI that is in a player's head. Nothing happens when I click the text button.
Text button script:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer()
end)
Server Script:
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Head = Character.Head
Head.OverheadGui.Enabled = false
Head.OverheadPlayerGui.Enabled = false
end)
end)
end)
Any help appreciated, thanks.

1 comment
Thank you!