I'm really new so sorry if I'm annoying but, why doesn't this work, I heard that this is how to run code when text buttons get clickedd
function Clicked()
game.Players.TheHappy4Life:kick("test click")
end
script.Parent.TextButton.MouseClick:connect(Clicked)

1 comment
MouseClick is for ClickDetectors. Use MouseButton1Click