emilistt

An Astonishing Day Script

Jan 16th, 2021 (edited)
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.59 KB | None | 0 0
  1. --made by Jerse1#5645 for https://www.roblox.com/games/5396265722/Update-An-Astonishing-Day?refPageId=f22cdc84-e39c-4368-830e-23c97cc147fd;
  2. local P = game:GetService('Players').LocalPlayer;
  3. local PS = game:GetService('Players');
  4.  
  5. local JERSEHUB = Instance.new("ScreenGui")
  6. local MAIN = Instance.new("Frame")
  7. local UIGradient = Instance.new("UIGradient")
  8. local turnoff = Instance.new("TextButton")
  9. local SCRIPT1 = Instance.new("TextButton")
  10. local SCRIPT2 = Instance.new("TextButton")
  11. local DMG = Instance.new("TextButton")
  12. local WalkspeedButton = Instance.new("TextButton")
  13. local Walkspeed2 = Instance.new("TextBox")
  14. local JumppowerButton = Instance.new("TextButton")
  15. local Jumppower2 = Instance.new("TextBox")
  16. local DamageUI = Instance.new("Frame")
  17. local UIGradient_2 = Instance.new("UIGradient")
  18. local DamageUiName = Instance.new("TextLabel")
  19. local UIGradient_3 = Instance.new("UIGradient")
  20. local Players = Instance.new("Frame")
  21. local UIGridLayout = Instance.new("UIGridLayout")
  22. local turnoffdamage = Instance.new("TextButton")
  23. local DamageAll = Instance.new("TextButton")
  24. local DamageAmount = Instance.new("TextBox")
  25. local DamageWarning = Instance.new("TextLabel")
  26. local turnon = Instance.new("TextButton")
  27.  
  28. JERSEHUB.Name = "JERSEHUB"
  29. JERSEHUB.Parent = P.PlayerGui;
  30. JERSEHUB.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  31.  
  32. MAIN.Name = "MAIN"
  33. MAIN.Parent = JERSEHUB
  34. MAIN.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  35. MAIN.BorderColor3 = Color3.fromRGB(173, 173, 173)
  36. MAIN.BorderSizePixel = 6
  37. MAIN.Position = UDim2.new(0.321252078, 0, 0.24924013, 0)
  38. MAIN.Size = UDim2.new(0, 538, 0, 353)
  39. MAIN.Visible = false
  40. MAIN.Active = true;
  41. MAIN.Draggable = true;
  42. MAIN.Parent = JERSEHUB;
  43.  
  44.  
  45. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(254, 123, 48)), ColorSequenceKeypoint.new(0.10, Color3.fromRGB(254, 158, 73)), ColorSequenceKeypoint.new(0.87, Color3.fromRGB(254, 158, 73)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(254, 123, 48))}
  46. UIGradient.Rotation = 90
  47. UIGradient.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.32), NumberSequenceKeypoint.new(0.05, 0.00), NumberSequenceKeypoint.new(0.93, 0.00), NumberSequenceKeypoint.new(1.00, 0.40)}
  48. UIGradient.Parent = MAIN
  49.  
  50. turnoff.Name = "turnoff"
  51. turnoff.Parent = MAIN
  52. turnoff.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. turnoff.BackgroundTransparency = 1.000
  54. turnoff.Position = UDim2.new(0.908921957, 0, 0, 0)
  55. turnoff.Size = UDim2.new(0, 49, 0, 42)
  56. turnoff.Font = Enum.Font.Ubuntu
  57. turnoff.Text = "X"
  58. turnoff.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. turnoff.TextSize = 30.000
  60. turnoff.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  61.  
  62. SCRIPT1.Name = "SCRIPT1"
  63. SCRIPT1.Parent = MAIN
  64. SCRIPT1.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  65. SCRIPT1.BackgroundTransparency = 0.700
  66. SCRIPT1.BorderSizePixel = 0
  67. SCRIPT1.Position = UDim2.new(0.0297397766, 0, 0.0538243651, 0)
  68. SCRIPT1.Size = UDim2.new(0, 200, 0, 50)
  69. SCRIPT1.Font = Enum.Font.Ubuntu
  70. SCRIPT1.Text = "SCRIPT1"
  71. SCRIPT1.TextColor3 = Color3.fromRGB(0, 0, 0)
  72. SCRIPT1.TextSize = 14.000
  73.  
  74. SCRIPT2.Name = "SCRIPT2"
  75. SCRIPT2.Parent = MAIN
  76. SCRIPT2.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  77. SCRIPT2.BackgroundTransparency = 0.700
  78. SCRIPT2.BorderSizePixel = 0
  79. SCRIPT2.Position = UDim2.new(0.537174761, 0, 0.0538243651, 0)
  80. SCRIPT2.Size = UDim2.new(0, 200, 0, 50)
  81. SCRIPT2.Font = Enum.Font.Ubuntu
  82. SCRIPT2.Text = "SCRIPT2"
  83. SCRIPT2.TextColor3 = Color3.fromRGB(0, 0, 0)
  84. SCRIPT2.TextSize = 14.000
  85.  
  86. DMG.Name = "DMG"
  87. DMG.Parent = MAIN
  88. DMG.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  89. DMG.BackgroundTransparency = 0.700
  90. DMG.BorderSizePixel = 0
  91. DMG.Position = UDim2.new(0.204460979, 0, 0.654390931, 0)
  92. DMG.Size = UDim2.new(0, 200, 0, 50)
  93. DMG.Font = Enum.Font.Ubuntu
  94. DMG.Text = "Open damage UI"
  95. DMG.TextColor3 = Color3.fromRGB(0, 0, 0)
  96. DMG.TextSize = 14.000
  97.  
  98. WalkspeedButton.Name = "WalkspeedButton"
  99. WalkspeedButton.Parent = MAIN
  100. WalkspeedButton.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  101. WalkspeedButton.BackgroundTransparency = 0.700
  102. WalkspeedButton.BorderSizePixel = 0
  103. WalkspeedButton.Position = UDim2.new(0.644981384, 0, 0.654390991, 0)
  104. WalkspeedButton.Size = UDim2.new(0, 84, 0, 50)
  105. WalkspeedButton.Font = Enum.Font.Ubuntu
  106. WalkspeedButton.Text = "WALKSPEED"
  107. WalkspeedButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  108. WalkspeedButton.TextSize = 14.000
  109.  
  110. Walkspeed2.Name = "Walkspeed2"
  111. Walkspeed2.Parent = MAIN
  112. Walkspeed2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  113. Walkspeed2.Position = UDim2.new(0.644981384, 0, 0.818696916, 0)
  114. Walkspeed2.Size = UDim2.new(0, 84, 0, 50)
  115. Walkspeed2.Font = Enum.Font.Ubuntu
  116. Walkspeed2.Text = "walkspeed"
  117. Walkspeed2.TextColor3 = Color3.fromRGB(0, 0, 0)
  118. Walkspeed2.TextSize = 14.000
  119.  
  120. JumppowerButton.Name = "JumppowerButton"
  121. JumppowerButton.Parent = MAIN
  122. JumppowerButton.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  123. JumppowerButton.BackgroundTransparency = 0.700
  124. JumppowerButton.BorderSizePixel = 0
  125. JumppowerButton.Position = UDim2.new(0.821561337, 0, 0.654390991, 0)
  126. JumppowerButton.Size = UDim2.new(0, 84, 0, 50)
  127. JumppowerButton.Font = Enum.Font.Ubuntu
  128. JumppowerButton.Text = "JUMPPOWER"
  129. JumppowerButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  130. JumppowerButton.TextSize = 14.000
  131.  
  132. Jumppower2.Name = "Jumppower2"
  133. Jumppower2.Parent = MAIN
  134. Jumppower2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135. Jumppower2.Position = UDim2.new(0.821561337, 0, 0.818696916, 0)
  136. Jumppower2.Size = UDim2.new(0, 84, 0, 50)
  137. Jumppower2.Font = Enum.Font.Ubuntu
  138. Jumppower2.Text = "jumppower"
  139. Jumppower2.TextColor3 = Color3.fromRGB(0, 0, 0)
  140. Jumppower2.TextSize = 14.000
  141.  
  142. DamageUI.Name = "DamageUI"
  143. DamageUI.Parent = MAIN
  144. DamageUI.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145. DamageUI.BorderSizePixel = 0
  146. DamageUI.Position = UDim2.new(-0.663568795, 0, 0.118980169, 0)
  147. DamageUI.Size = UDim2.new(0, 406, 0, 303)
  148. DamageUI.Visible = false;
  149. DamageUI.Active = true;
  150. DamageUI.Draggable = true;
  151.  
  152. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(212, 80, 255)), ColorSequenceKeypoint.new(0.10, Color3.fromRGB(204, 136, 204)), ColorSequenceKeypoint.new(0.87, Color3.fromRGB(204, 136, 204)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(212, 80, 255))}
  153. UIGradient_2.Rotation = 90
  154. UIGradient_2.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.32), NumberSequenceKeypoint.new(0.04, 0.31), NumberSequenceKeypoint.new(0.05, 0.00), NumberSequenceKeypoint.new(0.95, 0.00), NumberSequenceKeypoint.new(0.95, 0.31), NumberSequenceKeypoint.new(1.00, 0.32)}
  155. UIGradient_2.Parent = DamageUI
  156.  
  157. DamageUiName.Name = "DamageUiName"
  158. DamageUiName.Parent = DamageUI
  159. DamageUiName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  160. DamageUiName.BackgroundTransparency = 1.000
  161. DamageUiName.Size = UDim2.new(0, 406, 0, 34)
  162. DamageUiName.Font = Enum.Font.Ubuntu
  163. DamageUiName.Text = "Damage UI"
  164. DamageUiName.TextColor3 = Color3.fromRGB(255, 255, 255)
  165. DamageUiName.TextSize = 25.000
  166.  
  167. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(212, 80, 255)), ColorSequenceKeypoint.new(0.10, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.87, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(212, 80, 255))}
  168. UIGradient_3.Rotation = 90
  169. UIGradient_3.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0.00, 0.32), NumberSequenceKeypoint.new(0.05, 0.00), NumberSequenceKeypoint.new(0.93, 0.00), NumberSequenceKeypoint.new(1.00, 0.40)}
  170. UIGradient_3.Parent = DamageUiName
  171.  
  172. Players.Name = "Players"
  173. Players.Parent = DamageUI
  174. Players.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  175. Players.BackgroundTransparency = 0.900
  176. Players.BorderSizePixel = 0
  177. Players.Position = UDim2.new(0, 0, 0.408905327, 0)
  178. Players.Size = UDim2.new(0, 406, 0, 161)
  179.  
  180. UIGridLayout.Parent = Players
  181. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  182. UIGridLayout.CellPadding = UDim2.new(0, 2, 0, 2)
  183. UIGridLayout.CellSize = UDim2.new(0, 100, 0, 15)
  184.  
  185.  
  186. turnoffdamage.Name = "turnoffdamage"
  187. turnoffdamage.Parent = DamageUI
  188. turnoffdamage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189. turnoffdamage.BackgroundTransparency = 1.000
  190. turnoffdamage.Position = UDim2.new(0.876902223, 0, 0, 0)
  191. turnoffdamage.Size = UDim2.new(0, 49, 0, 42)
  192. turnoffdamage.Font = Enum.Font.Ubuntu
  193. turnoffdamage.Text = "X"
  194. turnoffdamage.TextColor3 = Color3.fromRGB(255, 255, 255)
  195. turnoffdamage.TextSize = 30.000
  196. turnoffdamage.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  197.  
  198. DamageAll.Name = "DamageAll"
  199. DamageAll.Parent = DamageUI
  200. DamageAll.BackgroundColor3 = Color3.fromRGB(103, 103, 103)
  201. DamageAll.BackgroundTransparency = 0.500
  202. DamageAll.Position = UDim2.new(0.0172413792, 0, 0.114406772, 0)
  203. DamageAll.Size = UDim2.new(0, 139, 0, 41)
  204. DamageAll.Font = Enum.Font.Ubuntu
  205. DamageAll.Text = "Damage Everyone"
  206. DamageAll.TextColor3 = Color3.fromRGB(255, 255, 255)
  207. DamageAll.TextScaled = true
  208. DamageAll.TextSize = 14.000
  209. DamageAll.TextWrapped = true
  210.  
  211. DamageAmount.Name = "DamageAmount"
  212. DamageAmount.Parent = DamageUI
  213. DamageAmount.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
  214. DamageAmount.BackgroundTransparency = 0.500
  215. DamageAmount.Position = UDim2.new(0.512315273, 0, 0.276122928, 0)
  216. DamageAmount.Size = UDim2.new(0, 148, 0, 27)
  217. DamageAmount.Font = Enum.Font.Ubuntu
  218. DamageAmount.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  219. DamageAmount.Text = "Damage amount"
  220. DamageAmount.TextColor3 = Color3.fromRGB(255, 255, 255)
  221. DamageAmount.TextSize = 20.000
  222. DamageAmount.TextWrapped = true
  223.  
  224. DamageWarning.Name = "DamageWarning"
  225. DamageWarning.Parent = DamageUI
  226. DamageWarning.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  227. DamageWarning.Position = UDim2.new(0.440886676, 0, 0.138613865, 0)
  228. DamageWarning.Size = UDim2.new(0, 210, 0, 34)
  229. DamageWarning.Font = Enum.Font.Ubuntu
  230. DamageWarning.Text = "Enter damage below. Damage must be below 500 or you'll get kicked";
  231. DamageWarning.TextColor3 = Color3.fromRGB(255, 255, 255);
  232. DamageWarning.TextScaled = true;
  233. DamageWarning.TextSize = 14.000;
  234. DamageWarning.TextWrapped = true
  235.  
  236. turnon.Name = "turnon"
  237. turnon.Parent = JERSEHUB
  238. turnon.BackgroundColor3 = Color3.fromRGB(255, 168, 47)
  239. turnon.BackgroundTransparency = 0.500
  240. turnon.BorderSizePixel = 0
  241. turnon.Position = UDim2.new(0.9171592, 0, 0.600303948, 0)
  242. turnon.Size = UDim2.new(0, 100, 0, 28)
  243. turnon.Font = Enum.Font.Ubuntu
  244. turnon.Text = "TURN ON"
  245. turnon.TextColor3 = Color3.fromRGB(255, 255, 255)
  246. turnon.TextScaled = true
  247. turnon.TextSize = 30.000
  248. turnon.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  249. turnon.TextWrapped = true                                                                                      
  250.  
  251.  
  252. WalkspeedButton.MouseButton1Click:Connect(function()
  253.     if tonumber(Walkspeed2.Text)then
  254.         P.Character.Humanoid.WalkSpeed = tonumber(Walkspeed2.Text)
  255.     end;
  256. end);
  257.  
  258. JumppowerButton.MouseButton1Click:Connect(function()
  259.     if tonumber(Jumppower2.Text)then
  260.         P.Character.Humanoid.JumpPower = tonumber(Jumppower2.Text)
  261.     end;
  262. end);
  263.  
  264. turnoff.MouseButton1Click:Connect(function()
  265.     MAIN.Visible = false;
  266.     turnon.Visible = true;
  267. end);
  268.  
  269. turnon.MouseButton1Click:Connect(function()
  270.     MAIN.Visible = true;
  271.     turnon.Visible = false;
  272. end);
  273.  
  274. turnoffdamage.MouseButton1Click:Connect(function()
  275.     DamageUI.Visible = false;
  276. end);
  277.  
  278. DamageAll.MouseButton1Click:Connect(function()
  279.     if tonumber(DamageAmount.Text) then
  280.         for i,v in pairs(workspace:GetChildren()) do
  281.             if v:IsA('Model') and v ~= P.Character then
  282.                 local Character = v;
  283.                 local Humanoid = Character:FindFirstChildWhichIsA('Humanoid');
  284.                 if Humanoid then
  285.                     local HumanoidRootPart = Character:FindFirstChild('HumanoidRootPart');
  286.                     if HumanoidRootPart and Humanoid.Health > 0 then
  287.                         print(Character:GetFullName(),Humanoid.Health);
  288.                         game:GetService("ReplicatedStorage").PVP:FireServer("Damage", tonumber(DamageAmount.Text), Humanoid, HumanoidRootPart.CFrame, 100, 100);
  289.                     end;
  290.                 end;
  291.             end;
  292.             game:GetService('RunService').Heartbeat:Wait();
  293.         end;
  294.     end;
  295. end);
  296.  
  297. DMG.MouseButton1Click:Connect(function()
  298.     DamageUI.Visible = true;
  299. end);
  300. for i,v in pairs(workspace:GetChildren()) do
  301.     if v:IsA('Model') and v ~= P.Character then
  302.         local Character = v;
  303.         local Humanoid = Character:FindFirstChildWhichIsA('Humanoid');
  304.         if Humanoid then
  305.             local HumanoidRootPart = Character:FindFirstChild('HumanoidRootPart');
  306.             if HumanoidRootPart and not Players:FindFirstChild(Character.Name) then
  307.                 local RealJerse = Instance.new("TextButton");
  308.                 RealJerse.Name = Character.Name
  309.                 RealJerse.Parent = Players
  310.                 RealJerse.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  311.                 RealJerse.BackgroundTransparency = 0.500
  312.                 RealJerse.BorderSizePixel = 0
  313.                 RealJerse.Size = UDim2.new(0, 130, 0, 23)
  314.                 RealJerse.Font = Enum.Font.Ubuntu
  315.                 RealJerse.Text = Character.Name
  316.                 RealJerse.TextColor3 = Color3.fromRGB(0, 0, 0)
  317.                 RealJerse.TextScaled = true
  318.                 RealJerse.TextSize = 10.000
  319.                 RealJerse.TextWrapped = true
  320.                 RealJerse.MouseButton1Click:Connect(function()
  321.                     if tonumber(DamageAmount.Text) then
  322.                         print(Character:GetFullName(),Humanoid.Health);
  323.                         game:GetService("ReplicatedStorage").PVP:FireServer("Damage", tonumber(DamageAmount.Text), Humanoid, HumanoidRootPart.CFrame, 100, 100);
  324.                     end;
  325.                 end);
  326.  
  327.             end;
  328.         end;
  329.     end;
  330.     game:GetService('RunService').Heartbeat:Wait();
  331. end;
  332. spawn(function()
  333.     workspace.ChildRemoved:Connect(function(child)
  334.         if Players:FindFirstChild(child.Name) then
  335.             Players:FindFirstChild(child.Name):Destroy();
  336.         end
  337.     end);
  338.     workspace.ChildAdded:Connect(function(child)
  339.         print('Child has been added');
  340.         wait(.5);
  341.         if child:IsA('Model') and child ~= P.Character then
  342.             local Humanoid2 = child:FindFirstChildWhichIsA('Humanoid');
  343.             if Humanoid2 then
  344.                 local HumanoidRootPart2 = child:FindFirstChild('HumanoidRootPart');
  345.                 if HumanoidRootPart2
  346.                     and not Players:FindFirstChild(child.Name)
  347.                 then
  348.                     print(child.Name,'Child is a Character');
  349.                     local RealJerse2 = Instance.new("TextButton");
  350.                     RealJerse2.Name = child.Name
  351.                     RealJerse2.Parent = Players
  352.                     RealJerse2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  353.                     RealJerse2.BackgroundTransparency = 0.500
  354.                     RealJerse2.BorderSizePixel = 0
  355.                     RealJerse2.Size = UDim2.new(0, 130, 0, 23)
  356.                     RealJerse2.Font = Enum.Font.Ubuntu
  357.                     RealJerse2.Text = child.Name
  358.                     RealJerse2.TextColor3 = Color3.fromRGB(0, 0, 0)
  359.                     RealJerse2.TextScaled = true
  360.                     RealJerse2.TextSize = 10.000
  361.                     RealJerse2.TextWrapped = true
  362.                     RealJerse2.MouseButton1Click:Connect(function()
  363.                         if tonumber(DamageAmount.Text) then
  364.                             print(child:GetFullName(),Humanoid2.Health);
  365.                             game:GetService("ReplicatedStorage").PVP:FireServer("Damage", tonumber(DamageAmount.Text), Humanoid2, HumanoidRootPart2.CFrame, 100, 100);
  366.                         end;
  367.                     end)
  368.                 end
  369.             end
  370.         end;
  371.     end);
  372. end);
Add Comment
Please, Sign In to add comment