Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local players = game:GetService("Players")
- local plr = game.Players.LocalPlayer
- local char = workspace:WaitForChild(plr.Name)
- local dead = false
- local blackList = {}
- plr.Chatted:Connect(function(chat)
- local text = string.split(chat, " ")
- if string.lower(text[1]) == ";blacklist" then
- if string.lower(text[2]) ~= "all" then
- blackList[string.lower(text[2])]=true
- else
- for i,v in pairs(game.Players:GetPlayers()) do
- blackList[string.lower(v.Name)]=true
- end
- end
- elseif string.lower(text[1]) == ";unblacklist" then
- if string.lower(text[2]) ~= "all" then
- blackList[string.lower(text[2])]=nil
- else
- for i,v in pairs(blackList) do
- blackList[i]=nil
- end
- end
- end
- end)
- while wait() do
- local char = workspace:FindFirstChild(plr.Name)
- if char then
- local sword = char:FindFirstChildOfClass("Tool")
- if sword then
- local children = players:GetPlayers()
- for i,v in pairs(children) do
- if v ~= plr and blackList[string.lower(v.Name)] then
- local thisChar = workspace:FindFirstChild(v.Name)
- if thisChar then
- thisChar:SetPrimaryPartCFrame(char.PrimaryPart.CFrame*CFrame.new(1,0,-1.5))
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement