Advertisement
okban

Untitled

Apr 12th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. local LocalPlayer = game:GetService("Players").LocalPlayer
  2. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  3.  
  4. local Orb = Instance.new("Part", Character)
  5. Orb.Name = "Orb"
  6. Orb.CanCollide = false
  7. Orb.BrickColor = BrickColor.new("Industrial white")
  8. Orb.Transparency = 0
  9. Orb.CanCollide = false
  10. Orb.Material = Enum.Material.Neon
  11. Orb.Size = Vector3.new(1.78, 1.9, 1.84)
  12. Orb.TopSurface = Enum.SurfaceType.Smooth
  13. Orb.BottomSurface = Enum.SurfaceType.Smooth
  14.  
  15.  
  16.  
  17.  
  18. local BodyPosition = Instance.new("BodyPosition", Orb)
  19. wait(0.3)
  20. function sandbox(var,func)
  21. local env = getfenv(func)
  22. local newenv = setmetatable({},{
  23. __index = function(self,k)
  24. if k=="script" then
  25. return var
  26. else
  27. return env[k]
  28. end
  29. end,
  30. })
  31. setfenv(func,newenv)
  32. return func
  33. end
  34. cors = {}
  35. mas = Instance.new("Model",game:GetService("Lighting"))
  36. Script0 = Instance.new("Script")
  37. Script0.Parent = mas
  38. table.insert(cors,sandbox(Script0,function()
  39. local Rainbow = { --This is the main color set. Try to use more than just a few, make it fade in order as well
  40. "Crimson",
  41. "Bright red",
  42. "Neon orange",
  43. "Deep orange",
  44. "Bright yellow",
  45. "New Yeller",
  46. "Br. yellowish green",
  47. "Lime green",
  48. "Sea green",
  49. "Bright bluish green",
  50. "Bright blue",
  51. "Lavender",
  52. "Royal purple",
  53. "Eggplant",
  54. "Hot pink"
  55. }
  56. rainbowNumber = 1
  57. while true do
  58. if rainbowNumber >= #Rainbow then
  59. rainbowNumber = 1
  60. else
  61. rainbowNumber = rainbowNumber + 1
  62. end
  63.  
  64.  
  65. script.Parent.Orb.BrickColor = BrickColor.new(Rainbow[rainbowNumber])
  66. wait(0.00002)
  67. end
  68.  
  69.  
  70. end))
  71. for i,v in pairs(mas:GetChildren()) do
  72. v.Parent = game:GetService("Players").LocalPlayer.Character
  73. pcall(function() v:MakeJoints() end)
  74. end
  75. mas:Destroy()
  76. for i,v in pairs(cors) do
  77. spawn(function()
  78. pcall(v)
  79. end)
  80. end
  81. function sandbox(var,func)
  82. local env = getfenv(func)
  83. local newenv = setmetatable({},{
  84. __index = function(self,k)
  85. if k=="script" then
  86. return var
  87. else
  88. return env[k]
  89. end
  90. end,
  91. })
  92. setfenv(func,newenv)
  93. return func
  94. end
  95. cors = {}
  96. mas = Instance.new("Model",game:GetService("Lighting"))
  97. LocalScript0 = Instance.new("LocalScript")
  98. LocalScript0.Parent = mas
  99. table.insert(cors,sandbox(LocalScript0,function()
  100. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  101. local plr = game.Players.LocalPlayer
  102. repeat wait() until plr.Character
  103. plr = game.Players.LocalPlayer
  104. char = plr.Character
  105. torso = char.Torso
  106. head = char.Head
  107. neck = torso.Neck
  108. sound = Instance.new("Sound", head)
  109. sound.SoundId = "rbxassetid://"
  110. sound.Volume = 100
  111. sound:Play()
  112. sound.Looped = true
  113. plr.Chatted:connect(function(message)
  114. if message:sub(1,4) == "play" then
  115. sound:Stop()
  116. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  117. sound:Play()
  118. end
  119. end)
  120.  
  121.  
  122. ogsize = Orb.Size
  123.  
  124. game:service'RunService'.RenderStepped:connect(function()
  125. Orb.Size = Orb.Size:lerp(Vector3.new(ogsize.X+sound.PlaybackLoudness/20000,sound.PlaybackLoudness/300,ogsize.Z),0.8)
  126. end)
  127. end))
  128. for i,v in pairs(mas:GetChildren()) do
  129. v.Parent = game:GetService("Players").LocalPlayer.Character
  130. pcall(function() v:MakeJoints() end)
  131. end
  132. mas:Destroy()
  133. for i,v in pairs(cors) do
  134. spawn(function()
  135. pcall(v)
  136. end)
  137. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement