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)
MouseClick
isn't an event of TextButtons, I think you mean .MouseButton1Click
and also :connect
is deprecated, it's better to use :Connect