Advertisement
tungdap

one hit boss

Feb 23rd, 2019
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  2. thePlayer = game.Players.LocalPlayer.Character
  3.  
  4. -- Objects
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local GUI = Instance.new("Frame")
  8. local Title = Instance.new("TextLabel")
  9. local Credits = Instance.new("TextLabel")
  10. local SwordAttack= Instance.new("TextButton")
  11. local SwordAttackNo = Instance.new("TextButton")
  12.  
  13. -- Properties
  14.  
  15. modifier = false
  16.  
  17. ScreenGui.Parent = game.CoreGui
  18.  
  19. GUI.Name = "GUI"
  20. GUI.Parent = ScreenGui
  21. GUI.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  22. GUI.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  23. GUI.BorderSizePixel = 0
  24. GUI.Position = UDim2.new(0, 0, 0.730039531, 0)
  25. GUI.Size = UDim2.new(0, 316, 0, 339)
  26. GUI.Style = Enum.FrameStyle.RobloxRound
  27.  
  28. Title.Name = "Title"
  29. Title.Parent = GUI
  30. Title.Active = true
  31. Title.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  32. Title.Position = UDim2.new(0.114720426, 0, 0.00523944944, 0)
  33. Title.Size = UDim2.new(0, 200, 0, 50)
  34. Title.Font = Enum.Font.SourceSans
  35. Title.Text = "Slaying Simulator GUI"
  36. Title.TextColor3 = Color3.new(1, 1, 1)
  37. Title.TextSize = 14
  38.  
  39. SwordAttack.Name = "SwordAttack"
  40. SwordAttack.Parent = GUI
  41. SwordAttack.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  42. SwordAttack.Position = UDim2.new(0.114720426, 0, 0.233038351, 0)
  43. SwordAttack.Size = UDim2.new(0, 200, 0, 50)
  44. SwordAttack.Font = Enum.Font.SourceSans
  45. SwordAttack.Text = "Spam tp/One Hitt Boss"
  46. SwordAttack.TextColor3 = Color3.new(1, 1, 1)
  47. SwordAttack.TextSize = 14
  48. SwordAttack.MouseButton1Down:connect(function()
  49.  
  50. if modifier == true then
  51. modifier = false
  52. SwordAttack.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  53. else
  54. modifier = true
  55. SwordAttack.BackgroundColor3 = Color3.new(40, 127, 71)
  56. kill()
  57. end
  58. end)
  59.  
  60. SwordAttackNo.Name = "SwordAttackNo"
  61. SwordAttackNo.Parent = GUI
  62. SwordAttackNo.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  63. SwordAttackNo.Position = UDim2.new(0.114720426, 0, 0.551622391, 0)
  64. SwordAttackNo.Size = UDim2.new(0, 200, 0, 50)
  65. SwordAttackNo.Font = Enum.Font.SourceSans
  66. SwordAttackNo.Text = "Teleport back to spawn"
  67. SwordAttackNo.TextColor3 = Color3.new(1, 1, 1)
  68. SwordAttackNo.TextSize = 14
  69. SwordAttackNo.MouseButton1Down:connect(function()
  70. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  71. hum.CFrame = CFrame.new(-69, 4, 18)
  72. end)
  73.  
  74. Credits.Name = "Credits"
  75. Credits.Parent = GUI
  76. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  77. Credits.Position = UDim2.new(0.00316455704, 0, 0.943952799, 0)
  78. Credits.Size = UDim2.new(0, 109, 0, 18)
  79. Credits.Font = Enum.Font.SourceSans
  80. Credits.Text = "Credits to MRobbin99"
  81. Credits.TextSize = 14
  82.  
  83.  
  84. -- functions
  85.  
  86. -- Kill
  87. function kill()
  88. while modifier do
  89. wait()
  90. if game.Workspace.Enemies["Frost Guard"]:FindFirstChild(" ") ~= nil then
  91. if game.Workspace.Enemies["Frost Guard"][" "]:FindFirstChild("UpperTorso") ~= nil then
  92. if game.Workspace.Enemies["Frost Guard"][" "]:FindFirstChild("HumanoidRootPart") ~= nil then
  93. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  94. enemie = game.Workspace.Enemies["Frost Guard"]:FindFirstChild(" ")
  95. hum.CFrame = enemie.HumanoidRootPart.CFrame * CFrame.new(-1,0,3)
  96. if enemie:FindFirstChild("FrostGuardSword") ~= nil then
  97. sword = enemie:FindFirstChild("FrostGuardSword")
  98. sword:Destroy()
  99. end
  100. if enemie.Humanoid.Health ~= enemie.Humanoid.MaxHealth and game.Workspace.Enemies:FindFirstChild("Frost Guard") ~= nil then
  101. if enemie:FindFirstChild("UpperTorso") ~= nil then
  102. enemie.UpperTorso:Destroy()
  103. end
  104. end
  105. end
  106. end
  107. end
  108. end
  109. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement