4zx16

Kick On Touch

Jul 17th, 2021 (edited)
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || KICK ON TOUCH
  3. ]]
  4. local function onTouched(hit)
  5.     local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  6.    
  7.     if player ~= nil then
  8.         player:Kick("have fun should of not touched this block")
  9.     end
  10. end
  11. script.Parent.Touched:Connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment