SHARE
TWEET

SLAYER WIMULATOR BOYS

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