Advertisement
Migas3456

rhub(not made by me)

Jan 10th, 2018
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.14 KB | None | 0 0
  1. -- Objects
  2.  
  3. local rhub = Instance.new("ScreenGui")
  4. local Gui = Instance.new("Frame")
  5. local name = Instance.new("TextLabel")
  6. local gold = Instance.new("TextButton")
  7. local kill = Instance.new("TextButton")
  8.  
  9. -- Properties
  10.  
  11. rhub.Name = "rhub"
  12. rhub.Parent = game.Players.LocalPlayer.PlayerGui
  13.  
  14. Gui.Name = "Gui"
  15. Gui.Parent = rhub
  16. Gui.BackgroundColor3 = Color3.new(1, 1, 1)
  17. Gui.Draggable = true
  18. Gui.Position = UDim2.new(0, 139, 0, 247)
  19. Gui.Selectable = true
  20. Gui.Size = UDim2.new(0, 216, 0, 172)
  21. Gui.Style = Enum.FrameStyle.DropShadow
  22.  
  23. name.Name = "name"
  24. name.Parent = Gui
  25. name.BackgroundColor3 = Color3.new(1, 1, 1)
  26. name.BackgroundTransparency = 5
  27. name.Size = UDim2.new(0, 200, 0, 55)
  28. name.Font = Enum.Font.SourceSans
  29. name.Text = "Rhub V1"
  30. name.TextColor3 = Color3.new(0.792157, 0.776471, 0.247059)
  31. name.TextScaled = true
  32. name.TextSize = 14
  33. name.TextWrapped = true
  34.  
  35. gold.Name = "gold"
  36. gold.Parent = Gui
  37. gold.BackgroundColor3 = Color3.new(1, 1, 1)
  38. gold.Position = UDim2.new(0, 0, 0, 66)
  39. gold.Size = UDim2.new(0, 200, 0, 40)
  40. gold.Style = Enum.ButtonStyle.RobloxRoundButton
  41. gold.Font = Enum.Font.SourceSans
  42. gold.Text = "Golden Gun"
  43. gold.TextColor3 = Color3.new(0.854902, 0.709804, 0.12549)
  44. gold.TextSize = 14
  45. gold.TextWrapped = true
  46.  
  47. gold.MouseButton1Down:connect(function()
  48. ----------------------------------------
  49. -- Originally made by Alfederate :D --
  50. ----------------------------------------
  51.  
  52. -- there's no time to explain! --
  53.  
  54. local new=Instance.new
  55. local rad=math.rad
  56. local cf=CFrame.new
  57. local v3=Vector3.new
  58. local ang=function(x,y,z)
  59. return CFrame.Angles(rad(x),rad(y),rad(z))
  60. end
  61. local player=game:service'Players'.LocalPlayer
  62. local char=player.Character
  63. local cam=workspace.Camera
  64. local mouse=player:GetMouse()
  65. local weld=function(a,b,c0,c1)
  66. m=Instance.new('Motor',a)
  67. m.Part0=a
  68. m.Part1=b
  69. m.C0=c0
  70. m.C1=c1
  71. return m
  72. end
  73.  
  74. start='rbxassetid://592555095'
  75. snd='rbxassetid://594472043'
  76. beamm=Instance.new('Model',workspace)
  77. beamm.Name='beam'
  78.  
  79. laser=false
  80.  
  81. rs=Instance.new('Part',char)
  82. rs.Transparency=1
  83. rs.CanCollide=false
  84. rs.TopSurface,rs.BottomSurface=0,0
  85. rs.FormFactor=3
  86. rs.Size=Vector3.new(.5,.5,.5)
  87.  
  88. ls=rs:Clone()
  89. ls.Parent=char
  90.  
  91. rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
  92. lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
  93. raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
  94. law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
  95.  
  96. vol=1
  97.  
  98. s1=Instance.new('Sound',char)
  99. s1.Volume=vol
  100. s1.Pitch=1
  101. s1.Looped=true
  102. s1.SoundId=snd
  103.  
  104. s2=Instance.new('Sound',char)
  105. s2.Volume=vol
  106. s2.Pitch=1
  107. s2.Looped=true
  108. s2.SoundId=start
  109.  
  110. s2:play()
  111.  
  112. particles={}
  113.  
  114. local wep=new('Part',char)
  115. wep.FormFactor=3
  116. wep.CanCollide=false
  117. wep.Size=v3(1,3,1)
  118. wep.TopSurface,wep.BottomSurface=0,0
  119. local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
  120.  
  121. local beam=wep:Clone()
  122. beam:ClearAllChildren()
  123. beam.Material='Neon'
  124. beam.BrickColor=BrickColor.new('Electric blue')
  125. beam.Size=Vector3.new(3,3,1)
  126. beam.Transparency=.5
  127. beam.Anchored=true
  128. local ms=Instance.new('BlockMesh',beam)
  129. local inner=beam:Clone()
  130. inner.Transparency=0
  131. inner.Material='SmoothPlastic'
  132. inner.BrickColor=BrickColor.new('Green')
  133. local ms2=inner.Mesh
  134.  
  135. local expl=inner:Clone()
  136. expl.Mesh:Destroy()
  137. expl.Material='Neon'
  138. expl.BrickColor=BrickColor.new('Really red')
  139. expl.Size=Vector3.new(11,11,11)
  140. expl.Transparency=.55
  141. pl=Instance.new('PointLight',expl)
  142. pl.Color=expl.BrickColor.Color
  143. pl.Range=pl.Range*2
  144. pl.Name='light'
  145. local br=pl.Range
  146.  
  147. local exa=expl:Clone()
  148. exa.Size=Vector3.new(4,4,4)
  149. pl2=exa.light
  150.  
  151. local part=exa:Clone()
  152. part.Size=Vector3.new(1.5,1.5,1.5)
  153. pl3=part.light
  154. pms=Instance.new('BlockMesh',part)
  155.  
  156. char.Humanoid.Died:connect(function()
  157. laser=false
  158. beam.Parent=nil
  159. inner.Parent=nil
  160. expl.Parent=nil
  161. exa.Parent=nil
  162. s2:stop()
  163. s1:stop()
  164. end)
  165.  
  166. mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
  167. laser=true
  168. s1:play()
  169. s2:stop()
  170. end end)
  171. mouse.Button1Up:connect(function()
  172. laser=false
  173. beam.Parent=nil
  174. inner.Parent=nil
  175. expl.Parent=nil
  176. exa.Parent=nil
  177. s1:stop()
  178. s2:play()
  179. end)
  180.  
  181. parti=0
  182. game:service'RunService'.Stepped:connect(function()
  183. parti=parti+1
  184. for i,v in pairs(particles) do
  185. v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
  186. v.Transparency=v.Transparency+.08
  187. if v.Transparency >= 1 then
  188. v:Destroy()
  189. table.remove(particles,i)
  190. else
  191. v.Parent=beamm
  192. end
  193. end
  194. a=cam.CoordinateFrame.p
  195. b=mouse.Hit.p
  196. mhitr=Ray.new(a,(b-a).unit*999)
  197. mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
  198. raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
  199. law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
  200. if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
  201. char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
  202. end
  203. if laser then
  204. beamm.Parent=workspace
  205. beam.Parent=beamm
  206. inner.Parent=beamm
  207. expl.Parent=beamm
  208. exa.Parent=beamm
  209. s1.Volume=s1.Volume-.0
  210.  
  211. ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
  212. hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
  213.  
  214. if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
  215. Instance.new('Explosion',workspace).Position=pos
  216. end
  217. if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
  218. e=Instance.new('Explosion',workspace)
  219. e.Position=pos
  220. e.BlastRadius=14
  221. e.BlastPressure=1e4
  222. end
  223. if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
  224. hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
  225. end
  226.  
  227. if parti==math.floor(parti) then
  228. par=part:Clone()
  229. table.insert(particles,par)
  230. par.Parent=beamm
  231. par.Transparency=1-s1.Volume
  232. par.light.Range=br*s1.Volume
  233. par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
  234. end
  235.  
  236. mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
  237. ms.Scale=v3(s1.Volume,s1.Volume,mag)
  238. ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
  239. beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
  240. inner.CFrame=beam.CFrame
  241. pl.Range=br*s1.Volume
  242. pl2.Range=br*s1.Volume
  243. expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
  244. expl.Transparency=math.random(40,60)/100
  245. expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  246. exa.Size=v3(4,4,4)*s1.Volume
  247. exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  248. char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
  249. end
  250. end)
  251. Alt=MAlt+N
  252. end)
  253.  
  254. kill.Name = "kill"
  255. kill.Parent = Gui
  256. kill.BackgroundColor3 = Color3.new(1, 1, 1)
  257. kill.Position = UDim2.new(0, 0, 0, 105)
  258. kill.Size = UDim2.new(0, 200, 0, 40)
  259. kill.Style = Enum.ButtonStyle.RobloxRoundButton
  260. kill.Font = Enum.Font.SourceSans
  261. kill.Text = "server killer script"
  262. kill.TextColor3 = Color3.new(0.854902, 0.709804, 0.12549)
  263. kill.TextSize = 14
  264. kill.TextWrapped = true
  265.  
  266. kill.MouseButton1Down:connect(function()
  267. wait(1)
  268. math.randomseed(tick() % 1 * 1e6)
  269. sky = coroutine.create(function()
  270. while wait(0.3) do
  271. s = Instance.new("Sky",game.Lighting)
  272. s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408"
  273. s.CelestialBodiesShown = false
  274. end
  275. end)
  276.  
  277.  
  278. del = coroutine.create(function()
  279. while wait(0.3) do
  280. for i,v in pairs(workspace:GetChildren()) do
  281. if v:IsA("Model") then
  282. v:Destroy()
  283. end
  284. end
  285. end
  286. end)
  287.  
  288.  
  289.  
  290. for i,v in pairs(game.Players:GetChildren()) do
  291. end
  292.  
  293. noises = {'rbxassetid://230287740','rbxassetid://271787597','rbxassetid://153752123','rbxassetid://271787503'}
  294.  
  295. sound = coroutine.create(function()
  296. a = Instance.new("Sound",workspace)
  297. a.SoundId = "rbxassetid://141509625"
  298. a.Name = "RAINING MEN"
  299. a.Volume = 58359
  300. a.Looped = true
  301. a:Play()
  302. while wait(0.2) do
  303. rainin = workspace:FindFirstChild("RAINING MEN")
  304. if not rainin then
  305. a = Instance.new("Sound",workspace)
  306. a.SoundId = "rbxassetid://141509625"
  307. a.Name = "RAINING MEN"
  308. a.Volume = 58359
  309. a.Looped = true
  310. a:Play()
  311. end
  312. end
  313. end)
  314.  
  315. msg = coroutine.create(function()
  316. while wait(0.4) do
  317. msg = Instance.new("Message",workspace)
  318. msg.Text = "Get toadroasted you bacon-haired bozos. (GO QUIT FUCKED SHIT NIGGER XD FELIXMAYERKIDS IS A HACKER)"
  319. wait(0.4)
  320. msg:Destroy()
  321. end
  322. end)
  323.  
  324.  
  325. rain = coroutine.create(function()
  326. while wait(10 % 1 * 1e2) do
  327. part = Instance.new("Part",workspace)
  328. part.Name = "Toad"
  329.  
  330. mesh = Instance.new("SpecialMesh",part)
  331.  
  332. sound = Instance.new("Sound",workspace)
  333.  
  334. part.CanCollide = false
  335. part.Size = Vector3.new(440,530,380)
  336. part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
  337.  
  338. sound.SoundId = noises[math.random(1,#noises)]
  339. sound:Play()
  340. sound.Ended:connect(function()
  341. sound:Destroy()
  342. end)
  343.  
  344.  
  345. mesh.MeshType = "FileMesh"
  346. mesh.MeshId = "rbxassetid://430210147"
  347. mesh.TextureId = "rbxassetid://430210159"
  348. end
  349. end)
  350. coroutine.resume(sky)
  351. coroutine.resume(del)
  352. coroutine.resume(sound)
  353. coroutine.resume(msg)
  354. coroutine.resume(rain)
  355.  
  356. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement