Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- warrior sim https://www.roblox.com/games/2716845201/Warrior-Simulator?nl=true
- -- initial variables
- hum = game.Players.LocalPlayer.Character.HumanoidRootPart
- gamepasses = game.Players.LocalPlayer.Gamepass:GetChildren()
- thePlayer = game.Players.LocalPlayer.Character
- -- get gamepasses
- for i = 1, #gamepasses do
- gamepasses[i].Value = true
- end
- game.Players.LocalPlayer.Gamepass.DualWield.Enabled.Value = true
- for i = 1, 50 do
- wait()
- end
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local GUI = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local KillAllWarriors= Instance.new("TextButton")
- local KillAllLizard = Instance.new("TextButton")
- local KillAllSkeleton = Instance.new("TextButton")
- local KillDesertBoss = Instance.new("TextButton")
- local Credits = Instance.new("TextLabel")
- local KillKoblox= Instance.new("TextButton")
- local KillTerrainSpecialist= Instance.new("TextButton")
- -- Properties
- modifier = false
- ScreenGui.Parent = game.CoreGui
- GUI.Name = "GUI"
- GUI.Parent = ScreenGui
- GUI.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
- GUI.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- GUI.BorderSizePixel = 0
- GUI.Position = UDim2.new(0, 0, 1.330039531, 0)
- GUI.Size = UDim2.new(0, 316, 0, 339)
- GUI.Style = Enum.FrameStyle.RobloxRound
- Title.Name = "Title"
- Title.Parent = GUI
- Title.Active = true
- Title.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
- Title.Position = UDim2.new(0.114720426, 0, 0.00523944944, 0)
- Title.Size = UDim2.new(0, 200, 0, 50)
- Title.Font = Enum.Font.SourceSans
- Title.Text = "Warrior Simulator GUI"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 14
- KillAllWarriors.Name = "KillAllWarriors"
- KillAllWarriors.Parent = GUI
- KillAllWarriors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- KillAllWarriors.Position = UDim2.new(0.0284810141, 0, 0.233038366, 0)
- KillAllWarriors.Size = UDim2.new(0, 114, 0, 26)
- KillAllWarriors.Font = Enum.Font.SourceSans
- KillAllWarriors.Text = "Kill All Warriors"
- KillAllWarriors.TextColor3 = Color3.new(1, 1, 1)
- KillAllWarriors.TextSize = 14
- KillAllWarriors.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- KillAllWarriors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- KillAllWarriors.BackgroundColor3 = Color3.new(40, 127, 71)
- KillAllIdiots("Warrior", "Grassland")
- end
- end)
- KillAllLizard.Name = "KillAllLizard"
- KillAllLizard.Parent = GUI
- KillAllLizard.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- KillAllLizard.Position = UDim2.new(0.525316477, 0, 0.233038351, 0)
- KillAllLizard.Size = UDim2.new(0, 114, 0, 26)
- KillAllLizard.Font = Enum.Font.SourceSans
- KillAllLizard.Text = "KillAllLizard"
- KillAllLizard.TextColor3 = Color3.new(1, 1, 1)
- KillAllLizard.TextSize = 14
- KillAllLizard.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- KillAllLizard.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- KillAllLizard.BackgroundColor3 = Color3.new(40, 127, 71)
- KillAllIdiots("Lizard Boss", "Grassland")
- end
- end)
- KillAllSkeleton.Name = "KillAllSkeleton"
- KillAllSkeleton.Parent = GUI
- KillAllSkeleton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- KillAllSkeleton.Position = UDim2.new(0.03164557, 0, 0.402654856, 0)
- KillAllSkeleton.Size = UDim2.new(0, 114, 0, 26)
- KillAllSkeleton.Font = Enum.Font.SourceSans
- KillAllSkeleton.Text = "WKillAllSkeleton"
- KillAllSkeleton.TextColor3 = Color3.new(1, 1, 1)
- KillAllSkeleton.TextSize = 14
- KillAllSkeleton.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- KillAllSkeleton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- KillAllSkeleton.BackgroundColor3 = Color3.new(40, 127, 71)
- KillAllIdiots("Skeleton", "Desert")
- end
- end)
- KillDesertBoss.Name = "KillDesertBoss"
- KillDesertBoss.Parent = GUI
- KillDesertBoss.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- KillDesertBoss.Position = UDim2.new(0.525316477, 0, 0.401179969, 0)
- KillDesertBoss.Size = UDim2.new(0, 114, 0, 26)
- KillDesertBoss.Font = Enum.Font.SourceSans
- KillDesertBoss.Text = "KillAllDesertBoss"
- KillDesertBoss.TextColor3 = Color3.new(1, 1, 1)
- KillDesertBoss.TextSize = 14
- KillDesertBoss.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- KillDesertBoss.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- KillDesertBoss.BackgroundColor3 = Color3.new(40, 127, 71)
- KillAllIdiots("Kon the Crusher", "Desert")
- end
- end)
- Credits.Name = "Credits"
- Credits.Parent = GUI
- Credits.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits.Position = UDim2.new(0.00316455704, 0, 0.943952799, 0)
- Credits.Size = UDim2.new(0, 109, 0, 18)
- Credits.Font = Enum.Font.SourceSans
- Credits.Text = "Credits to MRobbin99"
- Credits.TextSize = 14
- KillTerrainSpecialist.Name = "KillTerrainSpecialist"
- KillTerrainSpecialist.Parent = GUI
- KillTerrainSpecialist.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- KillTerrainSpecialist.Position = UDim2.new(0.0284810122, 0, 0.551622391, 0)
- KillTerrainSpecialist.Size = UDim2.new(0, 114, 0, 26)
- KillTerrainSpecialist.Font = Enum.Font.SourceSans
- KillTerrainSpecialist.Text = "Kill Terrain Specialist"
- KillTerrainSpecialist.TextColor3 = Color3.new(1, 1, 1)
- KillTerrainSpecialist.TextSize = 14
- KillTerrainSpecialist.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- KillTerrainSpecialist.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- KillTerrainSpecialist.BackgroundColor3 = Color3.new(40, 127, 71)
- KillAllIdiots("Terrain Specialist", "Iceland")
- end
- end)
- KillKoblox.Parent = GUI
- KillKoblox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- KillKoblox.Position = UDim2.new(0.525316477, 0, 0.548672616, 0)
- KillKoblox.Size = UDim2.new(0, 114, 0, 26)
- KillKoblox.Font = Enum.Font.SourceSans
- KillKoblox.Text = "Kill Korblox General"
- KillKoblox.TextColor3 = Color3.new(1, 1, 1)
- KillKoblox.TextSize = 14
- KillKoblox.MouseButton1Down:connect(function()
- if modifier == true then
- modifier = false
- KillKoblox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- else
- modifier = true
- KillKoblox.BackgroundColor3 = Color3.new(40, 127, 71)
- KillAllIdiots("Korblox General", "Iceland")
- end
- end)
- -- functions
- -- KillAllWarriors
- function KillAllIdiots(mobName, area)
- while modifier do
- wait(.1)
- print('try')
- playerSword = game.Players.LocalPlayer.Data.Sword.Value
- enemie = game.Workspace.Map:FindFirstChild(area).Enemies:GetChildren()
- maxmoney = game.Players.LocalPlayer.Data.Capacity.Value
- for i = 1, #enemie do
- if enemie[i].Name == mobName and enemie[i].Humanoid.Health > 1 then
- money = game.Players.LocalPlayer.Data.Backpack.Value
- temp = money
- -- if ur at max money it sells ur money
- if money == maxmoney then
- hum.CFrame = CFrame.new(-95, 6, 77)
- wait(.3)
- hum.CFrame = CFrame.new(-94, 5, 73)
- wait(1)
- money = game.Players.LocalPlayer.Data.Backpack.Value
- temp = money
- end
- -- teleport to enemie
- hum.CFrame = enemie[i].PrimaryPart.CFrame * CFrame.new(0,0,2)
- -- kill till ur backpack changes
- while money == temp and modifier do
- temp = game.Players.LocalPlayer.Data.Backpack.Value
- local A_1 = enemie[i].Humanoid
- local A_2 = thePlayer[playerSword]
- local A_3 = enemie[i].PrimaryPart.Position
- local A_4 = 0
- local Event = game:GetService("ReplicatedStorage").RemoteEvents.Client.SwordAttack
- Event:FireServer(A_1, A_2, A_3, A_4)
- wait()
- end
- -- pick up potion if it dropped
- debris = game.Workspace.Debris:GetChildren()
- for i = 1, #debris do
- if debris[i].Name == "Potion" then
- hum.CFrame = debris[i].PrimaryPart.CFrame
- wait(.5)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement