SHOW:
|
|
- or go back to the newest paste.
| 1 | ---[[ Cloud "Visualizer", Rushed out and made by Zuu_Roku, Credits to Cass for being a cool dood]]--- | |
| 2 | ||
| 3 | print("Made by Zuu_Roku, Commands are !play !snow !rain !multiplier and !volume")
| |
| 4 | ||
| 5 | print("Credits to Cass / PPATTA for being a cool dood")
| |
| 6 | ||
| 7 | ||
| 8 | local Player = game.Players.LocalPlayer | |
| 9 | ||
| 10 | local Character = Player.Character | |
| 11 | ||
| 12 | local H = Character["Head"] | |
| 13 | ||
| 14 | local multiplier = 4 | |
| 15 | ||
| 16 | local Cloud = Instance.new('Part',Character)
| |
| 17 | ||
| 18 | Cloud.Size = Vector3.new(20,15,20) | |
| 19 | ||
| 20 | Cloud.Anchored = true | |
| 21 | ||
| 22 | Cloud.CanCollide = false | |
| 23 | ||
| 24 | Cloud.Transparency = 0 | |
| 25 | ||
| 26 | ||
| 27 | ||
| 28 | local CloudMesh = Instance.new('SpecialMesh',Cloud)
| |
| 29 | ||
| 30 | CloudMesh.Scale = Vector3.new(25,10,25) | |
| 31 | ||
| 32 | CloudMesh.MeshId = "http://www.roblox.com/asset/?id=1095708" | |
| 33 | ||
| 34 | CloudMesh.Offset = Vector3.new(0,10,0) | |
| 35 | ||
| 36 | ||
| 37 | local loudness = 0 | |
| 38 | ||
| 39 | ||
| 40 | ||
| 41 | local S = Instance.new('Sound',Cloud)
| |
| 42 | ||
| 43 | - | S.SoundId = "rbxassetid://911100428" |
| 43 | + | S.SoundId = "rbxassetid://1111992131" |
| 44 | ||
| 45 | S.Looped = true | |
| 46 | ||
| 47 | S.Volume = 8 | |
| 48 | ||
| 49 | S.MaxDistance = 100 | |
| 50 | ||
| 51 | S:Play() | |
| 52 | ||
| 53 | ||
| 54 | ||
| 55 | local Rain = Instance.new('ParticleEmitter',Cloud)
| |
| 56 | ||
| 57 | Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255)) | |
| 58 | ||
| 59 | Rain.Size = NumberSequence.new(.5) | |
| 60 | ||
| 61 | Rain.Texture = "http://www.roblox.com/asset/?id=241876428" | |
| 62 | ||
| 63 | Rain.Transparency = NumberSequence.new(0,.6) | |
| 64 | ||
| 65 | Rain.Acceleration = Vector3.new(0,-150,0) | |
| 66 | ||
| 67 | Rain.Lifetime = NumberRange.new(5,10) | |
| 68 | ||
| 69 | Rain.Rate = 100 | |
| 70 | ||
| 71 | local rad = math.rad | |
| 72 | ||
| 73 | local sin = math.sin | |
| 74 | ||
| 75 | local tan = math.tan | |
| 76 | ||
| 77 | local cos = math.cos | |
| 78 | ||
| 79 | Player.Chatted:connect(function(m) | |
| 80 | ||
| 81 | if m:match("!play%s%d+") then
| |
| 82 | ||
| 83 | S:Stop() | |
| 84 | ||
| 85 | S.SoundId = "rbxassetid://"..m:match("!play%s(%d+)")
| |
| 86 | ||
| 87 | S:Play() | |
| 88 | ||
| 89 | elseif m:match("!volume%s%d+") then
| |
| 90 | ||
| 91 | S.Volume = m:match("!volume%s(%d+)")
| |
| 92 | ||
| 93 | elseif m:match("!pitch%s%d+") then
| |
| 94 | ||
| 95 | S.Pitch = m:match("!volume%s(%d+)")
| |
| 96 | ||
| 97 | elseif m:match("!snow") then
| |
| 98 | ||
| 99 | Rain.Texture = "http://www.roblox.com/asset/?id=605668174" | |
| 100 | ||
| 101 | Rain.Acceleration = Vector3.new(0,-10,0) | |
| 102 | ||
| 103 | Rain.Lifetime = NumberRange.new(15,20) | |
| 104 | ||
| 105 | Rain.Size = NumberSequence.new(.2) | |
| 106 | ||
| 107 | elseif m:match("!rain") then
| |
| 108 | ||
| 109 | Rain.Texture = "http://www.roblox.com/asset/?id=241876428" | |
| 110 | ||
| 111 | Rain.Acceleration = Vector3.new(0,-150,0) | |
| 112 | ||
| 113 | Rain.Lifetime = NumberRange.new(5,10) | |
| 114 | ||
| 115 | Rain.Size = NumberSequence.new(.5) | |
| 116 | ||
| 117 | elseif m:match("!multiplier%s%d+") then
| |
| 118 | ||
| 119 | multiplier = m:match("!multiplier%s(%d+)")
| |
| 120 | ||
| 121 | elseif m:match("!rr") then
| |
| 122 | ||
| 123 | print(Rain.Rate) | |
| 124 | ||
| 125 | end | |
| 126 | end) | |
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | function Weld(x,y) | |
| 131 | ||
| 132 | local w = Instance.new("Weld")
| |
| 133 | ||
| 134 | w.Part0 = x | |
| 135 | ||
| 136 | w.Part1 = y | |
| 137 | ||
| 138 | w.Name = tostring(y.Name).."_Weld" | |
| 139 | ||
| 140 | w.Parent = x | |
| 141 | ||
| 142 | return w | |
| 143 | ||
| 144 | end | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | function Clerp(start,destination,increment) | |
| 149 | ||
| 150 | local function slerp(a,b,c)return (1-c)*a+(c*b)end | |
| 151 | ||
| 152 | local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
| |
| 153 | ||
| 154 | local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
| |
| 155 | ||
| 156 | for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end | |
| 157 | ||
| 158 | return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6]) | |
| 159 | ||
| 160 | end | |
| 161 | ||
| 162 | ||
| 163 | ||
| 164 | while true do | |
| 165 | ||
| 166 | Rain.Rate = (S.PlaybackLoudness + 50) * multiplier | |
| 167 | ||
| 168 | game:GetService('RunService').RenderStepped:wait()
| |
| 169 | ||
| 170 | local HP = H.CFrame.p | |
| 171 | ||
| 172 | local sizer = S.PlaybackLoudness/50 + 15 | |
| 173 | ||
| 174 | Cloud.Size = Vector3.new(sizer,15,sizer) | |
| 175 | ||
| 176 | CloudMesh.Scale = Vector3.new(sizer,10,sizer) | |
| 177 | ||
| 178 | Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1) | |
| 179 | ||
| 180 | Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1)) | |
| 181 | end |