Advertisement
ROBLOX_SCRIPT_SHARE

ELEMENTAL PLAYGROUND SCRIPT

Feb 15th, 2022
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.35 KB | None | 0 0
  1. local _gui = {gui = Instance.new("ScreenGui") ,
  2. obj1 = Instance.new('Frame') ,
  3. obj2 = Instance.new('TextLabel') ,
  4. obj3 = Instance.new('TextButton') ,
  5. obj4 = Instance.new('LocalScript') ,
  6. obj5 = Instance.new('TextLabel') ,
  7. obj6 = Instance.new('TextButton') ,
  8. obj7 = Instance.new('TextBox') ,
  9. }
  10. _gui.gui.ResetOnSpawn = false
  11. _gui.gui.DisplayOrder = 0
  12.  
  13. _gui.gui.Enabled = true
  14. _gui.gui.Name = 'ElementalMenu'
  15. if pcall(function ()
  16. _gui.gui.Parent = game.CoreGui
  17. end) then print("Placed to CoreGui") else
  18. _gui.gui.Parent = game.Players.LocalPlayer.PlayerGui
  19. print('Failed to place CoreGui') end
  20. _gui.obj1.Visible = true
  21. _gui.obj1.Active = false
  22. _gui.obj1.ZIndex = 1
  23. _gui.obj1.BorderSizePixel = 1
  24. _gui.obj1.BackgroundColor3 = Color3.new(0.615686, 0.615686, 0.615686)
  25. _gui.obj1.Selectable = false
  26. _gui.obj1.Name = 'Frame'
  27. _gui.obj1.AnchorPoint = Vector2.new(0, 0)
  28. _gui.obj1.Size = UDim2.new(0, 200, 0, 200)
  29. _gui.obj1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  30. _gui.obj1.LayoutOrder = 0
  31. _gui.obj1.Style = Enum.FrameStyle.Custom
  32. _gui.obj1.Position = UDim2.new(0, 0, 0, 0)
  33. _gui.obj1.BackgroundTransparency = 0
  34. spawn(function()
  35. _gui.obj1.Parent = _gui.gui
  36. end)_gui.obj2.TextWrapped = true
  37. _gui.obj2.TextStrokeTransparency = 0
  38. _gui.obj2.RichText = true
  39. _gui.obj2.TextScaled = true
  40. _gui.obj2.BackgroundColor3 = Color3.new(1, 1, 1)
  41. _gui.obj2.TextSize = 14
  42. _gui.obj2.Size = UDim2.new(0, 200, 0, 50)
  43. _gui.obj2.TextColor3 = Color3.new(0, 0.647059, 0.647059)
  44. _gui.obj2.Text = '<b>BY HACKER 99 1 SCRIPT</b>'
  45. _gui.obj2.Font = Enum.Font.SourceSans
  46. _gui.obj2.TextStrokeColor3 = Color3.new(0.666667, 1, 1)
  47. _gui.obj2.BackgroundTransparency = 1
  48. spawn(function()
  49. _gui.obj2.Parent = _gui.gui:WaitForChild('Frame')
  50. end)_gui.obj3.RichText = true
  51. _gui.obj3.BackgroundColor3 = Color3.new(1, 1, 1)
  52. _gui.obj3.TextSize = 24
  53. _gui.obj3.Size = UDim2.new(0, 200, 0, 50)
  54. _gui.obj3.TextColor3 = Color3.new(0, 0, 0)
  55. _gui.obj3.Text = 'Autofarm <font color="rgb(255,0,0)">OFF</font>'
  56. _gui.obj3.Font = Enum.Font.SourceSans
  57. _gui.obj3.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  58. _gui.obj3.Position = UDim2.new(0, 0, 0, 100)
  59. spawn(function()
  60. _gui.obj3.Parent = _gui.gui:WaitForChild('Frame')
  61. end)_gui.obj4.Name = 'LocalScript'
  62. task.spawn(function ()
  63. wait(3)
  64. local script = Instance.new("LocalScript"); script.Parent = _gui.gui:WaitForChild('Frame')
  65. script.Name = 'LocalScript'
  66. -- Script for this game: https://www.roblox.com/games/566399244/
  67.  
  68. local channel = "https://youtube.com/channel/UCLFDib1y6RqR4z9NUWDYbnA"
  69. wait()
  70. local way = "Remote" --[[ Remote or Keyboard
  71. Remote is recommended ]]
  72. local UIS = game:GetService("UserInputService")
  73. local keys = {
  74. ["0"] = 0x30,
  75. ["1"] = 0x31,
  76. ["2"] = 0x32,
  77. ["3"] = 0x33,
  78. ["4"] = 0x34,
  79. ["5"] = 0x35,
  80. E = 0x45,
  81. F = 0x46,
  82. Q = 0x51
  83. }
  84. local keystep = 1
  85. local bot = false
  86. local player = game.Players.LocalPlayer
  87. function ClickMouse()
  88. mouse1press()
  89. wait(.1)
  90. mouse1release()
  91. end
  92. script.Parent.ChannelButton.MouseButton1Click:Connect(function()
  93. local func = setclipboard or toclipboard or set_clipboard or (Clipboard and Clipboard.set)
  94. if func then
  95. func(channel)
  96. game.StarterGui:SetCore("SendNotification", {Title = "INSCREVA-SE :D", Text = "LINK DO CANAL COPIADO"})
  97. else
  98. script.Parent.TextBox.Visible = not script.Parent.TextBox.Visible
  99. script.Parent.TextBox.Text = channel
  100. script.Parent.TextBox.PlaceholderText = channel
  101. end
  102. end)
  103. function ToggleBot()
  104. if IsAlive(player) == "Allow" then
  105. bot = not bot
  106. if bot then
  107. script.Parent.TextButton.Text = 'Autofarm <font color="rgb(0,255,0)">ON</font>'
  108. script.Parent.ShowHide.Text = "<b>AUTO FARM:ON </b>"
  109. else
  110. workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
  111. script.Parent.TextButton.Text = 'Autofarm <font color="rgb(255,0,0)">OFF</font>'
  112. script.Parent.ShowHide.Text = "<b>AUTO FARM:OFF </b>"
  113. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  114. end
  115. end
  116. end
  117. script.Parent.TextButton.MouseButton1Click:Connect(ToggleBot)
  118. player:GetMouse().KeyDown:Connect(function (key)
  119. if key == "z" or key == "Z" then
  120. if bot then
  121. UIS.MouseBehavior = 0
  122. ToggleBot()
  123. else
  124. script.Parent.Visible = not script.Parent.Visible
  125. end
  126. end
  127. end)
  128. game["Run Service"].RenderStepped:Connect(function()
  129. if bot then
  130. UIS.MouseBehavior = Enum.MouseBehavior.LockCenter
  131. end
  132. end)
  133. -- RemoteSpy: R2Sv2
  134. function FireTheSkill(n, targetpos,targetlookpos)
  135. if n == 1 then
  136. local A_1 = "Fire"
  137. local A_2 = "Consecutive Fire Bullets"
  138. local Event = game:GetService("ReplicatedStorage").Remotes.DoClientMagic
  139. Event:FireServer(A_1, A_2)
  140. wait(.3)
  141. A_1 = "Fire"
  142. A_2 = "Consecutive Fire Bullets"
  143. Event = game:GetService("ReplicatedStorage").Remotes.DoMagic
  144. Event:InvokeServer(A_1, A_2)
  145. elseif n == 2 then
  146. local A_1 = "Fire"
  147. local A_2 = "Great Fire Blast"
  148. local Event = game:GetService("ReplicatedStorage").Remotes.DoClientMagic
  149. Event:FireServer(A_1, A_2)
  150. wait(.5)
  151. A_1 = "Fire"
  152. A_2 = "Great Fire Blast"
  153. local A_3 = CFrame.new(targetpos, targetlookpos)
  154. Event = game:GetService("ReplicatedStorage").Remotes.DoMagic
  155. Event:InvokeServer(A_1, A_2, A_3)
  156. elseif n == 3 then
  157. local A_1 = "Fire"
  158. local A_2 = "Blaze Column"
  159. local A_3 = Vector3.new(targetpos)
  160. local Event = game:GetService("ReplicatedStorage").Remotes.DoClientMagic
  161. Event:FireServer(A_1, A_2, A_3)
  162. A_1 = "Fire"
  163. A_2 = "Blaze Column"
  164. A_3 = CFrame.new(targetpos, targetpos+Vector3.new(0,-1,0))
  165. Event = game:GetService("ReplicatedStorage").Remotes.DoMagic
  166. Event:InvokeServer(A_1, A_2, A_3)
  167. elseif n == 4 then
  168. local A_1 = "Grass"
  169. local A_2 = "Vine"
  170. local Event = game:GetService("ReplicatedStorage").Remotes.DoClientMagic
  171. Event:FireServer(A_1, A_2)
  172. A_1 = "Grass"
  173. A_2 = "Vine"
  174. local A_3 =
  175. {
  176. ["Origin"] = Vector3.new(targetpos)
  177. }
  178. Event = game:GetService("ReplicatedStorage").Remotes.DoMagic
  179. Event:InvokeServer(A_1, A_2, A_3)
  180.  
  181. end
  182. end
  183. function IsAlive(tarPlayer)
  184. if tarPlayer == nil then return "Its not exist" end if typeof(tarPlayer) ~= "Instance" then return "Its not an Instance" end
  185. if tarPlayer:IsA("Player") == false then return "Its not a player" end if tarPlayer.Character == nil then return "Its dont have character" end
  186. if tarPlayer.Character:FindFirstChildOfClass("Humanoid") == nil then return "Its dont have Humanoid" end
  187. if tarPlayer.Character:FindFirstChild("HumanoidRootPart") == nil then return "Its dont have HumanoidRootPart" end
  188. if tarPlayer.Character:FindFirstChild("Head") == nil then return "Its dont have head" end
  189. if tarPlayer.Character:FindFirstChildOfClass("ForceField") ~= nil and tarPlayer~=player then return "Its have ForceField" end
  190. if tarPlayer.Character:FindFirstChildOfClass("Humanoid").Health <= 0 then return "Its died" end
  191. return "Allow"
  192. end
  193. function GetPlayers()
  194. local rList = {}
  195. for i,v in pairs(game.Players:GetPlayers()) do
  196. if IsAlive(v) and player ~= v then
  197. table.insert(rList ,v)
  198. end
  199. end
  200. return rList
  201. end
  202. function GetLowestPlayer()
  203. local list = GetPlayers()
  204. local low=100000
  205. local target=nil
  206. for i,v in pairs(list) do
  207. if IsAlive(v) == "Allow" and v.Character and v.Character:FindFirstChildOfClass("Humanoid") and v.Character:FindFirstChildOfClass("Humanoid").Health < low and v.Character:FindFirstChildOfClass("Humanoid").Health > 0 then
  208. low = v.Character:FindFirstChildOfClass("Humanoid").Health
  209. target = v
  210. end
  211. end
  212. return target
  213. end
  214. function PunchPlayer(target)
  215. task.spawn(function ()
  216. wait()
  217. local A_1 = target
  218. local Event = game:GetService("ReplicatedStorage").Remotes.Combat
  219. Event:FireServer(A_1)
  220. end)
  221. end
  222. function Attack(tarPlayer)
  223. if IsAlive(player) == "Allow" and IsAlive(tarPlayer) == "Allow" then
  224. player.Character.HumanoidRootPart.CFrame = CFrame.new(tarPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,.1,.1), tarPlayer.Character.HumanoidRootPart.Position )
  225. for i,v in pairs(player.Character:GetDescendants()) do
  226. if v:IsA("BasePart") then
  227. v.Velocity = Vector3.new(0,0,0)
  228. v.RotVelocity = Vector3.new(0,0,0)
  229. end
  230. end
  231. if way == "Keyboard" then
  232. keypress(keys.Q)
  233. wait()
  234. keyrelease(keys.Q)
  235. elseif way == "Remote" then
  236. local bVel = Instance.new("BodyVelocity", player.Character.HumanoidRootPart)
  237. bVel.Velocity = tarPlayer.Character.Head.Velocity
  238. bVel.Velocity = Vector3.new(bVel.Velocity.X, 0, bVel.Velocity.Z)
  239. game.Debris:AddItem(bVel, .1)
  240. for i = 1,7 do PunchPlayer(tarPlayer.Character) end wait()
  241. end
  242. workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
  243. workspace.CurrentCamera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position + Vector3.new(0,5,0),
  244. tarPlayer.Character.Head.Position
  245. )
  246. if way == "Keyboard" then
  247. if keys[tostring(keystep)] then
  248. keypress(keys[tostring(keystep)])
  249. wait()
  250. keyrelease(keys[tostring(keystep)])
  251. wait()
  252. ClickMouse()
  253. keystep = keystep + 1
  254. if keystep >= 5 then
  255. keystep = 1
  256. end
  257. else
  258. warn(tostring(keystep).." is an invalid key")
  259. end
  260. elseif way == "Remote" then
  261. FireTheSkill(keystep, player.Character.Head.Position, tarPlayer.Character.Head.Position - Vector3.new(0,.03,0))
  262. keystep = keystep + 1
  263. if keystep >= 3 then keystep = 1 end
  264. end
  265. else
  266.  
  267. end
  268. end
  269. task.spawn(function ()
  270. while wait(50) do
  271. pcall(function ()
  272. player.Character.Head:Destroy() -- Some basic auto reset
  273. end)
  274. end
  275. end)
  276. while true do
  277. wait(.15)
  278. if bot and IsAlive(player)=="Allow" then
  279. local call,err = pcall(function()
  280. local startPos = player.Character.HumanoidRootPart.CFrame
  281. for i,v in pairs(workspace:WaitForChild(".Ignore"):WaitForChild(".ServerEffects"):GetChildren()) do
  282. if v:IsA("BasePart") and (v.Name == "Diamond" or v.Name == "Shard") then
  283. player.Character.HumanoidRootPart.CFrame = v.CFrame
  284. wait(.5)
  285. --[[
  286. v.CanCollide = false
  287. v.Anchored = true
  288. v.Position = player.Character.Head.Position
  289. v.Velocity = Vector3.new(0,0,0)
  290. v.RotVelocity = Vector3.new(0,0,0)
  291. --]]
  292. end
  293. player.Character.HumanoidRootPart.CFrame = startPos
  294. end
  295. if IsAlive(GetLowestPlayer()) and #game.Players:GetChildren() >= 2 then
  296. Attack(GetLowestPlayer())
  297. else
  298. local plrs = {}
  299. for i,v in pairs(game.Players:GetPlayers()) do
  300. if IsAlive(v) and v ~= player then table.insert(v, player) end
  301. end
  302. if #plrs > 1 then
  303. Attack(plrs[math.random(1,#plrs)])
  304. end
  305. end
  306. end)
  307. if not call then warn(err) end
  308. end
  309. end
  310. end)_gui.obj5.TextWrapped = true
  311. _gui.obj5.TextStrokeTransparency = 0
  312. _gui.obj5.RichText = true
  313. _gui.obj5.TextScaled = true
  314. _gui.obj5.BackgroundColor3 = Color3.new(1, 1, 1)
  315. _gui.obj5.Name = 'ShowHide'
  316. _gui.obj5.TextSize = 14
  317. _gui.obj5.Size = UDim2.new(0, 200, 0, 50)
  318. _gui.obj5.TextColor3 = Color3.new(0, 0.647059, 0.647059)
  319. _gui.obj5.Text = '<b>Show Hide: Z </b>'
  320. _gui.obj5.Font = Enum.Font.SourceSans
  321. _gui.obj5.Position = UDim2.new(0, 0, 0, 150)
  322. _gui.obj5.TextStrokeColor3 = Color3.new(0.666667, 1, 1)
  323. _gui.obj5.BackgroundTransparency = 1
  324. spawn(function()
  325. _gui.obj5.Parent = _gui.gui:WaitForChild('Frame')
  326. end)_gui.obj6.RichText = true
  327. _gui.obj6.BackgroundColor3 = Color3.new(1, 1, 1)
  328. _gui.obj6.Name = 'ChannelButton'
  329. _gui.obj6.TextSize = 24
  330. _gui.obj6.Size = UDim2.new(0, 200, 0, 50)
  331. _gui.obj6.TextColor3 = Color3.new(0, 0, 0)
  332. _gui.obj6.Text = 'MEU CANAL DO YOUTUBE'
  333. _gui.obj6.Font = Enum.Font.SourceSans
  334. _gui.obj6.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  335. _gui.obj6.Position = UDim2.new(0, 0, 0, 50)
  336. spawn(function()
  337. _gui.obj6.Parent = _gui.gui:WaitForChild('Frame')
  338. end)_gui.obj7.Visible = false
  339. _gui.obj7.TextWrapped = true
  340. _gui.obj7.TextScaled = true
  341. _gui.obj7.BackgroundColor3 = Color3.new(1, 1, 1)
  342. _gui.obj7.TextSize = 14
  343. _gui.obj7.Size = UDim2.new(0, 200, 0, 50)
  344. _gui.obj7.TextColor3 = Color3.new(0, 0, 0)
  345. _gui.obj7.MultiLine = true
  346. _gui.obj7.Font = Enum.Font.SourceSans
  347. _gui.obj7.ClearTextOnFocus = false
  348. spawn(function()
  349. _gui.obj7.Parent = _gui.gui:WaitForChild('Frame')
  350. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement