SHOW:
|
|
- or go back to the newest paste.
1 | - | -- TheDarkRevenant wanted me to leak this |
1 | + | |
2 | local char = p.Character | |
3 | local mouse = p:GetMouse() | |
4 | local larm = char["Left Arm"] | |
5 | local rarm = char["Right Arm"] | |
6 | local lleg = char["Left Leg"] | |
7 | local rleg = char["Right Leg"] | |
8 | local hed = char.Head | |
9 | local torso = char.Torso | |
10 | local hum = char.Humanoid | |
11 | local cam = game.Workspace.CurrentCamera | |
12 | local root = char.HumanoidRootPart | |
13 | local deb = false | |
14 | local shot = 0 | |
15 | local l = game:GetService("Lighting") | |
16 | local rs = game:GetService("RunService").RenderStepped | |
17 | local stanceToggle = "Bong" | |
18 | math.randomseed(os.time()) | |
19 | hum.WalkSpeed = 8 | |
20 | ---------------------------------------------------- | |
21 | ---------------------------------------------------- | |
22 | ---------------------------------------------------- | |
23 | Debounces = { | |
24 | CanPuff = true; | |
25 | CanJoke = true; | |
26 | Bong = true; | |
27 | Pipe = false; | |
28 | Blunt = false; | |
29 | NoIdl = false; | |
30 | on = false; | |
31 | } | |
32 | ||
33 | ---------------------------------------------------- | |
34 | ||
35 | function lerp(a, b, t) -- Linear interpolation | |
36 | return a + (b - a)*t | |
37 | end | |
38 | ||
39 | function slerp(a, b, t) --Spherical interpolation | |
40 | dot = a:Dot(b) | |
41 | if dot > 0.99999 or dot < -0.99999 then | |
42 | return t <= 0.5 and a or b | |
43 | else | |
44 | r = math.acos(dot) | |
45 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
46 | end | |
47 | end | |
48 | ||
49 | function matrixInterpolate(a, b, t) | |
50 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
51 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
52 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
53 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
54 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
55 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
56 | local t = v1:Dot(v2) | |
57 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
58 | return CFrame.new() | |
59 | end | |
60 | return CFrame.new( | |
61 | v0.x, v0.y, v0.z, | |
62 | v1.x, v1.y, v1.z, | |
63 | v2.x, v2.y, v2.z, | |
64 | v3.x, v3.y, v3.z) | |
65 | end | |
66 | ---------------------------------------------------- | |
67 | function genWeld(a,b) | |
68 | local w = Instance.new("Weld",a) | |
69 | w.Part0 = a | |
70 | w.Part1 = b | |
71 | return w | |
72 | end | |
73 | function weld(a, b) | |
74 | local weld = Instance.new("Weld") | |
75 | weld.Name = "W" | |
76 | weld.Part0 = a | |
77 | weld.Part1 = b | |
78 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
79 | weld.Parent = a | |
80 | return weld; | |
81 | end | |
82 | ---------------------------------------------------- | |
83 | function Lerp(c1,c2,al) | |
84 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
85 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
86 | for i,v in pairs(com1) do | |
87 | com1[i] = v+(com2[i]-v)*al | |
88 | end | |
89 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
90 | end | |
91 | ---------------------------------------------------- | |
92 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
93 | local wld = Instance.new("Weld", wp1) | |
94 | wld.Part0 = wp0 | |
95 | wld.Part1 = wp1 | |
96 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
97 | end | |
98 | ---------------------------------------------------- | |
99 | newWeld(torso, larm, -1.5, 0.5, 0) | |
100 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
101 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
102 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
103 | newWeld(torso, hed, 0, 1.5, 0) | |
104 | newWeld(torso, lleg, -0.5, -1, 0) | |
105 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
106 | newWeld(torso, rleg, 0.5, -1, 0) | |
107 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
108 | newWeld(root, torso, 0, -1, 0) | |
109 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
110 | ---------------------------------------------------- | |
111 | z = Instance.new("Sound",char) | |
112 | z.SoundId = "rbxassetid://143065500" | |
113 | z.Looped = true | |
114 | z.Pitch = .94 | |
115 | z.Volume = 1 | |
116 | wait(1) | |
117 | z:Play() | |
118 | ---------------------------------------------------- | |
119 | pa = Instance.new("Part", torso) | |
120 | pa.Name = "Fat" | |
121 | pa.Transparency = 1 | |
122 | pa.CanCollide = false | |
123 | pa.Anchored = false | |
124 | pa.Locked = true | |
125 | pa.Size = Vector3.new(1,1,1) | |
126 | weld = Instance.new("Weld", pa) | |
127 | weld.Part0 = pa | |
128 | weld.Part1 = torso | |
129 | weld.C0 = CFrame.new(0, 0, -1.5) | |
130 | weld.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)) | |
131 | s = Instance.new("Smoke", pa) | |
132 | s.Color = Color3.new(1,1,1) | |
133 | s.Opacity = 1 | |
134 | s.RiseVelocity = 4 | |
135 | s.Enabled = false | |
136 | ---------------------------------------------------- | |
137 | local m = Instance.new("Model") | |
138 | m.Name = "Bong" | |
139 | p1 = Instance.new("Part", m) | |
140 | p1.Material = "Neon" | |
141 | p1.BrickColor = BrickColor.new("Black") | |
142 | p1.Name = "Lip" | |
143 | p1.FormFactor = Enum.FormFactor.Symmetric | |
144 | p1.Size = Vector3.new(1, 1, 1) | |
145 | p1.CFrame = CFrame.new(28.499649, 10.9996414, -11.4994812, -0.999972343, 6.21378422e-006, -0.00049701333, -0.000477582216, -5.70863485e-005, 0.999959588, -1.02631748e-005, 0.999939203, 2.50376761e-005) | |
146 | p1.CanCollide = false | |
147 | p1.Locked = true | |
148 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
149 | p1.TopSurface = Enum.SurfaceType.Smooth | |
150 | b1 = Instance.new("SpecialMesh", p1) | |
151 | b1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
152 | b1.TextureId = "" | |
153 | b1.MeshType = Enum.MeshType.FileMesh | |
154 | b1.Name = "Mesh" | |
155 | p2 = Instance.new("Part", m) | |
156 | p2.Material = "Neon" | |
157 | p2.BrickColor = BrickColor.new("Earth green") | |
158 | p2.Material = Enum.Material.SmoothPlastic | |
159 | p2.Transparency = 0.20000000298023 | |
160 | p2.Name = "Tube" | |
161 | p2.FormFactor = Enum.FormFactor.Symmetric | |
162 | p2.Size = Vector3.new(1, 3, 1) | |
163 | p2.CFrame = CFrame.new(28.4998627, 9.49954987, -11.4992342, 0.000220132133, -5.49961114e-005, 0.999972463, -7.23355697e-005, 0.999959707, 3.55862139e-005, -0.999939203, -0.000104385108, 0.000236587104) | |
164 | p2.CanCollide = false | |
165 | p2.Locked = true | |
166 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
167 | p2.TopSurface = Enum.SurfaceType.Smooth | |
168 | b2 = Instance.new("CylinderMesh", p2) | |
169 | b2.Name = "Mesh" | |
170 | p3 = Instance.new("Part", m) | |
171 | p3.BrickColor = BrickColor.new("Earth green") | |
172 | p3.Name = "Devil's Lettuce" | |
173 | p3.Size = Vector3.new(1, 1.20000005, 1) | |
174 | p3.CFrame = CFrame.new(27.1619816, 8.50439644, -11.4991903, 0.754621029, -0.656118929, 2.5186062e-005, 0.656095922, 0.754624128, -5.45315925e-005, 8.17945693e-006, 2.26873817e-005, 0.999939263) | |
175 | p3.CanCollide = false | |
176 | p3.Locked = true | |
177 | b3 = Instance.new("SpecialMesh", p3) | |
178 | b3.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
179 | b3.TextureId = "http://www.roblox.com/asset/?id=1290030" | |
180 | b3.MeshType = Enum.MeshType.FileMesh | |
181 | b3.VertexColor = Vector3.new(0.5, 70, 0) | |
182 | b3.Name = "Mesh" | |
183 | b3.Scale = Vector3.new(0.199999988, 0.199999988, 0.199999988) | |
184 | p4 = Instance.new("Part", m) | |
185 | p4.BrickColor = BrickColor.new("Black") | |
186 | p4.Name = "Bowl" | |
187 | p4.FormFactor = Enum.FormFactor.Symmetric | |
188 | p4.Size = Vector3.new(1, 1, 1) | |
189 | p4.CFrame = CFrame.new(27.243679, 8.40425396, -11.4991856, -0.754621029, 0.656118929, 0.000100085585, -0.656095922, -0.754624128, 1.05888903e-005, 9.10690069e-005, -2.26873672e-005, 0.999939263) | |
190 | p4.CanCollide = false | |
191 | p4.Locked = true | |
192 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
193 | p4.TopSurface = Enum.SurfaceType.Smooth | |
194 | b4 = Instance.new("SpecialMesh", p4) | |
195 | b4.MeshId = "http://www.roblox.com/asset/?id=19380188" | |
196 | b4.TextureId = "" | |
197 | b4.MeshType = Enum.MeshType.FileMesh | |
198 | b4.Name = "Mesh" | |
199 | b4.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006) | |
200 | p5 = Instance.new("Part", m) | |
201 | p5.BrickColor = BrickColor.new("Black") | |
202 | p5.Material = Enum.Material.SmoothPlastic | |
203 | p5.Name = "Stem" | |
204 | p5.FormFactor = Enum.FormFactor.Symmetric | |
205 | p5.Size = Vector3.new(1, 1, 1) | |
206 | p5.CFrame = CFrame.new(27.8998299, 7.64966011, -11.4992504, -0.754621029, -0.656118929, -3.68308465e-005, -0.656095922, 0.754624128, 4.44071593e-005, 7.25091377e-006, 2.26873672e-005, -0.999939263) | |
207 | p5.CanCollide = false | |
208 | p5.Locked = true | |
209 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
210 | p5.TopSurface = Enum.SurfaceType.Smooth | |
211 | b5 = Instance.new("CylinderMesh", p5) | |
212 | b5.Name = "Mesh" | |
213 | b5.Scale = Vector3.new(1, 1.79999995, 0.200000003) | |
214 | p6 = Instance.new("Part", m) | |
215 | p6.Material = "Neon" | |
216 | p6.BrickColor = BrickColor.new("Earth green") | |
217 | p6.Material = Enum.Material.SmoothPlastic | |
218 | p6.Transparency = 0.20000000298023 | |
219 | p6.Name = "Bong" | |
220 | p6.FormFactor = Enum.FormFactor.Symmetric | |
221 | p6.Size = Vector3.new(1, 1, 1) | |
222 | p6.CFrame = CFrame.new(28.5000229, 7.34961605, -11.4990406, -0.000452600536, 0.00015476234, -0.999972343, -1.39447293e-005, 0.999959707, 0.000174246117, 0.999939203, -1.80333263e-005, -0.000469060004) | |
223 | p6.CanCollide = false | |
224 | p6.Locked = true | |
225 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
226 | p6.TopSurface = Enum.SurfaceType.Smooth | |
227 | b6 = Instance.new("SpecialMesh", p6) | |
228 | b6.MeshType = Enum.MeshType.Sphere | |
229 | b6.Name = "Mesh" | |
230 | b6.Scale = Vector3.new(1.79999995, 1.79999995, 1.79999995) | |
231 | p7 = Instance.new("Part", m) | |
232 | p7.Material = "Neon" | |
233 | p7.BrickColor = BrickColor.new("Pastel Blue") | |
234 | p7.Material = Enum.Material.SmoothPlastic | |
235 | p7.Name = "Water" | |
236 | p7.FormFactor = Enum.FormFactor.Symmetric | |
237 | p7.Size = Vector3.new(1, 1, 1) | |
238 | p7.CFrame = CFrame.new(28.5000248, 7.25962019, -11.4990396, -0.000452600565, 0.000154762354, -0.999972343, -1.39616022e-005, 0.999959707, 0.000174246117, 0.999939322, -1.80501975e-005, -0.000469060033) | |
239 | p7.CanCollide = false | |
240 | p7.Locked = true | |
241 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
242 | p7.TopSurface = Enum.SurfaceType.Smooth | |
243 | b7 = Instance.new("SpecialMesh", p7) | |
244 | b7.MeshType = Enum.MeshType.Sphere | |
245 | b7.Name = "Mesh" | |
246 | b7.Scale = Vector3.new(1.5999999, 1.39999986, 1.5999999) | |
247 | w1 = Instance.new("Weld", p1) | |
248 | w1.Name = "Tube_Weld" | |
249 | w1.Part0 = p1 | |
250 | w1.C0 = CFrame.new(28.505003, 11.5008535, -10.9858503, -0.999999881, -0.000485179946, -1.08338909e-007, -8.74227695e-008, -4.31100962e-005, 1, -0.000485179946, 0.999999881, 4.31100489e-005) | |
251 | w1.Part1 = p2 | |
252 | w1.C1 = CFrame.new(-11.5057898, -9.49978542, -28.4976711, 0.000226438046, -8.63153255e-005, -1, -4.31497574e-005, 1, -8.63251043e-005, 1, 4.31693043e-005, 0.000226438046) | |
253 | w2 = Instance.new("Weld", p2) | |
254 | w2.Name = "Devil's Lettuce_Weld" | |
255 | w2.Part0 = p2 | |
256 | w2.C0 = CFrame.new(-11.5057898, -9.49978542, -28.4976711, 0.000226438046, -8.63153255e-005, -1, -4.31497574e-005, 1, -8.63251043e-005, 1, 4.31693043e-005, 0.000226438046) | |
257 | w2.Part1 = p3 | |
258 | w2.C1 = CFrame.new(-26.0778522, 11.4040451, 11.4999485, 0.75464958, 0.656128049, 1.23602822e-005, -0.656128049, 0.75464958, 4.29936699e-005, 1.88816703e-005, -4.05550818e-005, 1) | |
259 | w3 = Instance.new("Weld", p3) | |
260 | w3.Name = "Bowl_Weld" | |
261 | w3.Part0 = p3 | |
262 | w3.C0 = CFrame.new(-26.0778522, 11.4040451, 11.4999485, 0.75464958, 0.656128049, 1.23602822e-005, -0.656128049, 0.75464958, 4.29936699e-005, 1.88816703e-005, -4.05550818e-005, 1) | |
263 | w3.Part1 = p4 | |
264 | w3.C1 = CFrame.new(26.0749397, -11.5332241, 11.4973526, -0.75464958, -0.656128049, 8.68942152e-005, 0.656128049, -0.75464958, -4.29936554e-005, 9.37840305e-005, 2.45685878e-005, 1) | |
265 | w4 = Instance.new("Weld", p4) | |
266 | w4.Name = "Stem_Weld" | |
267 | w4.Part0 = p4 | |
268 | w4.C0 = CFrame.new(26.0749397, -11.5332241, 11.4973526, -0.75464958, -0.656128049, 8.68942152e-005, 0.656128049, -0.75464958, -4.29936554e-005, 9.37840305e-005, 2.45685878e-005, 1) | |
269 | w4.Part1 = p5 | |
270 | w4.C1 = CFrame.new(26.0740185, 12.5332232, -11.4995804, -0.75464958, -0.656128049, 3.07102709e-006, -0.656128049, 0.75464958, 4.29936554e-005, -3.05268914e-005, 3.04301557e-005, -1) | |
271 | w5 = Instance.new("Weld", p5) | |
272 | w5.Name = "Bong_Weld" | |
273 | w5.Part0 = p5 | |
274 | w5.C0 = CFrame.new(26.0740185, 12.5332232, -11.4995804, -0.75464958, -0.656128049, 3.07102709e-006, -0.656128049, 0.75464958, 4.29936554e-005, -3.05268914e-005, 3.04301557e-005, -1) | |
275 | w5.Part1 = p6 | |
276 | w5.C1 = CFrame.new(11.5130777, -7.35474873, 28.493494, -0.000458917581, 2.98023224e-008, 0.99999994, 0.000166644895, 1, 2.98023224e-008, -0.999999881, 0.000166644895, -0.000458917581) | |
277 | w6 = Instance.new("Weld", p6) | |
278 | w6.Name = "Water_Weld" | |
279 | w6.Part0 = p6 | |
280 | w6.C0 = CFrame.new(11.5130777, -7.35474873, 28.493494, -0.000458917581, 2.98023224e-008, 0.99999994, 0.000166644895, 1, 2.98023224e-008, -0.999999881, 0.000166644895, -0.000458917581) | |
281 | w6.Part1 = p7 | |
282 | w6.C1 = CFrame.new(11.5130777, -7.26474905, 28.4935093, -0.000458917581, 2.98023224e-008, 0.99999994, 0.000166644895, 1, 2.98023224e-008, -0.999999881, 0.000166644895, -0.000458917581) | |
283 | w7 = Instance.new("Weld", p7) | |
284 | w7.Name = "Head_Weld" | |
285 | w7.Part0 = p7 | |
286 | w7.C0 = CFrame.new(11.5130777, -7.26474905, 28.4935093, -0.000458917581, 2.98023224e-008, 0.99999994, 0.000166644895, 1, 2.98023224e-008, -0.999999881, 0.000166644895, -0.000458917581) | |
287 | m.Parent = torso | |
288 | m:MakeJoints() | |
289 | ---------------------------------------------------- | |
290 | weld2 = Instance.new("Weld", torso.Bong) | |
291 | weld2.Part0 = torso | |
292 | weld2.Part1 = torso.Bong.Tube | |
293 | weld2.C0 = CFrame.new(0, -.5, -1.5) | |
294 | weld2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
295 | ---------------------------------------------------- | |
296 | local m2 = Instance.new("Model") | |
297 | m2.Name = "Blunt" | |
298 | p1 = Instance.new("Part", m2) | |
299 | p1.Transparency = 1 | |
300 | p1.BrickColor = BrickColor.new("CGA brown") | |
301 | p1.Name = "Handle" | |
302 | p1.FormFactor = Enum.FormFactor.Custom | |
303 | p1.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003) | |
304 | p1.CFrame = CFrame.new(30.5498123, 9.24952984, -12.2989969, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
305 | p1.CanCollide = false | |
306 | p1.Locked = true | |
307 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
308 | p1.TopSurface = Enum.SurfaceType.Smooth | |
309 | b1 = Instance.new("SpecialMesh", p1) | |
310 | b1.MeshType = Enum.MeshType.Cylinder | |
311 | b1.Name = "Mesh" | |
312 | p2 = Instance.new("Part", m2) | |
313 | p2.Transparency = 1 | |
314 | p2.BrickColor = BrickColor.new("CGA brown") | |
315 | p2.Name = "Joint11" | |
316 | p2.FormFactor = Enum.FormFactor.Custom | |
317 | p2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
318 | p2.CFrame = CFrame.new(30.5498104, 9.24934578, -12.4989843, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
319 | p2.CanCollide = false | |
320 | p2.Locked = true | |
321 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
322 | p2.TopSurface = Enum.SurfaceType.Smooth | |
323 | b2 = Instance.new("SpecialMesh", p2) | |
324 | b2.MeshType = Enum.MeshType.Cylinder | |
325 | b2.Name = "Mesh" | |
326 | b2.Scale = Vector3.new(0.300000012, 1, 1) | |
327 | p3 = Instance.new("Part", m2) | |
328 | p3.Transparency = 1 | |
329 | p3.BrickColor = BrickColor.new("CGA brown") | |
330 | p3.Name = "Joint10" | |
331 | p3.FormFactor = Enum.FormFactor.Custom | |
332 | p3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
333 | p3.CFrame = CFrame.new(30.5498104, 9.24934673, -12.5489807, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
334 | p3.CanCollide = false | |
335 | p3.Locked = true | |
336 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
337 | p3.TopSurface = Enum.SurfaceType.Smooth | |
338 | b3 = Instance.new("SpecialMesh", p3) | |
339 | b3.MeshType = Enum.MeshType.Cylinder | |
340 | b3.Name = "Mesh" | |
341 | b3.Scale = Vector3.new(0.300000012, 1, 1) | |
342 | p4 = Instance.new("Part", m2) | |
343 | p4.Transparency = 1 | |
344 | p4.BrickColor = BrickColor.new("CGA brown") | |
345 | p4.Name = "Joint9" | |
346 | p4.FormFactor = Enum.FormFactor.Custom | |
347 | p4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
348 | p4.CFrame = CFrame.new(30.5498104, 9.24934673, -12.5989771, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
349 | p4.CanCollide = false | |
350 | p4.Locked = true | |
351 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
352 | p4.TopSurface = Enum.SurfaceType.Smooth | |
353 | b4 = Instance.new("SpecialMesh", p4) | |
354 | b4.MeshType = Enum.MeshType.Cylinder | |
355 | b4.Name = "Mesh" | |
356 | b4.Scale = Vector3.new(0.300000012, 1, 1) | |
357 | p5 = Instance.new("Part", m2) | |
358 | p5.Transparency = 1 | |
359 | p5.BrickColor = BrickColor.new("CGA brown") | |
360 | p5.Name = "Joint8" | |
361 | p5.FormFactor = Enum.FormFactor.Custom | |
362 | p5.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
363 | p5.CFrame = CFrame.new(30.5498104, 9.24934769, -12.6489735, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
364 | p5.CanCollide = false | |
365 | p5.Locked = true | |
366 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
367 | p5.TopSurface = Enum.SurfaceType.Smooth | |
368 | b5 = Instance.new("SpecialMesh", p5) | |
369 | b5.MeshType = Enum.MeshType.Cylinder | |
370 | b5.Name = "Mesh" | |
371 | b5.Scale = Vector3.new(0.300000012, 1, 1) | |
372 | p6 = Instance.new("Part", m2) | |
373 | p6.Transparency = 1 | |
374 | p6.BrickColor = BrickColor.new("CGA brown") | |
375 | p6.Name = "Joint7" | |
376 | p6.FormFactor = Enum.FormFactor.Custom | |
377 | p6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
378 | p6.CFrame = CFrame.new(30.5498104, 9.24934769, -12.6989698, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
379 | p6.CanCollide = false | |
380 | p6.Locked = true | |
381 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
382 | p6.TopSurface = Enum.SurfaceType.Smooth | |
383 | b6 = Instance.new("SpecialMesh", p6) | |
384 | b6.MeshType = Enum.MeshType.Cylinder | |
385 | b6.Name = "Mesh" | |
386 | b6.Scale = Vector3.new(0.300000012, 1, 1) | |
387 | p7 = Instance.new("Part", m2) | |
388 | p7.Transparency = 1 | |
389 | p7.BrickColor = BrickColor.new("CGA brown") | |
390 | p7.Name = "Joint6" | |
391 | p7.FormFactor = Enum.FormFactor.Custom | |
392 | p7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
393 | p7.CFrame = CFrame.new(30.5498104, 9.24934864, -12.7489662, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
394 | p7.CanCollide = false | |
395 | p7.Locked = true | |
396 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
397 | p7.TopSurface = Enum.SurfaceType.Smooth | |
398 | b7 = Instance.new("SpecialMesh", p7) | |
399 | b7.MeshType = Enum.MeshType.Cylinder | |
400 | b7.Name = "Mesh" | |
401 | b7.Scale = Vector3.new(0.300000012, 1, 1) | |
402 | p8 = Instance.new("Part", m2) | |
403 | p8.Transparency = 1 | |
404 | p8.BrickColor = BrickColor.new("CGA brown") | |
405 | p8.Name = "Joint5" | |
406 | p8.FormFactor = Enum.FormFactor.Custom | |
407 | p8.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
408 | p8.CFrame = CFrame.new(30.5498104, 9.24934864, -12.7989626, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
409 | p8.CanCollide = false | |
410 | p8.Locked = true | |
411 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
412 | p8.TopSurface = Enum.SurfaceType.Smooth | |
413 | b8 = Instance.new("SpecialMesh", p8) | |
414 | b8.MeshType = Enum.MeshType.Cylinder | |
415 | b8.Name = "Mesh" | |
416 | b8.Scale = Vector3.new(0.300000012, 1, 1) | |
417 | p9 = Instance.new("Part", m2) | |
418 | p9.Transparency = 1 | |
419 | p9.BrickColor = BrickColor.new("CGA brown") | |
420 | p9.Name = "Joint4" | |
421 | p9.FormFactor = Enum.FormFactor.Custom | |
422 | p9.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
423 | p9.CFrame = CFrame.new(30.5498104, 9.24934959, -12.848959, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
424 | p9.CanCollide = false | |
425 | p9.Locked = true | |
426 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
427 | p9.TopSurface = Enum.SurfaceType.Smooth | |
428 | b9 = Instance.new("SpecialMesh", p9) | |
429 | b9.MeshType = Enum.MeshType.Cylinder | |
430 | b9.Name = "Mesh" | |
431 | b9.Scale = Vector3.new(0.300000012, 1, 1) | |
432 | p10 = Instance.new("Part", m2) | |
433 | p10.Transparency = 1 | |
434 | p10.BrickColor = BrickColor.new("CGA brown") | |
435 | p10.Name = "Joint3" | |
436 | p10.FormFactor = Enum.FormFactor.Custom | |
437 | p10.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
438 | p10.CFrame = CFrame.new(30.5498104, 9.24934959, -12.8989553, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
439 | p10.CanCollide = false | |
440 | p10.Locked = true | |
441 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
442 | p10.TopSurface = Enum.SurfaceType.Smooth | |
443 | b10 = Instance.new("SpecialMesh", p10) | |
444 | b10.MeshType = Enum.MeshType.Cylinder | |
445 | b10.Name = "Mesh" | |
446 | b10.Scale = Vector3.new(0.300000012, 1, 1) | |
447 | p11 = Instance.new("Part", m2) | |
448 | p11.Transparency = 1 | |
449 | p11.BrickColor = BrickColor.new("CGA brown") | |
450 | p11.Name = "Joint3" | |
451 | p11.FormFactor = Enum.FormFactor.Custom | |
452 | p11.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
453 | p11.CFrame = CFrame.new(30.5498104, 9.24935055, -12.9489517, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
454 | p11.CanCollide = false | |
455 | p11.Locked = true | |
456 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
457 | p11.TopSurface = Enum.SurfaceType.Smooth | |
458 | b11 = Instance.new("SpecialMesh", p11) | |
459 | b11.MeshType = Enum.MeshType.Cylinder | |
460 | b11.Name = "Mesh" | |
461 | b11.Scale = Vector3.new(0.300000012, 1, 1) | |
462 | p12 = Instance.new("Part", m2) | |
463 | p12.Transparency = 1 | |
464 | p12.BrickColor = BrickColor.new("CGA brown") | |
465 | p12.Name = "Joint2" | |
466 | p12.FormFactor = Enum.FormFactor.Custom | |
467 | p12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
468 | p12.CFrame = CFrame.new(30.5498104, 9.24935055, -12.9989481, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
469 | p12.CanCollide = false | |
470 | p12.Locked = true | |
471 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
472 | p12.TopSurface = Enum.SurfaceType.Smooth | |
473 | b12 = Instance.new("SpecialMesh", p12) | |
474 | b12.MeshType = Enum.MeshType.Cylinder | |
475 | b12.Name = "Mesh" | |
476 | b12.Scale = Vector3.new(0.300000012, 1, 1) | |
477 | p13 = Instance.new("Part", m2) | |
478 | p13.Transparency = 1 | |
479 | p13.BrickColor = BrickColor.new("CGA brown") | |
480 | p13.Name = "Joint1" | |
481 | p13.FormFactor = Enum.FormFactor.Custom | |
482 | p13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
483 | p13.CFrame = CFrame.new(30.5498104, 9.2493515, -13.0489445, -6.35227434e-006, -1.18419912e-005, 0.999973059, -7.23406483e-005, 0.999959469, -7.5179214e-006, -0.999939501, -0.000104367107, 1.01497435e-005) | |
484 | p13.CanCollide = false | |
485 | p13.Locked = true | |
486 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
487 | p13.TopSurface = Enum.SurfaceType.Smooth | |
488 | b13 = Instance.new("SpecialMesh", p13) | |
489 | b13.MeshType = Enum.MeshType.Cylinder | |
490 | b13.Name = "Mesh" | |
491 | b13.Scale = Vector3.new(0.300000012, 1, 1) | |
492 | w1 = Instance.new("Weld", p1) | |
493 | w1.Name = "Joint11_Weld" | |
494 | w1.Part0 = p1 | |
495 | w1.C0 = CFrame.new(-12.2991934, -9.25106144, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
496 | w1.Part1 = p2 | |
497 | w1.C1 = CFrame.new(-12.4991941, -9.25089169, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
498 | w2 = Instance.new("Weld", p2) | |
499 | w2.Name = "Joint10_Weld" | |
500 | w2.Part0 = p2 | |
501 | w2.C0 = CFrame.new(-12.4991941, -9.25089169, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
502 | w2.Part1 = p3 | |
503 | w2.C1 = CFrame.new(-12.5491943, -9.25089645, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
504 | w3 = Instance.new("Weld", p3) | |
505 | w3.Name = "Joint9_Weld" | |
506 | w3.Part0 = p3 | |
507 | w3.C0 = CFrame.new(-12.5491943, -9.25089645, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
508 | w3.Part1 = p4 | |
509 | w3.C1 = CFrame.new(-12.5991945, -9.25090027, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
510 | w4 = Instance.new("Weld", p4) | |
511 | w4.Name = "Joint8_Weld" | |
512 | w4.Part0 = p4 | |
513 | w4.C0 = CFrame.new(-12.5991945, -9.25090027, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
514 | w4.Part1 = p5 | |
515 | w4.C1 = CFrame.new(-12.6491947, -9.25090504, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
516 | w5 = Instance.new("Weld", p5) | |
517 | w5.Name = "Joint7_Weld" | |
518 | w5.Part0 = p5 | |
519 | w5.C0 = CFrame.new(-12.6491947, -9.25090504, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
520 | w5.Part1 = p6 | |
521 | w5.C1 = CFrame.new(-12.6991949, -9.25090885, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
522 | w6 = Instance.new("Weld", p6) | |
523 | w6.Name = "Joint6_Weld" | |
524 | w6.Part0 = p6 | |
525 | w6.C0 = CFrame.new(-12.6991949, -9.25090885, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
526 | w6.Part1 = p7 | |
527 | w6.C1 = CFrame.new(-12.7491951, -9.25091362, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
528 | w7 = Instance.new("Weld", p7) | |
529 | w7.Name = "Joint5_Weld" | |
530 | w7.Part0 = p7 | |
531 | w7.C0 = CFrame.new(-12.7491951, -9.25091362, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
532 | w7.Part1 = p8 | |
533 | w7.C1 = CFrame.new(-12.7991953, -9.25091743, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
534 | w8 = Instance.new("Weld", p8) | |
535 | w8.Name = "Joint4_Weld" | |
536 | w8.Part0 = p8 | |
537 | w8.C0 = CFrame.new(-12.7991953, -9.25091743, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
538 | w8.Part1 = p9 | |
539 | w8.C1 = CFrame.new(-12.8491955, -9.2509222, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
540 | w9 = Instance.new("Weld", p9) | |
541 | w9.Name = "Joint3_Weld" | |
542 | w9.Part0 = p9 | |
543 | w9.C0 = CFrame.new(-12.8491955, -9.2509222, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
544 | w9.Part1 = p10 | |
545 | w9.C1 = CFrame.new(-12.8991957, -9.25092602, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
546 | w10 = Instance.new("Weld", p10) | |
547 | w10.Name = "Joint3_Weld" | |
548 | w10.Part0 = p10 | |
549 | w10.C0 = CFrame.new(-12.8991957, -9.25092602, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
550 | w10.Part1 = p11 | |
551 | w10.C1 = CFrame.new(-12.9491959, -9.25093079, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
552 | w11 = Instance.new("Weld", p11) | |
553 | w11.Name = "Joint2_Weld" | |
554 | w11.Part0 = p11 | |
555 | w11.C0 = CFrame.new(-12.9491959, -9.25093079, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
556 | w11.Part1 = p12 | |
557 | w11.C1 = CFrame.new(-12.9991961, -9.2509346, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
558 | w12 = Instance.new("Weld", p12) | |
559 | w12.Name = "Joint1_Weld" | |
560 | w12.Part0 = p12 | |
561 | w12.C0 = CFrame.new(-12.9991961, -9.2509346, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
562 | w12.Part1 = p13 | |
563 | w12.C1 = CFrame.new(-13.0491962, -9.25093937, -30.5498657, -4.37113883e-008, -8.63075256e-005, -1, 0, 1, -8.63075256e-005, 1, -3.77262197e-012, -4.37113883e-008) | |
564 | m2.Parent = larm | |
565 | m2:MakeJoints() | |
566 | ---------------------------------------------------- | |
567 | weld3 = Instance.new("Weld", larm.Blunt) | |
568 | weld3.Part0 = larm | |
569 | weld3.Part1 = p1 | |
570 | weld3.C0 = CFrame.new(0, 0, 0) | |
571 | weld3.C1 = CFrame.new(-.4, -.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(130)) | |
572 | ---------------------------------------------------- | |
573 | local m3 = Instance.new("Model") | |
574 | m3.Name = "Pipe" | |
575 | p1 = Instance.new("Part", m3) | |
576 | p1.Transparency = 1 | |
577 | p1.BrickColor = BrickColor.new("Lime green") | |
578 | p1.Name = "Ganja" | |
579 | p1.Size = Vector3.new(1, 1.20000005, 1) | |
580 | p1.CFrame = CFrame.new(34.4998474, 9.47253323, -12.1971197, 0.999142408, 0.0395895876, 0.00966008008, -0.0395250656, 0.999140501, -0.00866904482, -0.00997729599, 0.00824850239, 0.999855876) | |
581 | p1.CanCollide = false | |
582 | p1.Locked = true | |
583 | b1 = Instance.new("SpecialMesh", p1) | |
584 | b1.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
585 | b1.TextureId = "http://www.roblox.com/asset/?id=1290030" | |
586 | b1.MeshType = Enum.MeshType.FileMesh | |
587 | b1.Name = "Mesh" | |
588 | b1.VertexColor = Vector3.new(1, 1, 0) | |
589 | b1.Scale = Vector3.new(0.25, 0.25, 0.25) | |
590 | p2 = Instance.new("Part", m3) | |
591 | p2.Transparency = 1 | |
592 | p2.BrickColor = BrickColor.new("Reddish brown") | |
593 | p2.Name = "Bowl" | |
594 | p2.FormFactor = Enum.FormFactor.Custom | |
595 | p2.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003) | |
596 | p2.CFrame = CFrame.new(34.5002136, 9.30045128, -12.1985321, 0.999142408, -0.0395896509, -0.00965970568, -0.0395250618, -0.999140382, 0.00867650099, -0.0099772159, -0.0082559688, -0.999855697) | |
597 | p2.CanCollide = false | |
598 | p2.Locked = true | |
599 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
600 | p2.TopSurface = Enum.SurfaceType.Smooth | |
601 | b2 = Instance.new("SpecialMesh", p2) | |
602 | b2.MeshId = "http://www.roblox.com/asset/?id=1038653" | |
603 | b2.TextureId = "http://www.roblox.com/asset/?id=63422869" | |
604 | b2.MeshType = Enum.MeshType.FileMesh | |
605 | b2.Name = "Mesh" | |
606 | b2.Scale = Vector3.new(0.5, 0.75, 0.5) | |
607 | p3 = Instance.new("Part", m3) | |
608 | p3.Transparency = 1 | |
609 | p3.BrickColor = BrickColor.new("Reddish brown") | |
610 | p3.Name = "Handle" | |
611 | p3.FormFactor = Enum.FormFactor.Custom | |
612 | p3.Size = Vector3.new(0.200000003, 1.29999995, 0.200000003) | |
613 | p3.CFrame = CFrame.new(34.4998512, 9.09950542, -13.0488882, -0.999973059, -6.22216612e-006, 1.18450553e-005, 7.51431071e-006, 1.40070915e-005, -0.999959469, -1.02808699e-005, -0.999939501, 1.80210918e-005) | |
614 | p3.CanCollide = false | |
615 | p3.Locked = true | |
616 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
617 | p3.TopSurface = Enum.SurfaceType.Smooth | |
618 | b3 = Instance.new("CylinderMesh", p3) | |
619 | b3.Name = "Mesh" | |
620 | w1 = Instance.new("Weld", p1) | |
621 | w1.Name = "Bowl_Weld" | |
622 | w1.Part0 = p1 | |
623 | w1.C0 = CFrame.new(-34.2188034, -10.7307339, 11.9460506, 0.999168873, -0.0395192951, -0.00998879783, 0.0396024287, 0.999181271, 0.00826664828, 0.00965392869, -0.00865535904, 0.999915898) | |
624 | w1.Part1 = p2 | |
625 | w1.C1 = CFrame.new(-34.2259827, 10.5586996, -11.9460554, 0.999168873, -0.0395192914, -0.00998871867, -0.0396024957, -0.999181211, -0.00827411562, -0.00965355337, 0.00866281614, -0.999915838) | |
626 | w2 = Instance.new("Weld", p2) | |
627 | w2.Name = "Handle_Weld" | |
628 | w2.Part0 = p2 | |
629 | w2.C0 = CFrame.new(-34.2259827, 10.5586996, -11.9460554, 0.999168873, -0.0395192914, -0.00998871867, -0.0396024957, -0.999181211, -0.00827411562, -0.00965355337, 0.00866281614, -0.999915838) | |
630 | w2.Part1 = p3 | |
631 | w2.C1 = CFrame.new(34.5000114, -13.0499754, 9.09998798, -1, -3.60887031e-009, -8.74227766e-008, 8.74227766e-008, 4.37113883e-008, -1, 3.60887409e-009, -1, -4.37113883e-008) | |
632 | w3 = Instance.new("Weld", p3) | |
633 | w3.Name = "Handle_Weld" | |
634 | w3.Part0 = p3 | |
635 | w3.C0 = CFrame.new(34.5000114, -13.0499754, 9.09998798, -1, -3.60887031e-009, -8.74227766e-008, 8.74227766e-008, 4.37113883e-008, -1, 3.60887409e-009, -1, -4.37113883e-008) | |
636 | m3.Parent = larm | |
637 | m3:MakeJoints() | |
638 | ---------------------------------------------------- | |
639 | weld4 = Instance.new("Weld", larm.Pipe) | |
640 | weld4.Part0 = larm | |
641 | weld4.Part1 = p3 | |
642 | weld4.C0 = CFrame.new(0, 0, 0) | |
643 | weld4.C1 = CFrame.new(-.8, .7, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)) | |
644 | ---------------------------------------------------- | |
645 | local m4 = Instance.new("Model") | |
646 | m4.Name = "Match" | |
647 | p1 = Instance.new("Part", m4) | |
648 | p1.CanCollide = false | |
649 | p1.Transparency = 1 | |
650 | p1.BrickColor = BrickColor.new("Brown") | |
651 | p1.Material = "Marble" | |
652 | p1.Name = "Match" | |
653 | p1.Size = Vector3.new(1, 2.4, 1) | |
654 | p1.CFrame = CFrame.new(-8.20000362, 1.18600059, -10.0000038, 1.00000048, -0.00011438923, 0.000152289867, 0.000114176073, 0.999999344, 0.00107795233, -0.000152289867, -0.00107795768, 0.999999762) | |
655 | b1 = Instance.new("BlockMesh", p1) | |
656 | b1.Name = "Mesh" | |
657 | b1.Scale = Vector3.new(0.14, 1, 0.14) | |
658 | p2 = Instance.new("Part", m4) | |
659 | p2.CanCollide = false | |
660 | p2.Transparency = 1 | |
661 | p2.BrickColor = BrickColor.new("Really black") | |
662 | p2.Shape = "Ball" | |
663 | p2.Material = "Sand" | |
664 | p2.Name = "MatchHead" | |
665 | p2.Size = Vector3.new(1, 1, 1) | |
666 | p2.CFrame = CFrame.new(-8.20000267, 2.48600006, -10.0000038, 1.00000048, -0.000109304514, -3.49245965e-009, 0.000109255525, 0.999999404, 0.00103000901, 1.41153578e-008, -0.00103003171, 0.999999821) | |
667 | b2 = Instance.new("SpecialMesh", p2) | |
668 | b2.MeshType = "Sphere" | |
669 | b2.Name = "Mesh" | |
670 | b2.Scale = Vector3.new(0.3, 0.6, 0.3) | |
671 | x1 = Instance.new("Fire",p2) | |
672 | x1.Heat = 4 | |
673 | x1.Size = 2 | |
674 | x1.Enabled = false | |
675 | x1.Color = Color3.new(236, 139, 70) | |
676 | x1.SecondaryColor = Color3.new(0, 0, 0) | |
677 | w1 = Instance.new("Weld", p2) | |
678 | w1.Part0 = p1 | |
679 | w1.C0 = CFrame.new(8.19834042, -1.19771659, 9.99996376, 1, 0.00011420052, -0.000152360211, -0.000114364695, 0.999999404, -0.00107794593, 0.000152237015, 0.00107796339, 0.999999404) | |
680 | w1.Part1 = p2 | |
681 | w1.C1 = CFrame.new(8.19972706, -2.49719477, 9.99743366, 1, 0.000109279979, -5.62802924e-008, -0.000109279979, 0.999999464, -0.00103001995, -5.62802924e-008, 0.00103001995, 0.999999464) | |
682 | m4.Parent = rarm | |
683 | m4:MakeJoints() | |
684 | ---------------------------------------------------- | |
685 | weld5 = Instance.new("Weld", p1) | |
686 | weld5.Part0 = p1 | |
687 | weld5.Part1 = rarm | |
688 | weld5.C0 = CFrame.new(0, 0, 0) | |
689 | weld5.C1 = CFrame.new(.2, -.8, .3) * CFrame.Angles(math.rad(-150), math.rad(0), math.rad(0)) | |
690 | ---------------------------------------------------- | |
691 | function Burn() | |
692 | local bk=torso.Bong["Devil's Lettuce"].Mesh | |
693 | bk.VertexColor=Vector3.new(0,0,0) | |
694 | local pl=Instance.new("PointLight",bk.Parent) | |
695 | pl.Brightness=0 pl.Color=Color3.new(1,0,0) | |
696 | for i=1,50 do wait()bk.VertexColor=bk.VertexColor+Vector3.new(.05,0,0)pl.Brightness=pl.Brightness+0.05 end | |
697 | for i=1,50 do wait()bk.VertexColor=bk.VertexColor-Vector3.new(.05,0,0)pl.Brightness=pl.Brightness-0.05 end | |
698 | pl:Remove() | |
699 | end | |
700 | ---------------------------------------------------- | |
701 | function Burn2() | |
702 | local bk=larm.Pipe.Ganja.Mesh | |
703 | bk.VertexColor=Vector3.new(0,0,0) | |
704 | local pl=Instance.new("PointLight",bk.Parent) | |
705 | pl.Brightness=0 pl.Color=Color3.new(1,0,0) | |
706 | for i=1,50 do wait()bk.VertexColor=bk.VertexColor+Vector3.new(.05,0,0)pl.Brightness=pl.Brightness+0.05 end | |
707 | for i=1,50 do wait()bk.VertexColor=bk.VertexColor-Vector3.new(.05,0,0)pl.Brightness=pl.Brightness-0.05 end | |
708 | pl:Remove() | |
709 | end | |
710 | ---------------------------------------------------- | |
711 | function Burn3() | |
712 | local brn=larm.Blunt.Joint1 | |
713 | brn.BrickColor = BrickColor.new("Dusty rose") | |
714 | wait(.5) | |
715 | brn.BrickColor = BrickColor.new("Bright red") | |
716 | wait(.5) | |
717 | brn.BrickColor = BrickColor.new("Really red") | |
718 | wait(1) | |
719 | brn.BrickColor = BrickColor.new("Black") | |
720 | wait(.5) | |
721 | brn.BrickColor = BrickColor.new("Really black") | |
722 | wait(1) | |
723 | brn.BrickColor = BrickColor.new("White") | |
724 | end | |
725 | ---------------------------------------------------- | |
726 | function Match1() | |
727 | for i = 1, 10 do wait() | |
728 | for i,v in pairs(m4:GetChildren()) do | |
729 | if v:IsA("Part") then | |
730 | v.Transparency = v.Transparency - 0.1 | |
731 | end | |
732 | end | |
733 | end | |
734 | x1.Enabled = true | |
735 | end | |
736 | ---------------------------------------------------- | |
737 | function Match2() | |
738 | for i = 1, 10 do wait() | |
739 | for i,v in pairs(m4:GetChildren()) do | |
740 | if v:IsA("Part") then | |
741 | v.Transparency = v.Transparency + 0.1 | |
742 | end | |
743 | end | |
744 | end | |
745 | x1.Enabled = false | |
746 | end | |
747 | ---------------------------------------------------- | |
748 | print("snoop dawg motherfiker")--Dun change plox | |
749 | ---------------------------------------------------- | |
750 | function Snoop() | |
751 | pits = {0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1} | |
752 | ||
753 | if math.random(1,3) == 1 then | |
754 | cgh = Instance.new("Sound",hed) | |
755 | cgh.SoundId = "rbxassetid://186581757" | |
756 | cgh.Pitch = pits[math.random(1,#pits)] | |
757 | cgh.Volume = 1 | |
758 | wait(.1) | |
759 | cgh:Play() | |
760 | end | |
761 | ||
762 | frogSequence = {177231086,177235819,177231110,177231125,177235637,177231141,177231148,177231162,177231174,177231186} | |
763 | snoopSequence = {175425918,175425940,175425986,175426013,175426270,175426298,175426373,175426397,175426407,175426432,175426443,175426561,175426586,175426607,175426620,175426638,175426653,175426666,175426691,175426764,175426777,175426972,175426988,175426999,175427017,175427038,175427054,175427092,175427110,175427137,175427148,175427177} | |
764 | ||
765 | fatboysraidmcdonalds = { | |
766 | SelectFromTable = function(tab) | |
767 | if #tab == 0 then | |
768 | return nil | |
769 | else | |
770 | return tab[math.random(1,#tab)] | |
771 | end | |
772 | end, | |
773 | ["Clamp"] = function(n,a,b) | |
774 | n = tonumber(n or 0) or 0 | |
775 | a = tonumber(a or -math.huge) or -math.huge | |
776 | b = tonumber(b or math.huge) or math.huge | |
777 | if a > b then | |
778 | a,b = b,a | |
779 | end | |
780 | return math.max(a,math.min(b,n)) | |
781 | end, | |
782 | ["Slerp"] = function(val) | |
783 | val = fatboysraidmcdonalds.Clamp(val,0,1) | |
784 | local input = math.pi/2 + (val*math.pi); | |
785 | local sine = math.sin(input); | |
786 | local scale = -sine/2; | |
787 | return 0.5 + scale; | |
788 | end, | |
789 | ["Bounce"] = function(val) | |
790 | val = val%2 | |
791 | if val <= 1 then | |
792 | return val | |
793 | else | |
794 | return 2 - val | |
795 | end | |
796 | end, | |
797 | ["Camera"] = { | |
798 | ["Smooth"] = function(t) | |
799 | local start = tick() | |
800 | local now = start | |
801 | local targ = start + t | |
802 | local Diff = now - start | |
803 | local cam = Workspace.CurrentCamera | |
804 | local orig = cam.FieldOfView | |
805 | local diff,distance,offset | |
806 | if orig >= 70 then | |
807 | distance = 50 | |
808 | offset = orig - 70 | |
809 | diff = offset/distance | |
810 | else | |
811 | distance = 120 - orig | |
812 | offset = 0 | |
813 | diff = 0 | |
814 | end | |
815 | local speed = 0.5 + (math.random()*1.5) | |
816 | while now <= targ do | |
817 | cam.FieldOfView = orig + (fatboysraidmcdonalds.Slerp(fatboysraidmcdonalds.Bounce(diff + (Diff*speed))) * distance) | |
818 | wait() | |
819 | now = tick() | |
820 | Diff = now - start | |
821 | end | |
822 | cam.FieldOfView = orig | |
823 | return Diff | |
824 | end, | |
825 | ["Headache"] = function(t) | |
826 | local now = tick() | |
827 | local targ = tick() + t | |
828 | local cam = Workspace.CurrentCamera | |
829 | local fixes = { | |
830 | ["FieldOfView"] = cam.FieldOfView, | |
831 | ["TiltUnits"] = 0, | |
832 | } | |
833 | while now <= targ do | |
834 | local fov = 60 + math.random()*60 | |
835 | local pan = -8 + (math.random()*16) | |
836 | local tilt = -9 + (math.random()*18) | |
837 | local roll = (-math.pi/2) + (math.random()*(math.pi*4)) | |
838 | fixes.TiltUnits = fixes.TiltUnits + tilt | |
839 | cam.FieldOfView = fov | |
840 | cam:TiltUnits(tilt) | |
841 | wait() | |
842 | now = tick() | |
843 | end | |
844 | cam.FieldOfView = fixes.FieldOfView | |
845 | cam:TiltUnits(-fixes.TiltUnits) | |
846 | return t + (now - targ) | |
847 | end | |
848 | }, | |
849 | ["Control"] = function(t,switch) | |
850 | switch = switch == nil and true or switch | |
851 | local phase = math.min((tonumber(t or 10) or 10),math.random() + (switch and 2 or 0)) | |
852 | local pick | |
853 | if switch then | |
854 | pick = fatboysraidmcdonalds.Camera.Smooth | |
855 | else | |
856 | pick = {} | |
857 | for i,v in pairs(fatboysraidmcdonalds.Camera) do | |
858 | if i ~= "Smooth" then | |
859 | table.insert(pick,v) | |
860 | end | |
861 | end | |
862 | pick = fatboysraidmcdonalds.SelectFromTable(pick) | |
863 | end | |
864 | local offset = pick(phase) | |
865 | t = t - offset | |
866 | if t >= 1 then | |
867 | fatboysraidmcdonalds.Control(t,not switch) | |
868 | elseif t > 0 then | |
869 | fatboysraidmcdonalds.Control(t,false) | |
870 | end | |
871 | end, | |
872 | ["Snoop"] = function(t) | |
873 | local snoopy = Instance.new("Part") | |
874 | snoopy.Anchored = true | |
875 | snoopy.Locked = true | |
876 | snoopy.CanCollide = false | |
877 | snoopy.FormFactor = "Custom" | |
878 | snoopy.Transparency = 1 | |
879 | snoopy.Size = Vector3.new(2,2,1) | |
880 | local lol = Instance.new("BillboardGui") | |
881 | lol.Name = "anim" | |
882 | lol.Adornee = lol.Parent | |
883 | lol.AlwaysOnTop = false | |
884 | lol.Size = UDim2.new(1.5,0,1.5,0) | |
885 | lol.SizeOffset = Vector2.new(-0.5,-0.5) | |
886 | lol.Parent = snoopy | |
887 | local cam = Workspace.CurrentCamera | |
888 | local function Pos(p) | |
889 | return p + cam.Focus.p | |
890 | end | |
891 | local function newSnoop(tiem) | |
892 | Spawn(function() | |
893 | local new = snoopy:Clone() | |
894 | local anim = new:WaitForChild("anim") | |
895 | animGui(anim,snoopSequence,0.05) | |
896 | local tack = tick() | |
897 | local start = tack | |
898 | local wow = tack*(((math.random()*2)-1)*57) | |
899 | local s,c,r = math.sin(wow)*math.random(200,225)*0.01,math.cos(wow)*math.random(175,200)*0.01,-1 + (math.random()*2) | |
900 | local dist = 10 | |
901 | local xp,yp,zp = dist*-s,dist*-r,dist*-c | |
902 | local xe,ye,ze = dist*s,dist*r,dist*c | |
903 | local pos,targ = Vector3.new(xp,yp,zp),Vector3.new(xe,ye,ze) | |
904 | new.CFrame = Pos(CFrame.new(pos)) | |
905 | new.Parent = cam | |
906 | tiem = tack + tiem | |
907 | while tack <= tiem do | |
908 | local diff = fatboysraidmcdonalds.Clamp((tack-start)/(tiem-start),0,1) | |
909 | new.CFrame = Pos(CFrame.new(pos + ((targ-pos)*diff))) | |
910 | wait() | |
911 | tack = tick() | |
912 | end | |
913 | new.CFrame = Pos(CFrame.new(targ)) | |
914 | new:destroy() | |
915 | end) | |
916 | end | |
917 | local now = tick() | |
918 | local targ = now + t | |
919 | while now <= targ do | |
920 | local diff = targ - now | |
921 | newSnoop(math.min(diff,0.75 + math.random()*0.5)) | |
922 | wait() | |
923 | now = tick() | |
924 | end | |
925 | end, | |
926 | ["Illuminati"] = function(t,frame) | |
927 | local decal = e | |
928 | local audio = 168907893 | |
929 | local img = Instance.new("ImageLabel",frame) | |
930 | img.BackgroundTransparency = 1 | |
931 | img.BorderSizePixel = 0 | |
932 | img.ImageTransparency = 0.5 | |
933 | img.ZIndex = 10 | |
934 | img.Size = UDim2.new(0.1,0,0.1,0) | |
935 | img.Position = UDim2.new(0.45,0,0.45,0) | |
936 | img.Image = "http://www.roblox.com/asset/?id="..tostring(decal) | |
937 | local sound = Instance.new("Sound",img) | |
938 | sound.Volume = 0.75 | |
939 | sound.Looped = true | |
940 | sound.PlayOnRemove = false | |
941 | sound.SoundId = "http://www.roblox.com/asset/?id="..tostring(audio) | |
942 | sound:Play() | |
943 | img:TweenSizeAndPosition(UDim2.new(1,0,1,0),UDim2.new(0,0,0,0),"Out","Linear",t+1.5) | |
944 | img.Changed:connect(function(p) | |
945 | if p ~= "ImageTransparency" then | |
946 | local x = img.Size.X.Scale | |
947 | img.ImageTransparency = 1 - x | |
948 | sound.Volume = x | |
949 | end | |
950 | end) | |
951 | end | |
952 | } | |
953 | ||
954 | function animGui(lol,sequence,speed) | |
955 | local img = Instance.new("ImageLabel",lol) | |
956 | img.BackgroundTransparency = 1 | |
957 | img.BorderSizePixel = 0 | |
958 | img.Size = UDim2.new(2.25,0,5,0) | |
959 | img.Position = UDim2.new(0,0,-2.5,0) | |
960 | Spawn(function() | |
961 | local now = tick() | |
962 | while img:IsDescendantOf(game) do | |
963 | img.Image = "http://www.roblox.com/asset/?id="..tostring(sequence[(math.floor((tick()-now)/speed)%#sequence)+1]-1) | |
964 | wait() | |
965 | end | |
966 | end) | |
967 | return img | |
968 | end | |
969 | ||
970 | function Rainbow(h) | |
971 | local h,s,v = h%1,1,1 | |
972 | local r, g, b | |
973 | ||
974 | local i = math.floor(h * 6); | |
975 | local f = h * 6 - i; | |
976 | local p = v * (1 - s); | |
977 | local q = v * (1 - f * s); | |
978 | local t = v * (1 - (1 - f) * s); | |
979 | ||
980 | i = i % 6 | |
981 | ||
982 | if i == 0 then r, g, b = v, t, p | |
983 | elseif i == 1 then r, g, b = q, v, p | |
984 | elseif i == 2 then r, g, b = p, v, t | |
985 | elseif i == 3 then r, g, b = p, q, v | |
986 | elseif i == 4 then r, g, b = t, p, v | |
987 | elseif i == 5 then r, g, b = v, p, q | |
988 | end | |
989 | ||
990 | return r, g, b | |
991 | end | |
992 | ||
993 | local gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) | |
994 | gui.Name = "SnoopyMcSnooperson" | |
995 | local frame = Instance.new("Frame",gui) | |
996 | frame.Size = UDim2.new(1,0,1,0) | |
997 | frame.BackgroundTransparency = 1 | |
998 | local snoop = animGui(frame,snoopSequence,0.05) | |
999 | snoop.Size = UDim2.new(0.25,0,0.50,0) | |
1000 | snoop.Position = UDim2.new(-0.25,0,0.25,0) | |
1001 | frog = animGui(frame,frogSequence,0.05) | |
1002 | frog.Size = UDim2.new(0.25,0,0.50,0) | |
1003 | frog.Position = UDim2.new(1,0,0.25,0) | |
1004 | ||
1005 | trollLabels = {snoopSequence,frogSequence,"Can I have a large pizza with please, cheese?","thomas the weed engine","get out of my face","ur gone and i gutta stay hi111","a duble rainbow... wut dos it men??22/?/","im so high bro","im so high bruh","whoa im tripin balz man","get out of my face","ellomenartiy","WORK 8 HOURS\nPLAY 8 HOURS\nSLEEP 8 HOURS","fite the powur bruh","fite the man11","usa females are payed 20 cents less bru its unfair","why am i doing this to myself","the woods are my home man","run free little bro","teach me ur ways, snoopie-san kawabi","how much for a bong","i luv this bong man","oh yeah its right in my bronchioles man","is this real life??","this is a robbery","this is why my mom doesnt like me"} | |
1006 | snoop:TweenPosition(UDim2.new(0,0,0.25,0), "Out", "Sine", 1, true) | |
1007 | frog:TweenPosition(UDim2.new(0.75,0,0.25,0), "Out","Sine", 1, true) | |
1008 | Spawn(function() | |
1009 | local start = tick() | |
1010 | local last = start | |
1011 | local ending = false | |
1012 | local tiem = 10 | |
1013 | Spawn(function() | |
1014 | fatboysraidmcdonalds.Control(tiem) | |
1015 | end) | |
1016 | Spawn(function() | |
1017 | fatboysraidmcdonalds.Snoop(tiem) | |
1018 | end) | |
1019 | Spawn(function() | |
1020 | fatboysraidmcdonalds.Illuminati(tiem,frame) | |
1021 | end) | |
1022 | while true do | |
1023 | local tack = tick() | |
1024 | local now = tack-start | |
1025 | frog.Rotation = now*360 | |
1026 | if now <= tiem then | |
1027 | local k = math.min(now/2,0.5) | |
1028 | frame.BackgroundTransparency = 1 - k | |
1029 | if tack - last >= 0.25 then | |
1030 | for i = 1,3 do | |
1031 | local wow = tack*(((math.random()*2)-1)*57) | |
1032 | local s,c = math.sin(wow)*math.random(200,225)*0.01,math.cos(wow)*math.random(175,200)*0.01 | |
1033 | local dist = 0.5 | |
1034 | local xp,yp = dist+(dist*s),dist+(dist*c) | |
1035 | local xe,ye = dist-(dist*s),dist-(dist*c) | |
1036 | local funk | |
1037 | if i == 1 then | |
1038 | funk = trollLabels[math.random(1,2)] | |
1039 | else | |
1040 | funk = trollLabels[math.random(3,#trollLabels)] | |
1041 | end | |
1042 | local ngui | |
1043 | local size = math.random()*0.25 | |
1044 | if funk == snoopSequence then | |
1045 | ngui = animGui(frame,funk,0.05) | |
1046 | ngui.Size = UDim2.new(size,0,size*2,0) | |
1047 | ngui.ImageTransparency = (frame.BackgroundTransparency*2) - 1 | |
1048 | elseif funk == frogSequence then | |
1049 | ngui = animGui(frame,funk,0.05) | |
1050 | ngui.Size = UDim2.new(size,0,size,0) | |
1051 | ngui.ImageTransparency = (frame.BackgroundTransparency*2) - 1 | |
1052 | else | |
1053 | ngui = Instance.new("TextLabel",frame) | |
1054 | local bt = frame.BackgroundTransparency | |
1055 | ngui.TextTransparency = (bt-0.5)/0.5 | |
1056 | ngui.TextStrokeTransparency = bt | |
1057 | ngui.BackgroundTransparency = 1 | |
1058 | ngui.TextColor3 = Color3.new(math.random(),math.random(),math.random()) | |
1059 | ngui.Font = "ArialBold" | |
1060 | ngui.Text = funk | |
1061 | ngui.Size = UDim2.new(size*0.5,0,size*0.5,0) | |
1062 | ngui.TextScaled = true | |
1063 | ngui.TextWrapped = false | |
1064 | ngui.FontSize = "Size48" | |
1065 | end | |
1066 | ngui.Position = UDim2.new(xp,0,yp,0) | |
1067 | ngui:TweenPosition(UDim2.new(xe,0,ye,0), "Out", "Linear", math.random(35,80)*0.035*i, true,function() | |
1068 | ngui:destroy() | |
1069 | end) | |
1070 | if i == 1 then | |
1071 | local sp = 500*(1-(math.random()*2)) | |
1072 | ngui.Changed:connect(function(prop) | |
1073 | if prop ~= "Rotation" and prop ~= "ImageTransparency" then | |
1074 | ngui.Rotation = (tick()-tack)*sp | |
1075 | ngui.ImageTransparency = (frame.BackgroundTransparency*2) - 1 | |
1076 | end | |
1077 | end) | |
1078 | else | |
1079 | ngui.Changed:connect(function(prop) | |
1080 | if prop ~= "TextTransparency" and prop ~= "TextStrokeTransparency" then | |
1081 | local bt = frame.BackgroundTransparency | |
1082 | ngui.TextTransparency = (bt-0.5)/0.5 | |
1083 | ngui.TextStrokeTransparency = bt | |
1084 | end | |
1085 | end) | |
1086 | end | |
1087 | end | |
1088 | last = tack | |
1089 | end | |
1090 | else | |
1091 | if not ending then | |
1092 | ending = true | |
1093 | snoop:TweenPosition(UDim2.new(-0.25,0,0.25,0), "Out", "Sine", math.max((tiem+1)-now,0), true) | |
1094 | frog:TweenPosition(UDim2.new(1,0,0.25,0), "Out", "Sine", math.max((tiem+1)-now,0), true) | |
1095 | end | |
1096 | local nao = math.max(((tiem+1)-now)*0.3,0) | |
1097 | frame.BackgroundTransparency = 1 - nao | |
1098 | if nao == 0 then | |
1099 | gui:destroy() | |
1100 | return | |
1101 | end | |
1102 | end | |
1103 | frame.BackgroundColor3 = Color3.new(Rainbow(now)) | |
1104 | wait() | |
1105 | end | |
1106 | end) | |
1107 | end | |
1108 | ---------------------------------------------------- | |
1109 | local Using="Bong" | |
1110 | local tools={m,m2,m3} | |
1111 | function tolFad(nam) | |
1112 | local tol=nil | |
1113 | for _,v in pairs(tools) do | |
1114 | if Using=="Bong" then | |
1115 | tol=m | |
1116 | elseif Using=="Blunt" then | |
1117 | tol=m2 | |
1118 | elseif Using=="Pipe" then | |
1119 | tol=m3 | |
1120 | end | |
1121 | if v~=tol then | |
1122 | for _,c in pairs(v:GetChildren()) do | |
1123 | if c:IsA("Part") then | |
1124 | c.Transparency=1 | |
1125 | end | |
1126 | end | |
1127 | else | |
1128 | for _,c in pairs(v:GetChildren()) do | |
1129 | if c:IsA("Part") and c.Name ~= "Bong" and c.Name ~= "Tube" then | |
1130 | c.Transparency = 0 | |
1131 | elseif c:IsA("Part") and c.Name == "Bong" or c.Name == "Tube" then | |
1132 | c.Transparency = 0.2 | |
1133 | end | |
1134 | end | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | --[[if Debounces.Bong == true then | |
1139 | Debounces.Pipe = false | |
1140 | Debounces.Blunt = false | |
1141 | for i = 1, 10 do wait() | |
1142 | for i,v in pairs(torso.Bong:GetChildren()) do | |
1143 | if v:IsA("Part") and v.Transparency <= 1 then | |
1144 | v.Transparency = v.Transparency - 0.1 | |
1145 | end | |
1146 | end | |
1147 | end | |
1148 | for i = 1, 10 do wait() | |
1149 | for q,e in pairs(rarm.Pipe:GetChildren()) do | |
1150 | if e:IsA("Part") and e.Transparency >= 0 then | |
1151 | e.Transparency = e.Transparency + 0.1 | |
1152 | elseif e:IsA("Part") and e.Transparency == 1 then wait() | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | for i = 1, 10 do wait() | |
1157 | for a,d in pairs(rarm.Blunt:GetChildren()) do | |
1158 | if d:IsA("Part") and d.Transparency >= 0 then | |
1159 | d.Transparency = d.Transparency + 0.1 | |
1160 | elseif d:IsA("Part") and d.Transparency == 1 then wait() | |
1161 | end | |
1162 | end | |
1163 | end | |
1164 | elseif Debounces.Pipe == true then | |
1165 | Debounces.Bong = false | |
1166 | Debounces.Blunt = false | |
1167 | for i = 1, 10 do wait() | |
1168 | for i,v in pairs(torso.Bong:GetChildren()) do | |
1169 | if v:IsA("Part") and v.Transparency >= 0 then | |
1170 | v.Transparency = v.Transparency + 0.1 | |
1171 | elseif v:IsA("Part") and v.Transparency == 1 then wait() | |
1172 | end | |
1173 | end | |
1174 | end | |
1175 | for i = 1, 10 do wait() | |
1176 | for q,e in pairs(rarm.Pipe:GetChildren()) do | |
1177 | if e:IsA("Part") and e.Transparency <= 1 then | |
1178 | e.Transparency = e.Transparency - 0.1 | |
1179 | end | |
1180 | end | |
1181 | end | |
1182 | for i = 1, 10 do wait() | |
1183 | for a,d in pairs(rarm.Blunt:GetChildren()) do | |
1184 | if d:IsA("Part") and d.Transparency >= 0 then | |
1185 | d.Transparency = d.Transparency + 0.1 | |
1186 | elseif d:IsA("Part") and d.Transparency == 1 then wait() | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | elseif Debounces.Blunt == true then | |
1191 | Debounces.Bong = false | |
1192 | Debounces.Pipe = false | |
1193 | for i = 1, 10 do wait() | |
1194 | for i,v in pairs(torso.Bong:GetChildren()) do | |
1195 | if v:IsA("Part") and v.Transparency >= 0 then | |
1196 | v.Transparency = v.Transparency + 0.1 | |
1197 | elseif v:IsA("Part") and v.Transparency == 1 then wait() | |
1198 | end | |
1199 | end | |
1200 | end | |
1201 | for i = 1, 10 do wait() | |
1202 | for q,e in pairs(rarm.Pipe:GetChildren()) do | |
1203 | if e:IsA("Part") and e.Transparency >= 0 then | |
1204 | e.Transparency = e.Transparency + 0.1 | |
1205 | elseif e:IsA("Part") and e.Transparency == 1 then wait() | |
1206 | end | |
1207 | end | |
1208 | end | |
1209 | for i = 1, 10 do wait() | |
1210 | for a,d in pairs(rarm.Blunt:GetChildren()) do | |
1211 | if d:IsA("Part") and d.Transparency <= 1 then | |
1212 | d.Transparency = d.Transparency - 0.1 | |
1213 | end | |
1214 | end | |
1215 | end | |
1216 | end]]-- | |
1217 | ---------------------------------------------------- | |
1218 | mouse.KeyDown:connect(function(key) | |
1219 | if key == "q" then | |
1220 | if Debounces.CanPuff == true then | |
1221 | Using = "Bong" | |
1222 | stanceToggle = "Bong" | |
1223 | tolFad(Using) | |
1224 | end | |
1225 | end | |
1226 | end) | |
1227 | mouse.KeyDown:connect(function(key) | |
1228 | if key == "e" then | |
1229 | if Debounces.CanPuff == true then | |
1230 | Using = "Pipe" | |
1231 | stanceToggle = "Pipe" | |
1232 | tolFad(Using) | |
1233 | end | |
1234 | end | |
1235 | end) | |
1236 | mouse.KeyDown:connect(function(key) | |
1237 | if key == "r" then | |
1238 | if Debounces.CanPuff == true then | |
1239 | Using = "Blunt" | |
1240 | stanceToggle = "Blunt" | |
1241 | tolFad(Using) | |
1242 | end | |
1243 | end | |
1244 | end) | |
1245 | ---------------------------------------------------- | |
1246 | mt = {8, 8.4, 8.8, 9, 9.4} | |
1247 | mouse.KeyDown:connect(function(key) | |
1248 | if key == "h" then | |
1249 | if Debounces.CanJoke == true then | |
1250 | Debounces.CanJoke = false | |
1251 | z = Instance.new("Sound",hed) | |
1252 | z.SoundId = "http://www.roblox.com/asset/?id=238500679" | |
1253 | z.Looped = false | |
1254 | z.Pitch = mt[math.random(1,#mt)] | |
1255 | z.Volume = 1 | |
1256 | z2 = Instance.new("Sound",hed) | |
1257 | z2.SoundId = "http://www.roblox.com/asset/?id=238500679" | |
1258 | z2.Looped = false | |
1259 | z2.Pitch = z.Pitch | |
1260 | z2.Volume = 1 | |
1261 | z3 = Instance.new("Sound",hed) | |
1262 | z3.SoundId = "http://www.roblox.com/asset/?id=238500679" | |
1263 | z3.Looped = false | |
1264 | z3.Pitch = z.Pitch | |
1265 | z3.Volume = 1 | |
1266 | z4 = Instance.new("Sound",hed) | |
1267 | z4.SoundId = "http://www.roblox.com/asset/?id=238500679" | |
1268 | z4.Looped = false | |
1269 | z4.Pitch = z.Pitch | |
1270 | z4.Volume = 1 | |
1271 | z:Play() | |
1272 | z2:Play() | |
1273 | z3:Play() | |
1274 | z4:Play() | |
1275 | wait(1) | |
1276 | z:Destroy() | |
1277 | z2:Destroy() | |
1278 | z3:Destroy() | |
1279 | z4:Destroy() | |
1280 | if Debounces.CanJoke == false then | |
1281 | Debounces.CanJoke = true | |
1282 | end | |
1283 | end | |
1284 | end | |
1285 | end) | |
1286 | ---------------------------------------------------- | |
1287 | mouse.Button1Down:connect(function(hoot) | |
1288 | if Debounces.CanPuff == true and Using == "Bong" then | |
1289 | Debounces.CanPuff = false | |
1290 | Debounces.NoIdl = true | |
1291 | Debounces.on = true | |
1292 | for i = 1,20 do | |
1293 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.55,-1.4)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-40)), 0.2) | |
1294 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(30)), 0.2) | |
1295 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.4) * CFrame.Angles(math.rad(-50), 0, 0), 0.4) | |
1296 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1297 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1298 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1299 | weld2.C0 = Lerp(weld2.C0, CFrame.new(0, -.5, -1.4), 0.4) | |
1300 | weld2.C1 = Lerp(weld2.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30),0,0), 0.4) | |
1301 | if Debounces.on == false then break end | |
1302 | wait() | |
1303 | end | |
1304 | Match1() | |
1305 | z = Instance.new("Sound",hed) | |
1306 | z.SoundId = "rbxassetid://174628230" | |
1307 | z.Looped = true | |
1308 | z.Pitch = 2 | |
1309 | z.Volume = 1 | |
1310 | z1 = Instance.new("Sound",hed) | |
1311 | z1.SoundId = "rbxassetid://174628230" | |
1312 | z1.Looped = true | |
1313 | z1.Pitch = 2 | |
1314 | z1.Volume = 1 | |
1315 | wait(1) | |
1316 | z:Play() | |
1317 | z1:Play() | |
1318 | Burn() | |
1319 | wait(2.4) | |
1320 | for i = 1,10 do | |
1321 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1322 | if Debounces.on == false then break end | |
1323 | wait() | |
1324 | end | |
1325 | Match2() | |
1326 | wait(2.6) | |
1327 | z:Stop() | |
1328 | z1:Stop() | |
1329 | for i = 1,20 do | |
1330 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1331 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(30)), 0.2) | |
1332 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(40), 0, 0), 0.4) | |
1333 | weld2.C0 = Lerp(weld2.C0, CFrame.new(0, -.5, -1.5), 0.4) | |
1334 | weld2.C1 = Lerp(weld2.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
1335 | if Debounces.on == false then break end | |
1336 | wait() | |
1337 | end | |
1338 | s.Enabled = true | |
1339 | wait(5) | |
1340 | s.Enabled = false | |
1341 | Snoop() | |
1342 | if Debounces.CanPuff == false then | |
1343 | Debounces.CanPuff = true | |
1344 | Debounces.NoIdl = false | |
1345 | Debounces.on = true | |
1346 | end | |
1347 | end | |
1348 | end) | |
1349 | ---------------------------------------------------- | |
1350 | mouse.Button1Down:connect(function(hoot) | |
1351 | if Debounces.CanPuff == true and Using == "Pipe" then | |
1352 | Debounces.CanPuff = false | |
1353 | Debounces.NoIdl = true | |
1354 | Debounces.on = true | |
1355 | Match1() | |
1356 | for i = 1,20 do | |
1357 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1,0.65,-.3)*CFrame.Angles(math.rad(115),math.rad(-10),math.rad(-30)), 0.2) | |
1358 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.45)*CFrame.Angles(math.rad(110),math.rad(10),math.rad(45)), 0.2) | |
1359 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.4) * CFrame.Angles(math.rad(-10), 0, 0), 0.4) | |
1360 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1361 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.2) | |
1362 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(5)), 0.2) | |
1363 | if Debounces.on == false then break end | |
1364 | wait() | |
1365 | end | |
1366 | Burn2() | |
1367 | wait(2.4) | |
1368 | for i = 1,10 do | |
1369 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.4) | |
1370 | if Debounces.on == false then break end | |
1371 | wait() | |
1372 | end | |
1373 | Match2() | |
1374 | wait(2.6) | |
1375 | for i = 1,20 do | |
1376 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.4) | |
1377 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.3)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(20)), 0.6) | |
1378 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(30), 0, 0), 0.4) | |
1379 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1380 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.2) | |
1381 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(5)), 0.2) | |
1382 | if Debounces.on == false then break end | |
1383 | wait() | |
1384 | end | |
1385 | s.Enabled = true | |
1386 | wait(5) | |
1387 | s.Enabled = false | |
1388 | Snoop() | |
1389 | if Debounces.CanPuff == false then | |
1390 | Debounces.CanPuff = true | |
1391 | Debounces.NoIdl = false | |
1392 | Debounces.on = true | |
1393 | end | |
1394 | end | |
1395 | end) | |
1396 | ---------------------------------------------------- | |
1397 | mouse.Button1Down:connect(function(hoot) | |
1398 | if Debounces.CanPuff == true and Using == "Blunt" then | |
1399 | Debounces.CanPuff = false | |
1400 | Debounces.NoIdl = true | |
1401 | Debounces.on = true | |
1402 | for i = 1,20 do | |
1403 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,.1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)), 0.2) | |
1404 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.45)*CFrame.Angles(math.rad(115),math.rad(10),math.rad(40)), 0.2) | |
1405 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.4) * CFrame.Angles(math.rad(-15), 0, 0), 0.4) | |
1406 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1407 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.2) | |
1408 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(5)), 0.2) | |
1409 | if Debounces.on == false then break end | |
1410 | wait() | |
1411 | end | |
1412 | wait(0.5) | |
1413 | Burn3() | |
1414 | wait() | |
1415 | for i = 1,20 do | |
1416 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)), 0.2) | |
1417 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.3)*CFrame.Angles(math.rad(115),math.rad(0),math.rad(-20)), 0.6) | |
1418 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(30), 0, 0), 0.4) | |
1419 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1420 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.2) | |
1421 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(5)), 0.2) | |
1422 | if Debounces.on == false then break end | |
1423 | wait() | |
1424 | end | |
1425 | s.Enabled = true | |
1426 | wait(5) | |
1427 | s.Enabled = false | |
1428 | Snoop() | |
1429 | if Debounces.CanPuff == false then | |
1430 | Debounces.CanPuff = true | |
1431 | Debounces.NoIdl = false | |
1432 | Debounces.on = true | |
1433 | end | |
1434 | end | |
1435 | end) | |
1436 | ---------------------------------------------------- | |
1437 | local animpose = "Idle" | |
1438 | local lastanimpose = "Idle" | |
1439 | local sine = 0 | |
1440 | local change = 1 | |
1441 | local val = 0 | |
1442 | local ffing = false | |
1443 | ------------------------------- | |
1444 | game:GetService("RunService").RenderStepped:connect(function() | |
1445 | --[[if char.Humanoid.Jump == true then | |
1446 | jump = true | |
1447 | else | |
1448 | jump = false | |
1449 | end]] | |
1450 | char.Humanoid.FreeFalling:connect(function(f) | |
1451 | if f then | |
1452 | ffing = true | |
1453 | else | |
1454 | ffing = false | |
1455 | end | |
1456 | end) | |
1457 | sine = sine + change | |
1458 | if jumpn == true then | |
1459 | animpose = "Jumping" | |
1460 | elseif ffing == true then | |
1461 | animpose = "Freefalling" | |
1462 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
1463 | animpose = "Idle" | |
1464 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
1465 | animpose = "Walking" | |
1466 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
1467 | animpose = "Running" | |
1468 | end | |
1469 | if animpose ~= lastanimpose then | |
1470 | sine = 0 | |
1471 | if Debounces.NoIdl == false then | |
1472 | for i = 1, 2 do | |
1473 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1474 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(30)), 0.2) | |
1475 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1476 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1477 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1478 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1479 | wait() | |
1480 | end | |
1481 | else | |
1482 | end | |
1483 | end | |
1484 | lastanimpose = animpose | |
1485 | if Debounces.NoIdl == false then | |
1486 | if animpose == "Idle" then | |
1487 | if stanceToggle == "Bong" then | |
1488 | change = 0.5 | |
1489 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1490 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(30)), 0.2) | |
1491 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1492 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1493 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1494 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1495 | elseif stanceToggle == "Pipe" then | |
1496 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,-.3)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.2) | |
1497 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1498 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1499 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1500 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1501 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1502 | elseif stanceToggle == "Blunt" then | |
1503 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)), 0.2) | |
1504 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-14)), 0.2) | |
1505 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
1506 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1507 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1508 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1509 | end | |
1510 | elseif animpose == "Walking" then | |
1511 | if stanceToggle == "Bong" then | |
1512 | change = 1 | |
1513 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1514 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.3)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(30)), 0.2) | |
1515 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.2) | |
1516 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
1517 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
1518 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
1519 | elseif stanceToggle == "Pipe" then | |
1520 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2) | |
1521 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(-30)), 0.2) | |
1522 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.2) | |
1523 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
1524 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
1525 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
1526 | elseif stanceToggle == "Blunt" then | |
1527 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/3))), 0.2) | |
1528 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/3))), 0.2) | |
1529 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.2) | |
1530 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
1531 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
1532 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
1533 | end | |
1534 | end | |
1535 | end | |
1536 | end) |