FurkyYT

Slaying Simulator auto farm

Feb 26th, 2019
3,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. -- UPDATE 12
  2.  
  3. -- still works as of 2/24/2019
  4. -- if it breaks (you see the boss dead on the ground with health) then rejoin no fixing that.
  5.  
  6. -- slaying simulator https://www.roblox.com/games/2616498302/6M-Slaying-Simulator#!/game-instances
  7.  
  8. -- initial variables
  9. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  10. thePlayer = game.Players.LocalPlayer.Character
  11.  
  12. -- Objects
  13.  
  14. local ScreenGui = Instance.new("ScreenGui")
  15. local GUI = Instance.new("Frame")
  16. local Title = Instance.new("TextLabel")
  17. local Credits = Instance.new("TextLabel")
  18. local SwordAttack= Instance.new("TextButton")
  19. local SwordAttackNo = Instance.new("TextButton")
  20.  
  21. -- Properties
  22.  
  23. modifier = false
  24.  
  25. ScreenGui.Parent = game.CoreGui
  26.  
  27. GUI.Name = "GUI"
  28. GUI.Parent = ScreenGui
  29. GUI.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  30. GUI.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  31. GUI.BorderSizePixel = 0
  32. GUI.Position = UDim2.new(0, 0, 0.730039531, 0)
  33. GUI.Size = UDim2.new(0, 316, 0, 339)
  34. GUI.Style = Enum.FrameStyle.RobloxRound
  35.  
  36. Title.Name = "Title"
  37. Title.Parent = GUI
  38. Title.Active = true
  39. Title.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  40. Title.Position = UDim2.new(0.114720426, 0, 0.00523944944, 0)
  41. Title.Size = UDim2.new(0, 200, 0, 50)
  42. Title.Font = Enum.Font.SourceSans
  43. Title.Text = "Slaying Simulator GUI"
  44. Title.TextColor3 = Color3.new(1, 1, 1)
  45. Title.TextSize = 14
  46.  
  47. SwordAttack.Name = "SwordAttack"
  48. SwordAttack.Parent = GUI
  49. SwordAttack.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  50. SwordAttack.Position = UDim2.new(0.114720426, 0, 0.233038351, 0)
  51. SwordAttack.Size = UDim2.new(0, 200, 0, 50)
  52. SwordAttack.Font = Enum.Font.SourceSans
  53. SwordAttack.Text = "Spam tp/One Hitt Boss"
  54. SwordAttack.TextColor3 = Color3.new(1, 1, 1)
  55. SwordAttack.TextSize = 14
  56. SwordAttack.MouseButton1Down:connect(function()
  57.  
  58. if modifier == true then
  59. modifier = false
  60. SwordAttack.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  61. else
  62. modifier = true
  63. SwordAttack.BackgroundColor3 = Color3.new(40, 127, 71)
  64. kill()
  65. end
  66. end)
  67.  
  68. SwordAttackNo.Name = "SwordAttackNo"
  69. SwordAttackNo.Parent = GUI
  70. SwordAttackNo.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  71. SwordAttackNo.Position = UDim2.new(0.114720426, 0, 0.551622391, 0)
  72. SwordAttackNo.Size = UDim2.new(0, 200, 0, 50)
  73. SwordAttackNo.Font = Enum.Font.SourceSans
  74. SwordAttackNo.Text = "Teleport back to spawn"
  75. SwordAttackNo.TextColor3 = Color3.new(1, 1, 1)
  76. SwordAttackNo.TextSize = 14
  77. SwordAttackNo.MouseButton1Down:connect(function()
  78. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  79. hum.CFrame = CFrame.new(-69, 4, 18)
  80. end)
  81.  
  82. Credits.Name = "Credits"
  83. Credits.Parent = GUI
  84. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  85. Credits.Position = UDim2.new(0.00316455704, 0, 0.943952799, 0)
  86. Credits.Size = UDim2.new(0, 109, 0, 18)
  87. Credits.Font = Enum.Font.SourceSans
  88. Credits.Text = "Credits to MRobbin99"
  89. Credits.TextSize = 14
  90.  
  91.  
  92. -- functions
  93.  
  94. -- Kill
  95. function kill()
  96. while modifier do
  97. wait()
  98. if game.Workspace.Enemies["Flame Guard"]:FindFirstChild(" ") ~= nil then
  99. if game.Workspace.Enemies["Flame Guard"][" "]:FindFirstChild("UpperTorso") ~= nil then
  100. if game.Workspace.Enemies["Flame Guard"][" "]:FindFirstChild("HumanoidRootPart") ~= nil then
  101. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  102. enemie = game.Workspace.Enemies["Flame Guard"]:FindFirstChild(" ")
  103. hum.CFrame = enemie.HumanoidRootPart.CFrame * CFrame.new(-3.5,0,3)
  104. if enemie:FindFirstChild("FlameGuardSword") ~= nil then
  105. sword = enemie:FindFirstChild("FlameGuardSword")
  106. sword:Destroy()
  107. end
  108. char = game.Players.LocalPlayer.Character:GetChildren()
  109. for i = 1, #char do
  110. if char[i].ClassName == "Tool" then
  111. char[i].ControlFolder.PlayAnimation:FireServer()
  112. end
  113. end
  114. wait(0.3)
  115. if enemie.Humanoid.Health ~= enemie.Humanoid.MaxHealth and game.Workspace.Enemies:FindFirstChild("Flame Guard") ~= nil then
  116. if enemie:FindFirstChild("UpperTorso") ~= nil then
  117. enemie.UpperTorso:Destroy()
  118. end
  119. end
  120. end
  121. end
  122. end
  123. end
  124. end
Add Comment
Please, Sign In to add comment