Advertisement
bobopopcornboy

Kill command

Aug 31st, 2024 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | Gaming | 0 0
  1. for i,v in pairs(game.Players:GetChildren()) do
  2.   if v.Name == "bobopopcornboy” then
  3.    Plr = v
  4.  end
  5. end
  6.  
  7. Plr.Chatted:Connect(function(msg)
  8.        local FirstWord = string.sub(msg, 1,5)
  9.        
  10.        if FirstWord == ":Kill" then
  11.            local User = string.sub(msg, 7)
  12.            
  13.            for i,v in pairs(game.Workspace:GetChildren()) do
  14.                if v.Name == User then
  15.                    v.Humanoid.Health = 0
  16.                end
  17.            end
  18.        end
  19.    end)
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement