Advertisement
GangHaning

RocketOrbScript (Ro-Script)

Aug 23rd, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. me = game.Players.SergeantSmokey
  2.  
  3. sel = false
  4.  
  5. mousehold = false
  6.  
  7. mode = 1
  8.  
  9. speed = 1
  10.  
  11.  
  12.  
  13. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  14.  
  15. part.Parent = parent
  16.  
  17. part.formFactor = form
  18.  
  19. part.CanCollide = collide
  20.  
  21. part.Transparency = tran
  22.  
  23. part.Reflectance = ref
  24.  
  25. part.Size = Vector3.new(x,y,z)
  26.  
  27. part.BrickColor = BrickColor.new(color)
  28.  
  29. part.TopSurface = 0
  30.  
  31. part.BottomSurface = 0
  32.  
  33. part.Anchored = anchor
  34.  
  35. part.Locked = true
  36.  
  37. part:BreakJoints()
  38.  
  39. end
  40.  
  41.  
  42.  
  43. if script.Parent.className ~= "HopperBin" then
  44.  
  45. h = Instance.new("HopperBin",me.Backpack)
  46.  
  47. h.Name = "Watch"
  48.  
  49. script.Parent = h
  50.  
  51. end
  52.  
  53. bin = script.Parent
  54.  
  55.  
  56.  
  57. cam = workspace.CurrentCamera
  58.  
  59. function sel(mouse)
  60.  
  61. sel = true
  62.  
  63. mouse.Button1Down:connect(function()
  64.  
  65. mousehold = true
  66.  
  67. if mode == 1 then
  68.  
  69. me.Character = nil
  70.  
  71. cam.CameraSubject = nil
  72.  
  73. cam.CameraType = "Fixed"
  74.  
  75. mode = 0
  76.  
  77. else
  78.  
  79. while sel and mousehold do
  80.  
  81. local dis = (cam.CoordinateFrame.p - mouse.Hit.p).magnitude
  82.  
  83. local pew = Instance.new("Part")
  84.  
  85. prop(pew,workspace,false,0.1,0,0.1,1,0.1,"Bright yellow",true,"Custom")
  86.  
  87. pew.CFrame = CFrame.new(cam.CoordinateFrame * CFrame.new(math.random(-100,100)/10,math.random(-100,100)/10,math.random(0,100)/10).p,mouse.Hit.p) * CFrame.Angles(math.pi/2,0,0) * CFrame.new(0,-dis/2,0)
  88.  
  89. local mes = Instance.new("CylinderMesh",pew)
  90.  
  91. mes.Scale = Vector3.new(15,dis,15)
  92.  
  93. local ex = Instance.new("Explosion",workspace)
  94.  
  95. ex.BlastRadius = 6
  96.  
  97. ex.BlastPressure = 450000
  98.  
  99. ex.Position = pew.CFrame * CFrame.new(0,-dis/2,0).p
  100.  
  101. ex.Hit:connect(function(p)
  102.  
  103. if p:GetMass() < 100 then
  104.  
  105. p.BrickColor = BrickColor.new("Black")
  106.  
  107. p.Transparency = 0.3
  108.  
  109. p.Anchored = false
  110.  
  111. p:BreakJoints()
  112.  
  113. end
  114.  
  115. end)
  116.  
  117. coroutine.resume(coroutine.create(function()
  118.  
  119. for i=0.1,1,0.2 do
  120.  
  121. wait()
  122.  
  123. pew.Transparency = i
  124.  
  125. end
  126.  
  127. pew:remove()
  128.  
  129. end))
  130.  
  131. wait()
  132.  
  133. end
  134.  
  135. end
  136.  
  137. end)
  138.  
  139. mouse.Button1Up:connect(function()
  140.  
  141. mousehold = false
  142.  
  143. end)
  144.  
  145. end
  146.  
  147.  
  148.  
  149. function desel()
  150.  
  151. mousehold = false
  152.  
  153. sel = false
  154.  
  155. end
  156.  
  157.  
  158.  
  159. bin.Deselected:connect(desel)
  160.  
  161. bin.Selected:connect(sel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement