Advertisement
Guest User

Untitled

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