Advertisement
okban

test

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