I have a chat gui and when I chat, it adds the textlabel in the player inside a Frame. I want when I click this gui, the font changes to Arial.
a = script.Parent
clicked = a.MouseButton1Down
game.Players.PlayerAdded:connect(function(Player)
a.MouseButton1Down:connect(function(clicked)
if clicked then
game.Players.Player.PlayerGui.ChatGui.Frame:IsA("TextLabel").Font = "Arial"
end
end)
end)
Thanks for the help!

3 comments
What are you clicking?
A TextButton
Your problem is line 10; You are changing the TextLabel's Text itself; The 'IsA' method returns a Boolean (true, false, nil [Not sure about 'nil']), so, in the code, you are basically typing 'true.Font', and/or 'false.Font'. :P