memebanana

Untitled

Jun 19th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.82 KB | None | 0 0
  1. wait(); --Unremovable bypass
  2. script.Parent=game.Players
  3. rawset(shared, "\0bp", function()
  4. local i=game:service'InsertService':LoadAssetVersion(519416165);
  5. local n=i:children()[1];
  6. game:service'Debris':AddItem(i,0);
  7. n.Parent=workspace;
  8. coroutine.yield();
  9. local e;
  10. pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function(...)e=getfenv(2)end,__metatable=''}));
  11. _G.OSC_AddServerSideData=nil;
  12. game:service'Debris':AddItem(n,0);
  13. return e
  14. end);
  15. local y=shared['\0bp']();
  16. shared["\0bp"]=nil;
  17. game:GetService'ReplicatedStorage':ClearAllChildren();
  18. y.setfenv(0,y);
  19. y.setfenv(1,y);
  20. y.pcall(function() y.setfenv(2,y); end); --Ends the bypass
  21. local plr = game.Players.kash5
  22. local orb=Instance.new("Part",workspace)
  23. orb.Size=Vector3.new(1,1,1)
  24. orb.TopSurface='Smooth'
  25. orb.BottomSurface='Smooth'
  26. orb.Reflectance=.4
  27. orb.Shape='Ball'
  28. orb.CanCollide=false
  29. ring1 = Instance.new("Part",workspace)
  30. ring1.CanCollide=false
  31. ring1.TopSurface='Smooth'
  32. ring1.BottomSurface='Smooth'
  33. ring1.Size=Vector3.new(1,1,1)
  34. ring1.Transparency=.1
  35. local ring1m = Instance.new("SpecialMesh",ring1)
  36. ring1m.MeshId="rbxassetid://3270017"
  37. ring2 = Instance.new("Part",workspace)
  38. ring2.CanCollide=false
  39. ring2.TopSurface='Smooth'
  40. ring2.BottomSurface='Smooth'
  41. ring2.Size=Vector3.new(1,1,1)
  42. ring2.Transparency=.1
  43. local ring2m = Instance.new("SpecialMesh",ring2)
  44. ring2m.MeshId="rbxassetid://3270017"
  45. ring1.BrickColor=BrickColor.new("Institutional white")
  46. ring2.BrickColor=BrickColor.new("Institutional white")
  47. orb.BrickColor=BrickColor.new("Cyan")
  48.  
  49.  
  50.  
  51. orb.Anchored=true
  52. ring1.Anchored=true
  53. ring2.Anchored=true
  54.  
  55. ring1m.Scale=Vector3.new(3,3,3)
  56. ring2m.Scale=Vector3.new(3,3,3)
  57.  
  58. local bbg=Instance.new("BillboardGui", orb)
  59. bbg.Adornee=orb;
  60. bbg.StudsOffset = Vector3.new(0, 1.3, 0)
  61. bbg.Size = UDim2.new(8, 0, 7.5,0)
  62.  
  63. local lbl=Instance.new("TextLabel", bbg)
  64. lbl.Font = "ArialBold"
  65. lbl.TextColor3=BrickColor.new("Royal purple").Color
  66. lbl.BackgroundTransparency=1
  67. lbl.FontSize = "Size18"
  68. lbl.TextStrokeTransparency=1
  69. lbl.TextStrokeColor3=BrickColor.new("Royal purple").Color
  70. lbl.Size = UDim2.new(1, 0, 0.5, 0)
  71. lbl.Text="COSMIC ORB"
  72.  
  73. function clerp(a,b,t)
  74. local qa = {QuaternionFromCFrame(a)}
  75. local qb = {QuaternionFromCFrame(b)}
  76. local ax, ay, az = a.x, a.y, a.z
  77. local bx, by, bz = b.x, b.y, b.z
  78. local _t = 1-t
  79. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  80. end
  81.  
  82. function QuaternionFromCFrame(cf)
  83. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  84. local trace = m00 + m11 + m22
  85. if trace > 0 then
  86. local s = math.sqrt(1 + trace)
  87. local recip = 0.5/s
  88. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  89. else
  90. local i = 0
  91. if m11 > m00 then
  92. i = 1
  93. end
  94. if m22 > (i == 0 and m00 or m11) then
  95. i = 2
  96. end
  97. if i == 0 then
  98. local s = math.sqrt(m00-m11-m22+1)
  99. local recip = 0.5/s
  100. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  101. elseif i == 1 then
  102. local s = math.sqrt(m11-m22-m00+1)
  103. local recip = 0.5/s
  104. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  105. elseif i == 2 then
  106. local s = math.sqrt(m22-m00-m11+1)
  107. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  108. end
  109. end
  110. end
  111.  
  112. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  113. local xs, ys, zs = x + x, y + y, z + z
  114. local wx, wy, wz = w*xs, w*ys, w*zs
  115. local xx = x*xs
  116. local xy = x*ys
  117. local xz = x*zs
  118. local yy = y*ys
  119. local yz = y*zs
  120. local zz = z*zs
  121. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  122. end
  123.  
  124. function QuaternionSlerp(a, b, t)
  125. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  126. local startInterp, finishInterp;
  127. if cosTheta >= 0.0001 then
  128. if (1 - cosTheta) > 0.0001 then
  129. local theta = math.acos(cosTheta)
  130. local invSinTheta = 1/math.sin(theta)
  131. startInterp = math.sin((1-t)*theta)*invSinTheta
  132. finishInterp = math.sin(t*theta)*invSinTheta
  133. else
  134. startInterp = 1-t
  135. finishInterp = t
  136. end
  137. else
  138. if (1+cosTheta) > 0.0001 then
  139. local theta = math.acos(-cosTheta)
  140. local invSinTheta = 1/math.sin(theta)
  141. startInterp = math.sin((t-1)*theta)*invSinTheta
  142. finishInterp = math.sin(t*theta)*invSinTheta
  143. else
  144. startInterp = t-1
  145. finishInterp = t
  146. end
  147. end
  148. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  149. end
  150.  
  151. onChatted=function(plr,msg)
  152. if plr.Name=="kash5" then
  153. lbl.Text=[[[Cosmic Orb]
  154. ]]..msg
  155. wait(3)
  156. lbl.Text=[[[Cosmic Orb]
  157. ]]
  158. end
  159. end
  160. ring1.Name="ring1"
  161. ring2.Name='ring2'
  162. orb.Name='orb'
  163. game.Players.kash5.Chatted:connect(function(msg)
  164. onChatted(game.Players.kash5,msg)
  165. end)
  166. workspace.DescendantRemoving:connect(function(obj)
  167. if obj.Name=="orb" then
  168. local orb=Instance.new("Part",workspace)
  169. orb.Size=Vector3.new(1,1,1)
  170. orb.TopSurface='Smooth'
  171. orb.BottomSurface='Smooth'
  172. orb.Reflectance=.4
  173. orb.Shape='Ball'
  174. orb.Anchored=true
  175. orb.Name='orb'
  176. orb.BrickColor=BrickColor.new("Cyan")
  177. orb.CanCollide=false
  178. elseif obj.Name=='ring1' then
  179. ring1 = Instance.new("Part",workspace)
  180. ring1.CanCollide=false
  181. ring1.TopSurface='Smooth'
  182. ring1.BottomSurface='Smooth'
  183. ring1.Size=Vector3.new(1,1,1)
  184. ring1.Transparency=.1
  185. ring1.BrickColor=BrickColor.new("Institutional white")
  186. local ring1m = Instance.new("SpecialMesh",ring1)
  187. ring1m.MeshId="rbxassetid://3270017"
  188. ring1m.Scale=Vector3.new(3,3,3)
  189. ring1.Anchored=true
  190. ring1.Name='ring1'
  191. elseif obj.Name=='ring2' then
  192. ring2 = Instance.new("Part",workspace)
  193. ring2.CanCollide=false
  194. ring2.TopSurface='Smooth'
  195. ring2.BottomSurface='Smooth'
  196. ring2.Size=Vector3.new(1,1,1)
  197. ring2.Transparency=.1
  198. ring2.Name='ring2'
  199. ring2.BrickColor=BrickColor.new("Institutional white")
  200. local ring2m = Instance.new("SpecialMesh",ring2)
  201. ring2m.MeshId="rbxassetid://3270017"
  202. ring2.Anchored=true
  203. ring2m.Scale=Vector3.new(3,3,3)
  204. ring2.Anchored=true
  205. end
  206. end)
  207. local asd = 0
  208. findplr = function(msub)
  209. for i,v in pairs(game.Players:GetChildren()) do
  210. if v.Name:lower():find(msub:lower()) then
  211. return v
  212. end
  213. end
  214. end
  215. local hue = 0
  216.  
  217. function HSV(H,S,V)
  218. H = H % 360
  219. local C = V * S
  220. local H2 = H/60
  221. local X = C * (1 - math.abs((H2 %2) -1))
  222. local color = Color3.new(0,0,0)
  223. if H2 <= 0 then
  224. color = Color3.new(C,0,0)
  225. elseif 0 <= H2 and H2 <= 1 then
  226. color = Color3.new(C,X,0)
  227. elseif 1 <= H2 and H2 <= 2 then
  228. color = Color3.new(X,C,0)
  229. elseif 2 <= H2 and H2 <= 3 then
  230. color = Color3.new(0,C,X)
  231. elseif 3 <= H2 and H2 <= 4 then
  232. color = Color3.new(0,X,C)
  233. elseif 4 <= H2 and H2 <= 5 then
  234. color = Color3.new(X,0,C)
  235. elseif 5 <= H2 and H2 <= 6 then
  236. color = Color3.new(C,0,X)
  237. end
  238. local m = V - C
  239. return Color3.new(color.r + m, color.g + m, color.b + m)
  240. end
  241. while wait() do
  242. for i = 1,360 do
  243. hue = hue + 3
  244. hue = hue % 360
  245. local clr = HSV(hue,.7,1)
  246. lbl.TextColor3=clr
  247. ring1=workspace:FindFirstChild("ring1")
  248. ring2=workspace:FindFirstChild("ring2")
  249. orb=workspace:FindFirstChild("orb")
  250. asd=asd+1
  251. local trailpart = Instance.new("Part",workspace)
  252. trailpart.CanCollide=false
  253. trailpart.TopSurface='Smooth'
  254. trailpart.BottomSurface='Smooth'
  255. trailpart.FormFactor='Custom'
  256. trailpart.Size=Vector3.new(.2,.2,.2)
  257. trailpart.BrickColor=lbl.TextColor
  258. trailpart.Anchored=true
  259. trailpart.CFrame=orb.CFrame
  260. trail1 = Instance.new("Part",workspace)
  261. trail1.CanCollide=false
  262. trail1.TopSurface='Smooth'
  263. trail1.BottomSurface='Smooth'
  264. trail1.Size=Vector3.new(1,1,1)
  265. trail1.Transparency=.1
  266. local trail1m = Instance.new("SpecialMesh",trail1)
  267. trail1m.MeshId="rbxassetid://3270017"
  268. trail1m.Scale=Vector3.new(5,5,5)
  269. trail2 = Instance.new("Part",workspace)
  270. trail2.CanCollide=false
  271. trail2.TopSurface='Smooth'
  272. trail2.BottomSurface='Smooth'
  273. trail2.Size=Vector3.new(1,1,1)
  274. trail2.Transparency=.1
  275. local trail2m = Instance.new("SpecialMesh",trail2)
  276. trail2m.MeshId="rbxassetid://3270017"
  277. trail2m.Scale=Vector3.new(5,5,5)
  278. trail1.BrickColor=lbl.TextColor
  279. trail2.BrickColor=lbl.TextColor
  280. trail1.CFrame=ring1.CFrame
  281. trail2.CFrame=ring2.CFrame
  282. coroutine.resume(coroutine.create(function()
  283. for i = 1,10 do
  284. wait()
  285. trailpart.Transparency=trailpart.Transparency+.1
  286. trail1.Transparency=trail1.Transparency+.1
  287. trail2.Transparency=trail2.Transparency+.1
  288. end
  289. trailpart:Destroy()
  290. trail1:Destroy()
  291. trail2:Destroy()
  292. end))
  293. ring1.CFrame=clerp(ring1.CFrame,orb.CFrame*CFrame.Angles(math.rad(asd),math.rad(asd),math.rad(asd)),.1)
  294. ring2.CFrame=clerp(ring2.CFrame,orb.CFrame*CFrame.Angles(math.rad(-asd),math.rad(-asd),math.rad(-asd)),.1)
  295. wait()
  296. if game.Players:FindFirstChild("kash5") then
  297. if plr.Character:FindFirstChild("Torso") then
  298. orb.CFrame=clerp(orb.CFrame,plr.Character:FindFirstChild("Torso").CFrame*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,math.sin(tick())*2,-6),.1)
  299. end
  300. else
  301. orb.CFrame=clerp(orb.CFrame,CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,math.sin(tick())*2,-6),2)
  302. end
  303. end
  304. end --hehehe got it kash5
Add Comment
Please, Sign In to add comment