Advertisement
Guest User

Untitled

a guest
Jul 14th, 2018
6,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. -- Made by Zuu_Roku w/ Help from Cass!
  2. -- Venge is ok happy? But nebby is better /e dab
  3.  
  4. print("Made by Zuu_Roku, Thanks Cass for Cloud CLerp.")
  5.  
  6. print("Rain Cloud Visualizer (Update 1.2 I guess) Commands:")
  7.  
  8. print("!play (ID) [Changes song]")
  9.  
  10. print("!pitch (#) [normal pitch is '10'][THIS IS FIXED AAAAAAAAAAAAAAAAAA, Sound.Pitch was Depreciated and never knew, hence why it never worked]")
  11.  
  12. print("!snow / !rain [Changes Weather]")
  13.  
  14. print("!rate (#) [Changes amount of particles]")
  15.  
  16. print("Click for a Lightning bolt!")
  17.  
  18.  
  19.  
  20. local Player = game.Players.LocalPlayer
  21.  
  22. local Character = Player.Character
  23.  
  24. local maus = Player:GetMouse()
  25.  
  26. local H = Character["Head"]
  27.  
  28. local multiplier = 4
  29.  
  30. local ltdb = false
  31.  
  32. local Cloud = Instance.new('Part',Character)
  33.  
  34. Cloud.Size = Vector3.new(1,1,1)
  35.  
  36. Cloud.Anchored = true
  37.  
  38. Cloud.CanCollide = false
  39.  
  40. Cloud.Transparency = 0
  41.  
  42.  
  43.  
  44. local CloudMesh = Instance.new('SpecialMesh',Cloud)
  45.  
  46. CloudMesh.Scale = Vector3.new(5,1,5)
  47.  
  48. CloudMesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  49.  
  50. CloudMesh.Offset = Vector3.new(0,1,0)
  51.  
  52.  
  53. local loudness = 0
  54.  
  55.  
  56.  
  57. local S = Instance.new('Sound',Cloud)
  58.  
  59. S.SoundId = "rbxassetid://170020261"
  60.  
  61. S.Looped = true
  62.  
  63. S.Volume = 8
  64.  
  65. S.PlaybackSpeed = 1
  66.  
  67. S.MaxDistance = 100
  68.  
  69. S:Play()
  70.  
  71.  
  72. local Volume = 5
  73.  
  74.  
  75.  
  76. local Rain = Instance.new('ParticleEmitter',Cloud)
  77.  
  78. Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255))
  79.  
  80. Rain.Size = NumberSequence.new(.5)
  81.  
  82. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  83.  
  84. Rain.Transparency = NumberSequence.new(0,.6)
  85.  
  86. Rain.Acceleration = Vector3.new(0,-150,0)
  87.  
  88. Rain.Lifetime = NumberRange.new(5,10)
  89.  
  90. Rain.Rate = 100
  91.  
  92.  
  93.  
  94. local Shade = Instance.new('PointLight',Cloud)
  95.  
  96. Shade.Range = 10
  97.  
  98. Shade.Color = Color3.fromRGB(50,50,50)
  99.  
  100. Shade.Enabled = true
  101.  
  102. Shade.Shadows = true
  103.  
  104.  
  105.  
  106. local rad = math.rad
  107.  
  108. local sin = math.sin
  109.  
  110. local tan = math.tan
  111.  
  112. local cos = math.cos
  113.  
  114. Player.Chatted:connect(function(m)
  115.  
  116. if m:match("!play%s%d+") then
  117.  
  118. S:Stop()
  119.  
  120. S.SoundId = "rbxassetid://"..m:match("!play%s(%d+)")
  121.  
  122. S:Play()
  123.  
  124. elseif m:match("!volume%s%d+") then
  125.  
  126. S.Volume = m:match("!volume%s(%d+)")
  127.  
  128. Volume = m:match("!volume%s(%d+)")
  129.  
  130. elseif m:match("!pitch%s%d+") then
  131.  
  132. S.PlaybackSpeed = m:match("!pitch%s(%d+)")/10
  133.  
  134. elseif m:match("!snow") then
  135.  
  136. Rain.Texture = "http://www.roblox.com/asset/?id=605668174"
  137.  
  138. Rain.Acceleration = Vector3.new(0,-10,0)
  139.  
  140. Rain.Lifetime = NumberRange.new(15,20)
  141.  
  142. Rain.Size = NumberSequence.new(.2)
  143.  
  144. elseif m:match("!rain") then
  145.  
  146. Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
  147.  
  148. Rain.Acceleration = Vector3.new(0,-150,0)
  149.  
  150. Rain.Lifetime = NumberRange.new(5,10)
  151.  
  152. Rain.Size = NumberSequence.new(.5)
  153.  
  154. elseif m:match("!rate%s%d+") then
  155.  
  156. multiplier = m:match("!rate%s(%d+)")
  157.  
  158. elseif m:match("!rr") then
  159.  
  160. print(Rain.Rate)
  161.  
  162. elseif m:match("!pbs") then
  163.  
  164. print(S.PlaybackSpeed)
  165.  
  166. elseif m:match("!rot") then
  167.  
  168. print(Cloud.Rotation)
  169.  
  170. end
  171. end)
  172.  
  173.  
  174.  
  175. function Weld(x,y)
  176.  
  177. local w = Instance.new("Weld")
  178.  
  179. w.Part0 = x
  180.  
  181. w.Part1 = y
  182.  
  183. w.Name = tostring(y.Name).."_Weld"
  184.  
  185. w.Parent = x
  186.  
  187. return w
  188.  
  189. end
  190.  
  191.  
  192.  
  193. function Clerp(start,destination,increment)
  194.  
  195. local function slerp(a,b,c)return (1-c)*a+(c*b)end
  196.  
  197. local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  198.  
  199. local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  200.  
  201. for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end
  202.  
  203. return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  204.  
  205. end
  206.  
  207.  
  208.  
  209. DrawLightning = function(Start,End,Times,Offset,Color,Thickness)
  210.  
  211. if Start.y>End.y then
  212.  
  213. local magz = (Start - End).magnitude
  214.  
  215. local curpos = Start
  216.  
  217. local trz = {-Offset,Offset}
  218.  
  219. for i=1,Times do
  220.  
  221. local li = Instance.new("Part",workspace)
  222.  
  223. li.TopSurface =10
  224.  
  225. li.BottomSurface = 10
  226.  
  227. li.Anchored = true
  228.  
  229. li.Transparency = 0
  230.  
  231. li.BrickColor = Color
  232.  
  233. li.formFactor = "Custom"
  234.  
  235. li.CanCollide = false
  236.  
  237. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  238.  
  239. local lt=Instance.new("SpotLight",li)
  240.  
  241. lt.Range=16
  242.  
  243. lt.Brightness=5
  244.  
  245. lt.Shadows=true
  246.  
  247. lt.Angle=45
  248.  
  249. lt.Face="Top"
  250.  
  251. lt.Color=li.BrickColor.Color
  252.  
  253. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  254.  
  255. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  256.  
  257. if Times == i then
  258.  
  259. local magz2 = (curpos - End).magnitude
  260.  
  261. li.Size = Vector3.new(Thickness,Thickness,magz2)
  262.  
  263. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  264.  
  265. else
  266.  
  267. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  268.  
  269. end
  270.  
  271. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,5 do wait() li.Transparency = li.Transparency+.2 end li:Destroy() end)
  272.  
  273. end
  274.  
  275. for i,x in pairs(workspace:GetChildren()) do if x:IsA'Model' and x:findFirstChild('Head') and x~=Character and x.Name~="Zuu_Roku" then
  276.  
  277. for a,v in pairs(x:GetChildren()) do if v:IsA'Humanoid' then if (x.Head.CFrame.p-End).magnitude<10 then x:BreakJoints() end end end end end
  278.  
  279. end
  280.  
  281. end
  282.  
  283.  
  284.  
  285. maus.Button1Down:connect(function()
  286.  
  287. if ltdb==false then
  288.  
  289. ltdb=true
  290.  
  291. DrawLightning(Cloud.CFrame.p,maus.Hit.p,5,.5,BrickColor.new("New Yeller"),.2)
  292.  
  293. wait()
  294.  
  295. ltdb=false
  296.  
  297. end
  298.  
  299. end)
  300.  
  301. local Spinny = 0
  302.  
  303. local NoU = 0
  304.  
  305. while true do
  306.  
  307. Rain.Rate = (S.PlaybackLoudness + 1) * multiplier/5
  308.  
  309. game:GetService('RunService').RenderStepped:wait()
  310.  
  311. local HP = H.CFrame.p
  312.  
  313. local sizer = S.PlaybackLoudness/55 + 5
  314.  
  315. Cloud.Size = Vector3.new(sizer,1,sizer)
  316.  
  317. Shade.Range = sizer
  318.  
  319. CloudMesh.Scale = Vector3.new(sizer,5,sizer)
  320.  
  321. Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1)
  322.  
  323. Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness/2, 255-S.PlaybackLoudness/2, 255-S.PlaybackLoudness/2))
  324. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement