Advertisement
tripono

Orb1

Oct 22nd, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. function orb()
  2. local orb = Instance.new("Part")
  3. local model = Instance.new("Model")
  4. local Version = Instance.new("IntValue")
  5. local ms = Instance.new("SpecialMesh")
  6. orb.Name = "sOrb"
  7. model.Name = "Orb"
  8. Version.Name = "sOrbVersion"
  9. Version.Value = 1
  10. Version.Parent = game.Players
  11. model.Parent = game.Workspace
  12. orb.Parent = model
  13. orb.BrickColor = BrickColor.new("Really red")
  14. orb.Material = "Marble"
  15. orb.Anchored = true
  16. orb.CanCollide = false
  17. orb.FormFactor = "Custom"
  18. orb.Size = Vector3.new(1.5,1.5,1.5)
  19. orb.BottomSurface = "Smooth"
  20. orb.TopSurface = "Smooth"
  21. ms.Parent = orb
  22. ms.MeshType = "Sphere"
  23. coroutine.resume(coroutine.create(function()
  24. local speed = 0.01
  25. local orbit = game.Players.fullerjar.Character.Head
  26. local o = orb
  27. local angle = 0
  28. local pos = o.Position
  29. local dist = 4
  30. while wait() do
  31. o.CFrame = orbit.CFrame*CFrame.fromEulerAnglesXYZ(0,angle*speed,0) * CFrame.new(0,0,dist)
  32. o.CFrame = CFrame.new(o.Position,orbit.Position)
  33. angle = angle + 1
  34. end
  35. end))
  36. end
  37.  
  38. orb()
  39.  
  40.  
  41.  
  42.  
  43. function orb2()
  44. local orb = Instance.new("Part")
  45. local model = Instance.new("Model")
  46. local Version = Instance.new("IntValue")
  47. local ms = Instance.new("SpecialMesh")
  48. orb.Name = "sOrb2"
  49. model.Name = "Orb2"
  50. Version.Name = "sOrbVersion"
  51. Version.Value = 1
  52. Version.Parent = game.Players
  53. model.Parent = game.Workspace
  54. orb.Parent = model
  55. orb.BrickColor = BrickColor.new("Dark blue")
  56. orb.Material = "Marble"
  57. orb.Anchored = true
  58. orb.CanCollide = false
  59. orb.FormFactor = "Custom"
  60. orb.Size = Vector3.new(1.5,1.5,1.5)
  61. orb.BottomSurface = "Smooth"
  62. orb.TopSurface = "Smooth"
  63. ms.Parent = orb
  64. ms.MeshType = "Sphere"
  65. coroutine.resume(coroutine.create(function()
  66. local speed = 0.01
  67. local orbit = game.Players.samuelgp10.Character.Head
  68. local o = orb
  69. local angle = 50
  70. local pos = o.Position
  71. local dist = 4
  72. while wait() do
  73. o.CFrame = orbit.CFrame*CFrame.fromEulerAnglesXYZ(0,angle*speed,0) * CFrame.new(0,0,dist)
  74. o.CFrame = CFrame.new(o.Position,orbit.Position)
  75. angle = angle + 1
  76. end
  77. end))
  78. end
  79.  
  80. orb2()
  81.  
  82. function orb3()
  83. local orb = Instance.new("Part")
  84. local model = Instance.new("Model")
  85. local Version = Instance.new("IntValue")
  86. local ms = Instance.new("SpecialMesh")
  87. orb.Name = "sOrb3"
  88. model.Name = "Orb3"
  89. Version.Name = "sOrbVersion"
  90. Version.Value = 1
  91. Version.Parent = game.Players
  92. model.Parent = game.Workspace
  93. orb.Parent = model
  94. orb.BrickColor = BrickColor.new("Lime green")
  95. orb.Material = "Marble"
  96. orb.Anchored = true
  97. orb.CanCollide = false
  98. orb.FormFactor = "Custom"
  99. orb.Size = Vector3.new(1.5,1.5,1.5)
  100. orb.BottomSurface = "Smooth"
  101. orb.TopSurface = "Smooth"
  102. ms.Parent = orb
  103. ms.MeshType = "Sphere"
  104. coroutine.resume(coroutine.create(function()
  105. local speed = 0.01
  106. local orbit = game.Players.samuelgp10.Character.Head
  107. local o = orb
  108. local angle = 100
  109. local pos = o.Position
  110. local dist = 4
  111. while wait() do
  112. o.CFrame = orbit.CFrame*CFrame.fromEulerAnglesXYZ(0,angle*speed,0) * CFrame.new(0,0,dist)
  113. o.CFrame = CFrame.new(o.Position,orbit.Position)
  114. angle = angle + 1
  115. end
  116. end))
  117. end
  118.  
  119. orb3()
  120.  
  121. function orb4()
  122. local orb = Instance.new("Part")
  123. local model = Instance.new("Model")
  124. local Version = Instance.new("IntValue")
  125. local ms = Instance.new("SpecialMesh")
  126. orb.Name = "sOrb4"
  127. model.Name = "Orb4"
  128. Version.Name = "sOrbVersion"
  129. Version.Value = 1
  130. Version.Parent = game.Players
  131. model.Parent = game.Workspace
  132. orb.Parent = model
  133. orb.BrickColor = BrickColor.new(0,0,0)
  134. orb.Material = "Marble"
  135. orb.Anchored = true
  136. orb.CanCollide = false
  137. orb.FormFactor = "Custom"
  138. orb.Size = Vector3.new(1.5,1.5,1.5)
  139. orb.BottomSurface = "Smooth"
  140. orb.TopSurface = "Smooth"
  141. ms.Parent = orb
  142. ms.MeshType = "Sphere"
  143. coroutine.resume(coroutine.create(function()
  144. local speed = 0.01
  145. local orbit = game.Players.samuelgp10.Character.Head
  146. local o = orb
  147. local angle = 150
  148. local pos = o.Position
  149. local dist = 4
  150. while wait() do
  151. o.CFrame = orbit.CFrame*CFrame.fromEulerAnglesXYZ(0,angle*speed,0) * CFrame.new(0,0,dist)
  152. o.CFrame = CFrame.new(o.Position,orbit.Position)
  153. angle = angle + 1
  154. end
  155. end))
  156. end
  157.  
  158. orb4()
  159.  
  160. function orb5()
  161. local orb = Instance.new("Part")
  162. local model = Instance.new("Model")
  163. local Version = Instance.new("IntValue")
  164. local ms = Instance.new("SpecialMesh")
  165. orb.Name = "sOrb5"
  166. model.Name = "Orb5"
  167. Version.Name = "sOrbVersion"
  168. Version.Value = 1
  169. Version.Parent = game.Players
  170. model.Parent = game.Workspace
  171. orb.Parent = model
  172. orb.BrickColor = BrickColor.new(255,255,255)
  173. orb.Material = "Marble"
  174. orb.Anchored = true
  175. orb.CanCollide = false
  176. orb.FormFactor = "Custom"
  177. orb.Size = Vector3.new(1.5,1.5,1.5)
  178. orb.BottomSurface = "Smooth"
  179. orb.TopSurface = "Smooth"
  180. ms.Parent = orb
  181. ms.MeshType = "Sphere"
  182. coroutine.resume(coroutine.create(function()
  183. local speed = 0.01
  184. local orbit = game.Players.samuelgp10.Character.Head
  185. local o = orb
  186. local angle = 200
  187. local pos = o.Position
  188. local dist = 4
  189. while wait() do
  190. o.CFrame = orbit.CFrame*CFrame.fromEulerAnglesXYZ(0,angle*speed,0) * CFrame.new(0,0,dist)
  191. o.CFrame = CFrame.new(o.Position,orbit.Position)
  192. angle = angle + 1
  193. end
  194. end))
  195. end
  196.  
  197. orb5()
  198. orb5()
  199. wait(2)
  200. local p = game.Players.LocalPlayer
  201. function click()
  202. local orb = game.Workspace.Orb.sOrb
  203. local c = Instance.new("ClickDetector")
  204. c.Parent = orb
  205. c.MouseClick:connect(function()
  206. local p = game.Players.LocalPlayer
  207. local ff = Instance.new("ForceField")
  208. ff.Parent = p.Character
  209. end)
  210. local c = Instance.new("ClickDetector")
  211. local orb = game.Workspace.Orb2.sOrb2
  212. c.Parent = orb
  213. c.MouseClick:connect(function()
  214. local p = game.Players.LocalPlayer
  215. local ff = p.Character:FindFirstChild("ForceField")
  216. if ff ~= nil then
  217. ff:remove()
  218. else
  219. print 'Error[FF = nil]'
  220. end
  221. end)
  222. local c = Instance.new("ClickDetector")
  223. local orb = game.Workspace.Orb3.sOrb3
  224. c.Parent = orb
  225. c.MouseClick:connect(function()
  226. local p = game.Players.LocalPlayer
  227. p.Character.Humanoid.MaxHealth = 0
  228. print 'HealthValueSet:[0]'
  229. end)
  230. local c = Instance.new("ClickDetector")
  231. local orb = game.Workspace.Orb2.sOrb2
  232. c.Parent = orb
  233. c.MouseClick:connect(function()
  234. local p = game.Players.LocalPlayer
  235. local ff = p.Character:FindFirstChild("ForceField")
  236. if ff ~= nil then
  237. ff:remove()
  238. else
  239. print 'Error[FF = nil]'
  240. end
  241. end)
  242. local c = Instance.new("ClickDetector")
  243. local orb4 = game.Workspace.Orb4.sOrb4
  244. c.Parent = orb4
  245. c.MouseClick:connect(function()
  246. local p = game.Players.LocalPlayer
  247. p.Character:Destroy()
  248. p:remove()
  249. end)
  250. local c = Instance.new("ClickDetector")
  251. local orb5 = game.Workspace.Orb5.sOrb5
  252. c.Parent = orb5
  253. c.MouseClick:connect(function()
  254. while wait(2) do
  255. orb5.BrickColor = BrickColor.new(0,0,0)
  256. wait(2)
  257. orb5.BrickColor = BrickColor.new(255,255,255)
  258. end
  259. end)
  260. end
  261. click()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement