Hello, im trying to make a ClickDetector that kicks a player when it's clicked, and i need some help with the code, may this one work?
clickd = game.Workspace.note.ClickDetector
clickd.MouseClick:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr:kick("")
end)

6 comments
upvoted
Alright!! Thanks my guy.
Don't forget to accept the answer if it worked :)
How :v
There is a Accept Answer button at the bottom of the post.
Ah, i can't see it.