View difference between Paste ID: HDPqWPt7 and vL0wSGZb
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://257377220"
44
45
S.Looped = true
46
47
S.Volume = 8
48
49
S.Pitch = 0.8
50
51
S.MaxDistance = 100
52
53
S:Play()
54
55
56
57
local Rain = Instance.new('ParticleEmitter',Cloud)
58
59
Rain.Color = ColorSequence.new(Color3.new(1,1,1),Color3.fromRGB(175,255,255))
60
61
Rain.Size = NumberSequence.new(.5)
62
63
Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
64
65
Rain.Transparency = NumberSequence.new(0,.6)
66
67
Rain.Acceleration = Vector3.new(0,-150,0)
68
69
Rain.Lifetime = NumberRange.new(5,10)
70
71
Rain.Rate = 100
72
73
local rad = math.rad
74
75
local sin = math.sin
76
77
local tan = math.tan
78
79
local cos = math.cos
80
81
Player.Chatted:connect(function(m)
82
83
	if m:match("!play%s%d+") then
84
85
		S:Stop()
86
87
		S.SoundId = "rbxassetid://"..m:match("!play%s(%d+)")
88
89
		S:Play()
90
91
	elseif m:match("!volume%s%d+") then
92
93
		S.Volume = m:match("!volume%s(%d+)")
94
95
	elseif m:match("!pitch%s%d+") then
96
97
		S.Pitch = m:match("!volume%s(%d+)")
98
99
	elseif m:match("!snow") then
100
101
		Rain.Texture = "http://www.roblox.com/asset/?id=605668174"
102
103
		Rain.Acceleration = Vector3.new(0,-10,0)
104
105
		Rain.Lifetime = NumberRange.new(15,20)
106
107
		Rain.Size = NumberSequence.new(.2)
108
109
	elseif m:match("!rain") then
110
111
		Rain.Texture = "http://www.roblox.com/asset/?id=241876428"
112
113
		Rain.Acceleration = Vector3.new(0,-150,0)
114
115
		Rain.Lifetime = NumberRange.new(5,10)
116
117
		Rain.Size = NumberSequence.new(.5)
118
119
	elseif m:match("!multiplier%s%d+") then
120
121
		multiplier = m:match("!multiplier%s(%d+)")
122
123
	elseif m:match("!rr") then
124
125
		print(Rain.Rate)
126
127
	end
128
end)
129
130
131
132
function Weld(x,y)
133
134
	local w = Instance.new("Weld")
135
136
	w.Part0 = x
137
138
	w.Part1 = y
139
140
	w.Name = tostring(y.Name).."_Weld"
141
142
	w.Parent = x
143
144
	return w
145
146
end
147
148
149
150
function Clerp(start,destination,increment)
151
152
	local function slerp(a,b,c)return (1-c)*a+(c*b)end
153
154
    local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
155
156
    local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
157
158
    for i,v in pairs(c1)do c1[i] = slerp(v,c2[i],increment)end
159
160
    return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
161
162
end
163
164
165
166
while true do
167
	
168
	Rain.Rate = (S.PlaybackLoudness + 50) * multiplier
169
170
	game:GetService('RunService').RenderStepped:wait()
171
172
	local HP = H.CFrame.p
173
174
	local sizer = S.PlaybackLoudness/50 + 15
175
	
176
	Cloud.Size = Vector3.new(sizer,15,sizer)
177
178
	CloudMesh.Scale = Vector3.new(sizer,10,sizer)
179
180
	Cloud.CFrame = Clerp(Cloud.CFrame, CFrame.new(HP + Vector3.new(0,4,0))*CFrame.Angles(0,rad(90),0), .1)
181
182
	Cloud.BrickColor = BrickColor.new(Color3.fromRGB(255 - S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1, 255-S.PlaybackLoudness*1.1))
183
end