Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Kick on touch script?

I need a script so when a player touches a brick they get kicked?

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.