I need the player to be kicked after they click the Textbutton which is named leave mine sucks so please help me
local function onMouseClick(player)
print("you have been kicked")
player:Kick
end)
clickDetector.MouseClick:connect(onMouseClick)
that is my mess up.

1 comment
you're forgetting the brackets, player:Kick(), also thats not a textbutton, thats for a clickdetector