I need a script so when a player touches a brick they get kicked?
✓ ANSWER ACCEPTED
Kick on touch script?
1 answer
✓ Accepted answer
Sorry about spacing, not on studio.
script.Parent.Touched:connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr:Kick()
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
