Advertisement
Gokussjg

Untitled

May 13th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.32 KB | None | 0 0
  1. local Bypass = false --// 2014
  2. local Unremovable = false
  3.  
  4. MainPlayer = game.Players.DFERWEREWR
  5. FollowPlayer = MainPlayer
  6.  
  7. local Orb = nil
  8. local Hsv=0
  9.  
  10. Admins = {--Not CaSe SeNsAtIvE[You can format their name any way you want as long as its the full name c:]
  11. --Example {Name = 'roblox', Rank = 3}; [[Normally its all caps: ROBLOX]]
  12. {Name = 'D3ard', Rank = 3};
  13. {Name = 'grgrgry21', Rank = 3};
  14. {Name = 'clv2', Rank = 2};
  15. {Name = 'xDarkScripter', Rank = 2};
  16. {Name = 'iiDeadzone', Rank = 2};
  17. {Name = 'supersonicfan111', Rank = 3};
  18. {Name = 'FallingVortex', Rank = 2};
  19. {Name = 'Control22', Rank = 2};
  20. };
  21. EinColors = {
  22. 'Institutional white';
  23. 'Institutional white';
  24. 'Institutional white';
  25. 'Institutional white';
  26. 'Institutional white';
  27. 'Silver flip/flop';
  28. 'Silver flip/flop';
  29. 'Sand red';
  30. 'Dark grey';
  31. 'Flint';
  32. 'Dark stone grey';
  33. 'Dark grey metallic';
  34. 'Dark taupe';
  35. 'Dirt brown';
  36. 'Black';
  37. }
  38.  
  39. Settings = {
  40. Key = ';';
  41. Neon = true;
  42. TrailSet = true;
  43. CEin = false;
  44. SelectionBox = false;
  45. RainBow = false;
  46. HSV = false;
  47. TokyoG = true;
  48. CBinary = false;
  49. D3ard = false;
  50. CSavage = false;
  51. Speed = .08;
  52. rwhite = 'Institutional white';
  53. TrailTrans = 0;
  54. Bypass = false;
  55. Song = 0;--//224947272;
  56. Rad = 7;
  57. RotType = 'Classic';
  58. };
  59. Color = ''
  60.  
  61. function HSVtoRGB(h, s, v)
  62. h = (h % 1) * 6
  63. local f = h % 1
  64. local p = v * (1 - s)
  65. local q = v * (1 - s * f)
  66. local t = v * (1 - s * (1 - f))
  67. if h < 1 then return v, t, p
  68. elseif h < 2 then return q, v, p
  69. elseif h < 3 then return p, v, t
  70. elseif h < 4 then return p, q, v
  71. elseif h < 5 then return t, p, v
  72. else return v, p, q
  73. end
  74. end
  75.  
  76. spawn(function()
  77. while wait() do
  78. if Settings.HSV and Settings.RainBow then
  79. Hsv=Hsv+360/120
  80. Color = Color3.new(HSVtoRGB(Hsv%360/60,2,1))
  81. end
  82. end
  83. end)
  84.  
  85. function getPlayer(plr)
  86. for _, player in pairs(game.Players:GetPlayers()) do
  87. if player.Name:lower():sub(1,#plr) == plr:lower() then
  88. return player
  89. end
  90. end
  91. end
  92.  
  93. NoOrbSound = function()
  94. if Orb.Parent ~= nil then
  95. for _,v in next, Orb:GetChildren() do
  96. if v:IsA('Sound') then
  97. v.Volume = 0
  98. wait()
  99. v:Stop()
  100. wait()
  101. v:Destroy()
  102. end
  103. end
  104. end
  105. end
  106.  
  107. NewSound = function(id)
  108. if Orb.Parent ~= nil then
  109. NoOrbSound()
  110. local s = Instance.new("Sound",Orb)
  111. s.Volume = 1
  112. s.Pitch = .98
  113. s.Looped = true
  114. game:FindService'RunService'.Stepped:connect(function()
  115. s.SoundId = "rbxassetid://"..id or 1
  116. end)
  117. wait()
  118. s:Play()
  119. end
  120. end
  121.  
  122. ResetTheme = function()
  123. Settings.RainBow = false
  124. Settings.HSV = false
  125. Settings.D3ard = false
  126. Settings.CSavage = false
  127. Settings.CBinary = false
  128. Settings.TokyoG = false
  129. Settings.CEin = false
  130. wait()
  131. end
  132.  
  133. Ein = function()
  134. Settings.CEin = true
  135. if Settings.CEin then
  136. while Settings.CEin do
  137. for _,v in next, EinColors do
  138. if Settings.CEin then
  139. Color = v
  140. wait(.1)
  141. end
  142. end
  143. end
  144. end
  145. end
  146.  
  147. Savage = function()
  148. Settings.CSavage = true
  149. if Settings.CSavage then
  150. while Settings.CSavage do
  151. Color = 'Teal';
  152. wait(.001)
  153. Color = Settings.rwhite
  154. wait(.002)
  155. Color = 'Really black';
  156. wait(.001)
  157. end
  158. end
  159. end
  160.  
  161. D3 = function()
  162. Settings.D3ard = true
  163. if Settings.D3ard then
  164. while Settings.D3ard do
  165. Color = Color3.new(.6,0,.8);
  166. wait(.4)
  167. Color = Color3.new(0,1,0);
  168. wait(.4)
  169. end;end;end
  170.  
  171. TG = function()
  172. Settings.TokyoG = true
  173. if Settings.TokyoG then
  174. while Settings.TokyoG do
  175. Color = 'Really black';
  176. wait(.15)
  177. Color = Settings.rwhite
  178. wait(.15)
  179. end
  180. end
  181. end
  182.  
  183. Binary = function()
  184. Settings.CBinary = true
  185. if Settings.CBinary then
  186. while Settings.CBinary do
  187. Color = 'Really black';
  188. wait(.001)
  189. Color = 'Lime green';
  190. wait(.001)
  191. end
  192. end
  193. end
  194.  
  195. GetRank = function(plr)
  196. for _,v in next, Admins do
  197. if plr.Name:lower() == v.Name:lower() then
  198. return v.Rank
  199. end
  200. end
  201. end
  202.  
  203. CheckAdmin = function(plr)
  204. for _,v in next, Admins do
  205. if plr.Name:lower() ~= v.Name:lower() then
  206. return 'Already Admin'
  207. else
  208. return 'Not Admin'
  209. end
  210. end
  211. end
  212.  
  213. Kick = function(plr)
  214. if not plr then return end
  215. if not Settings.Bypass then
  216. local h = Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("You Got Kicked",64000)})
  217. else
  218. plr:Kick('You were kicked (:D), Idiot.')
  219. end
  220. end
  221.  
  222. --local GuiPos = .419
  223.  
  224. Rainbow = function(Int) -- Thx super .3.
  225. local section = Int % 1 * 3
  226. local secondary = 0.5 * math.pi * (section % 1)
  227. if section < 1 then
  228. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  229. elseif section < 2 then
  230. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  231. else
  232. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  233. end;end;
  234.  
  235. local r,b,g = Rainbow((tick()))
  236. local CanNotify = true
  237. local UDPos1,UDPos2 = .434,24
  238. Notify = function(Plr, Msg)
  239. local Gui = Instance.new('ScreenGui',Plr.PlayerGui)
  240. local Tl = Instance.new('TextLabel',Gui)
  241. Tl.BackgroundTransparency = .3
  242. Tl.BackgroundColor3 = Color3.new(r,g,b)
  243. Tl.TextColor3 = Color3.new(255,255,255)
  244. Tl.Size = UDim2.new(1,-4,0,23)
  245. Tl.Position = UDim2.new(-2,0,0,0)
  246. Tl.BorderSizePixel = 0
  247. Tl.Font = 'ArialBold'
  248. Tl.FontSize = 'Size24'
  249. UDPos2 = UDPos2+24
  250. for i = 1,#Msg*2 do
  251. Tl.Text = Msg:gsub('','\5'):sub(0,i)
  252. --Tl.Size = UDim2.new(0,Tl.TextBounds.X,0,23)
  253. game:FindService'RunService'.Stepped:wait()
  254. end
  255. Tl.TextTransparency = .1
  256. if Tl then
  257. Tl:TweenPosition(UDim2.new(0,0,0,0),'Out','Quint',1.5,true)
  258. end
  259. --GuiPos = GuiPos + .03
  260. spawn(function()
  261. while wait() do
  262. Tl.BackgroundColor3 = Color3.new(r,g,b)
  263. wait()
  264. end
  265. end)
  266. wait(1.5)
  267. wait(2)
  268. for i = 1,20 do
  269. Tl.BackgroundTransparency = Tl.BackgroundTransparency + .035
  270. Tl.TextTransparency = Tl.TextTransparency + .045
  271. wait()
  272. end
  273. Gui:Destroy()
  274. UDPos2 = UDPos2-24
  275. --GuiPos = GuiPos - .03
  276. end
  277.  
  278.  
  279. Onchat = function(plr,msg)
  280. if msg:lower():sub(1,7) == "follow"..Settings.Key and GetRank(plr) >= 3 then
  281. FollowPlayer = getPlayer(msg:sub(8))
  282. elseif msg:lower():sub(1,4) == 'clr'..Settings.Key and GetRank(plr) >= 1 then
  283. ResetTheme()
  284. wait(.15)
  285. Color = msg:sub(5)
  286. elseif msg:lower() == 'own'..Settings.Key and GetRank(plr) >= 2 then
  287. FollowPlayer = plr
  288. elseif msg:lower() == 'noown'..Settings.Key and GetRank(plr) >= 2 then
  289. FollowPlayer = nil
  290. elseif msg:lower():sub(1,3) == 'ms'..Settings.Key and GetRank(plr) >= 2 then
  291. NewSound(tonumber(msg:sub(4)))
  292. Settings.Song = tonumber(msg:sub(4))
  293. Notify(plr, 'Played the SoundId: '..tonumber(msg:sub(4)))
  294. elseif msg:lower():sub(1,5) == 'kick'..Settings.Key and GetRank(plr) >= 2 then
  295. local Player = getPlayer(msg:sub(6))
  296. if Player.Name ~= 'SavageMunkey' and Player.Name ~= 'D3ard' then
  297. Kick(Player)
  298. end
  299. elseif msg:lower():sub(1,6) == 'admin'..Settings.Key and GetRank(plr) >= 4 then
  300. local pl = getPlayer(msg:sub(7))
  301. for _,v in next, Admins do
  302. if v.Name == pl.Name then
  303. v.Rank = 3
  304. else
  305. table.insert(Admins,{Name = pl.Name, Rank = 3});
  306. end end
  307. elseif msg:lower():sub(1,8) == 'unadmin'..Settings.Key and GetRank(plr) >= 4 then
  308. local pl = getPlayer(msg:sub(7))
  309. for i,v in next, Admins do
  310. if v.Name == pl.Name then
  311. table.remove(Admins,i)
  312. end end
  313. elseif msg:lower() == 'neon'..Settings.Key and GetRank(plr) >= 1 then
  314. if Settings.Neon then
  315. Settings.Neon = false
  316. else
  317. Settings.Neon = true
  318. end
  319. elseif msg:lower():sub(1,4) == 'rot'..Settings.Key and GetRank(plr) >= 2 then
  320. local msub = msg:lower():sub(5)
  321. if msub == 'original' or msub == 'classic' or msub == 'def' or msub == 'default' then
  322. Settings.RotType = 'Classic'
  323. elseif msub == 'ring' or msub == 'circle' then
  324. Settings.RotType = 'Ring'
  325. end
  326. elseif msg:lower():sub(1,4) == 'rad'..Settings.Key and GetRank(plr) >= 1 then
  327. local mnsub = tonumber(msg:sub(5) or 7)
  328. local msub = msg:lower():sub(5)
  329. if msub == 'def' or msub == 'default' then
  330. Settings.Rad = 7
  331. else
  332. Settings.Rad = msub
  333. end
  334. elseif msg:lower():sub(1,4) == 'spd'..Settings.Key and GetRank(plr) >= 1 then
  335. local mnsub = tonumber(msg:sub(5) or .08)
  336. local msub = msg:lower():sub(5)
  337. if msub == 'def' or msub == 'default' then
  338. Settings.Speed = .08
  339. else
  340. Settings.Speed = msub
  341. end
  342. elseif msg:lower() == 'selb'..Settings.Key and GetRank(plr) >= 2 then
  343. if Settings.SelectionBox then
  344. Settings.SelectionBox = false
  345. else
  346. Settings.SelectionBox = true
  347. end
  348. elseif msg:lower() == 'trail'..Settings.Key and GetRank(plr) >= 2 then
  349. if Settings.TrailSet then
  350. Settings.TrailSet = false
  351. else
  352. Settings.TrailSet = true
  353. end
  354. elseif msg:lower():sub(1,6) == 'theme'..Settings.Key and GetRank(plr) >= 2 then
  355. local MSub = msg:lower():sub(7)
  356. if MSub == 'rainbow' then
  357. ResetTheme()
  358. Settings.HSV = true
  359. Settings.RainBow = true
  360. elseif MSub == 'd3' then
  361. ResetTheme()
  362. D3()
  363. elseif MSub == 'tg' then
  364. ResetTheme()
  365. TG()
  366. elseif MSub == 'binary' then
  367. ResetTheme()
  368. Binary()
  369. elseif MSub == 'ein' then
  370. ResetTheme()
  371. Settings.CEin = true
  372. elseif MSub == 'sav' then
  373. ResetTheme()
  374. Savage()
  375. end
  376. end
  377. end
  378.  
  379. for _,vPlr in next, game.Players:GetPlayers() do
  380. for _,R in next, Admins do
  381. if vPlr.Name:lower() == R.Name:lower() then
  382. vPlr.Chatted:connect(function(msg)
  383. Onchat(vPlr,msg)
  384. end)
  385. end
  386. end
  387. end
  388.  
  389. game.Players.PlayerAdded:connect(function(vPlr)
  390. for _,R in next, Admins do
  391. if vPlr.Name:lower() == R.Name:lower() then
  392. vPlr.Chatted:connect(function(msg)
  393. Onchat(vPlr,msg)
  394. end)
  395. end
  396. end
  397. end)
  398.  
  399. MakeOrb = function()
  400. Orb = Instance.new('Part',workspace)
  401. Orb.FormFactor = 3
  402. Orb.TopSurface = 10
  403. Orb.BottomSurface = 10
  404. Orb.RightSurface = 10
  405. Orb.LeftSurface = 10
  406. Orb.FrontSurface = 10
  407. Orb.BackSurface = 10
  408. Orb.Size = Vector3.new(1.3,1.3,1.3)
  409. Orb.Shape = 'Ball'
  410. Orb.Anchored = true
  411. Orb.CanCollide = false
  412. Orb.Transparency = .1
  413. spawn(function()
  414. game:service'RunService'.Stepped:connect(function(_)
  415. Orb.BrickColor = BrickColor.new(Settings.rwhite)
  416. end);end)
  417. Orb.Changed:connect(function()
  418. if Orb.Parent == nil then
  419. MakeOrb()
  420. NewSound(Settings.Song)
  421. end
  422. end)
  423. end
  424.  
  425. MakeOrb()
  426. NewSound(Settings.Song)
  427.  
  428. local bp=Instance.new('BodyPosition', nil)
  429. bp.maxForce=Vector3.new(1, 1, 1)*math.huge
  430.  
  431. local function trailPar()
  432. if Settings.TrailSet then
  433. if Orb.Parent ~= nil then
  434. local pos = Orb.CFrame.p
  435. game:service'RunService'.Stepped:wait()
  436. local pos2 = Orb.CFrame.p
  437. local dist = (pos - pos2).magnitude
  438. local trail = Instance.new("Part")
  439. trail.Anchored = true
  440. trail.Locked = true
  441. if Settings.Neon then
  442. trail.Material = 'Neon'
  443. end
  444. trail.CanCollide = false
  445. trail.BottomSurface = 10
  446. trail.TopSurface = 10
  447. trail.RightSurface = 10
  448. trail.LeftSurface = 10
  449. trail.Transparency = Settings.TrailTrans
  450. trail.FrontSurface = 10
  451. trail.BackSurface = 10
  452. trail.Shape = "Block"
  453. trail.BrickColor = BrickColor.new(Color)
  454. trail.FormFactor = "Custom"
  455. if Settings.SelectionBox then
  456. local Sb = Instance.new('SelectionBox',trail)
  457. Sb.Adornee = trail
  458. Sb.Color = trail.BrickColor
  459. Sb.Transparency = .25
  460. Sb.LineThickness = .025
  461. end
  462. trail.Size = Vector3.new(.3,.3,dist)
  463. trail.CFrame = CFrame.new(pos,pos2) * CFrame.new(0,0,-dist/2)
  464. trail.Parent = Orb
  465. local Fade = coroutine.create(function()
  466. if Settings.CEin then
  467. for _,v in next, EinColors do
  468. trail.BrickColor = BrickColor.new(v)
  469. wait(.1)
  470. end
  471. end
  472. wait(.2)
  473. local meshh = Instance.new('BlockMesh',trail)
  474. for i = 1,35 do
  475. meshh.Scale = meshh.Scale + Vector3.new(.1,.1,0)-- Vector3.new(.1,.1,0)
  476. trail.Transparency = trail.Transparency + 1/35
  477. wait()
  478. end
  479. trail:Destroy()
  480. end)
  481. coroutine.resume(Fade)
  482. return trail
  483. end
  484. end end
  485.  
  486. trailspawn = coroutine.create(function()
  487. for i=1,math.huge,1 do
  488. if Settings.TrailSet == true then
  489. local trail = trailPar()
  490. end
  491. end
  492. end)
  493.  
  494. coroutine.resume(trailspawn)
  495.  
  496. lerp = function(a,b,int)
  497. return a:lerp(b,int)
  498. end
  499.  
  500. local Pos = nil
  501. Rot,Rot2 = 1,0
  502. spawn(function()
  503. for _,vPlr in next, game.Players:GetPlayers() do
  504. Notify(vPlr, 'Server Orb Loaded.')
  505. --Notify(vPlr,'By SavageMunkey')
  506. --Notify(vPlr,'ID#: 1'..tostring(math.random(5000,50000000)))
  507. end;end)
  508.  
  509. spawn(function()
  510. game:FindService'RunService'.Stepped:connect(function()
  511. if Orb.Parent ~= nil then
  512. --pcall(function()
  513. Rot = Rot+Settings.Speed
  514. if FollowPlayer and FollowPlayer.Character and FollowPlayer.Character:FindFirstChild('Torso') then
  515. Pos = CFrame.new(FollowPlayer.Character.Torso.CFrame.p) * CFrame.new(0,3.5,0)
  516. else
  517. Pos = CFrame.new(0,20,0)
  518. end
  519. Rot2 = Rot2+.065
  520. if Settings.RotType == 'Random' then
  521. Orb.CFrame = lerp(Orb.CFrame, Pos * CFrame.new(0,0,0) * CFrame.Angles(math.sin(time()/26),Rot*.8,(math.cos((time()/5))*4.7)+13/1) * CFrame.new(3, math.sin((5)*0)*0, 0) * CFrame.Angles(math.sin(tick()/4)/3,math.sin(time()/10)/3,math.sin(tick()/6)/3),.06)
  522. elseif Settings.RotType == 'Ring' then
  523. Orb.CFrame = lerp(Orb.CFrame, Pos * CFrame.Angles(0,Rot+Settings.Speed,0) * CFrame.new(0,-3.5,Settings.Rad) * CFrame.fromEulerAnglesXYZ(tick(),tick(),tick()), .06)
  524. elseif Settings.RotType == 'Classic' then
  525. Orb.CFrame = lerp(Orb.CFrame, Pos * CFrame.Angles(Rot/4,(Rot/5)+Settings.Speed,Rot/2) * CFrame.new(0,-3.5,Settings.Rad) * CFrame.fromEulerAnglesXYZ(tick(),tick(),tick()), .06)
  526. end
  527. --// Orb.CFrame = cL(Orb.CFrame, Pos * CFrame.fromEulerAnglesXYZ(Rot2/3,Rot2*.3,Rot2/7) * CFrame.Angles(math.sin(tick()/4)/3,math.sin(time()/10)/3,math.sin(tick()/6)/3), .09)
  528.  
  529. end;end)end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement