SHOW:
|
|
- or go back to the newest paste.
1 | --// Script made by Cronizete | |
2 | --// Give credits. | |
3 | ||
4 | char = game.Players.LocalPlayer.Character | |
5 | plr = game.Players.LocalPlayer | |
6 | char.Archivable = true | |
7 | ||
8 | ||
9 | nvm = Instance.new('NumberValue', game.Workspace.CurrentCamera) | |
10 | nvm.Value = 0 | |
11 | nvm2 = Instance.new('NumberValue', game.Workspace.CurrentCamera) | |
12 | nvm2.Value = 1 | |
13 | nvm3 = Instance.new('NumberValue', game.Workspace.CurrentCamera) | |
14 | nvm3.Value = 0 | |
15 | nvm4 = Instance.new('NumberValue', game.Workspace.CurrentCamera) | |
16 | nvm4.Value = 0 | |
17 | ||
18 | bg1 = char:Clone() | |
19 | bg1.Archivable = false | |
20 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
21 | ||
22 | bgname1 = math.random(1, 10) | |
23 | if bgname1 == 1 then | |
24 | bg1.Name = "Takashi" | |
25 | end | |
26 | if bgname1 == 2 then | |
27 | bg1.Name = "Noki" | |
28 | end | |
29 | if bgname1 == 3 then | |
30 | bg1.Name = "Karma" | |
31 | end | |
32 | if bgname1 == 4 then | |
33 | bg1.Name = "Sagiri" | |
34 | end | |
35 | if bgname1 == 5 then | |
36 | bg1.Name = "Nubs" | |
37 | end | |
38 | if bgname1 == 6 then | |
39 | bg1.Name = "DahNoob" | |
40 | end | |
41 | if bgname1 == 7 then | |
42 | - | bg1.Name = "Scott" |
42 | + | bg1.Name = "DahRobux" |
43 | end | |
44 | if bgname1 == 8 then | |
45 | - | bg1.Name = "Jonathan" |
45 | + | bg1.Name = "DahScript" |
46 | end | |
47 | if bgname1 == 9 then | |
48 | bg1.Name = "lol" | |
49 | end | |
50 | if bgname1 == 10 then | |
51 | bg1.Name = "XD" | |
52 | end | |
53 | ||
54 | bgpoint1 = Instance.new('Part', char) | |
55 | bgpoint1.Anchored = false | |
56 | bgpoint1.CanCollide = false | |
57 | bgpoint1.Transparency = 1 | |
58 | bgpoint1.Size = Vector3.new(0.2,0.2,0.2) | |
59 | ||
60 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character) | |
61 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
62 | Weld.Part1 = bgpoint1 | |
63 | Weld.C1 = CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
64 | ||
65 | bg2 = char:Clone() | |
66 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
67 | bg2.Archivable = false | |
68 | bgname2 = math.random(1, 10) | |
69 | if bgname2 == 1 then | |
70 | - | bg2.Name = "John" |
70 | + | bg2.Name = "" |
71 | end | |
72 | if bgname2 == 2 then | |
73 | - | bg2.Name = "Max" |
73 | + | bg2.Name = "Sagiri" |
74 | end | |
75 | if bgname2 == 3 then | |
76 | - | bg2.Name = "Christian" |
76 | + | bg2.Name = "Umaru" |
77 | end | |
78 | if bgname2 == 4 then | |
79 | - | bg2.Name = "Kevin" |
79 | + | bg2.Name = "Rikka" |
80 | end | |
81 | if bgname2 == 5 then | |
82 | - | bg2.Name = "Steven" |
82 | + | bg2.Name = "Ueno" |
83 | end | |
84 | if bgname2 == 6 then | |
85 | - | bg2.Name = "Steve" |
85 | + | bg2.Name = "Taki" |
86 | end | |
87 | if bgname2 == 7 then | |
88 | - | bg2.Name = "David" |
88 | + | bg2.Name = "Kanna" |
89 | end | |
90 | if bgname2 == 8 then | |
91 | - | bg2.Name = "Michael" |
91 | + | bg2.Name = "idk" |
92 | end | |
93 | if bgname2 == 9 then | |
94 | - | bg2.Name = "Robert" |
94 | + | bg2.Name = Nibutani" |
95 | end | |
96 | if bgname2 == 10 then | |
97 | - | bg2.Name = "James" |
97 | + | bg2.Name = "Hinata" |
98 | end | |
99 | ||
100 | bgpoint2 = Instance.new('Part', char) | |
101 | bgpoint2.Anchored = false | |
102 | bgpoint2.CanCollide = false | |
103 | bgpoint2.Transparency = 1 | |
104 | bgpoint2.Size = Vector3.new(0.2,0.2,0.2) | |
105 | ||
106 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character) | |
107 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
108 | Weld.Part1 = bgpoint2 | |
109 | Weld.C1 = CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
110 | ||
111 | for _,c in pairs(bg2:GetChildren()) do | |
112 | if c:IsA('Accessory') then | |
113 | c:Destroy() | |
114 | end | |
115 | end | |
116 | ||
117 | for _,c in pairs(bg1:GetChildren()) do | |
118 | if c:IsA('Accessory') then | |
119 | c:Destroy() | |
120 | end | |
121 | end | |
122 | ||
123 | for _,c in pairs(bg2:GetChildren()) do | |
124 | if c:IsA('CharacterMesh') then | |
125 | c:Destroy() | |
126 | end | |
127 | end | |
128 | ||
129 | for _,c in pairs(bg1:GetChildren()) do | |
130 | if c:IsA('CharacterMesh') then | |
131 | c:Destroy() | |
132 | end | |
133 | end | |
134 | ||
135 | for _,c in pairs(bg2:GetChildren()) do | |
136 | if c:IsA('Shirt') then | |
137 | c:Destroy() | |
138 | shirt = Instance.new("Shirt", bg2) | |
139 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
140 | end | |
141 | end | |
142 | ||
143 | for _,c in pairs(bg1:GetChildren()) do | |
144 | if c:IsA('Pants') then | |
145 | c:Destroy() | |
146 | pants = Instance.new("Pants", bg1) | |
147 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
148 | end | |
149 | end | |
150 | ||
151 | for _,c in pairs(bg2:GetChildren()) do | |
152 | if c:IsA('Pants') then | |
153 | c:Destroy() | |
154 | pants = Instance.new("Pants", bg2) | |
155 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
156 | end | |
157 | end | |
158 | ||
159 | for _,c in pairs(bg1:GetChildren()) do | |
160 | if c:IsA('Shirt') then | |
161 | c:Destroy() | |
162 | shirt = Instance.new("Shirt", bg1) | |
163 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
164 | end | |
165 | end | |
166 | ||
167 | bg2.Parent = char | |
168 | bg1.Parent = char | |
169 | bg2.Torso.CFrame = bgpoint2.CFrame | |
170 | bg1.Torso.CFrame = bgpoint1.CFrame | |
171 | ||
172 | health = game.Players.LocalPlayer.Character.Humanoid.Health | |
173 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function() | |
174 | if game.Players.LocalPlayer.Character.Humanoid.Health < health then | |
175 | bgheal = math.random(1, 2) | |
176 | if bgheal == 1 then | |
177 | bgpoint1.CFrame = char.Torso.CFrame | |
178 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character) | |
179 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
180 | Weld.Part1 = bgpoint1 | |
181 | Weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
182 | wait(3.5) | |
183 | char.Humanoid.Health = char.Humanoid.Health + 50 | |
184 | bgpoint1.CFrame = char.Torso.CFrame * CFrame.new(0,0.1,0) | |
185 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character) | |
186 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
187 | Weld.Part1 = bgpoint1 | |
188 | Weld.C1 = CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
189 | end | |
190 | if bgheal == 2 then | |
191 | bgpoint2.CFrame = char.Torso.CFrame | |
192 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character) | |
193 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
194 | Weld.Part1 = bgpoint2 | |
195 | Weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
196 | wait(3.5) | |
197 | char.Humanoid.Health = char.Humanoid.Health + 50 | |
198 | bgpoint2.CFrame = char.Torso.CFrame * CFrame.new(0,0.1,0) | |
199 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character) | |
200 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
201 | Weld.Part1 = bgpoint2 | |
202 | Weld.C1 = CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
203 | end | |
204 | end | |
205 | health = game.Players.LocalPlayer.Character.Humanoid.Health | |
206 | end) | |
207 | ||
208 | bgskin = math.random(1, 2) | |
209 | if bgskin == 1 then | |
210 | r = bg1:getChildren() | |
211 | for i = 1, #r do | |
212 | if r[i].className == "Part" then | |
213 | r[i].BrickColor = BrickColor.new('Cool yellow') | |
214 | end | |
215 | end | |
216 | end | |
217 | if bgskin == 1 then | |
218 | a = bg2:getChildren() | |
219 | for i = 1, #a do | |
220 | if a[i].className == "Part" then | |
221 | a[i].BrickColor = BrickColor.new('CGA brown') | |
222 | end | |
223 | end | |
224 | end | |
225 | ||
226 | game.Players.LocalPlayer.Chatted:connect(function(say) | |
227 | ||
228 | if say == "disappear," then | |
229 | bg1["Head"].Transparency = 1 | |
230 | bg1["Left Arm"].Transparency = 1 | |
231 | bg1["Left Leg"].Transparency = 1 | |
232 | bg1["Right Leg"].Transparency = 1 | |
233 | bg1["Right Arm"].Transparency = 1 | |
234 | bg1["Torso"].Transparency = 1 | |
235 | bg1.Head.face.Transparency = 1 | |
236 | ||
237 | bg2["Head"].Transparency = 1 | |
238 | bg2["Left Arm"].Transparency = 1 | |
239 | bg2["Left Leg"].Transparency = 1 | |
240 | bg2["Right Leg"].Transparency = 1 | |
241 | bg2["Right Arm"].Transparency = 1 | |
242 | bg2["Torso"].Transparency = 1 | |
243 | bg2.Head.face.Transparency = 1 | |
244 | ||
245 | brick22 = Instance.new("Part") | |
246 | brick22.CanCollide = false | |
247 | brick22.Anchored = true | |
248 | brick22.CFrame = bg1.Torso.CFrame | |
249 | brick22.Transparency = 1 | |
250 | brick22.Parent = game.Workspace | |
251 | brick222 = Instance.new("Part") | |
252 | brick222.CanCollide = false | |
253 | brick222.Anchored = true | |
254 | brick222.CFrame = bg2.Torso.CFrame | |
255 | brick222.Transparency = 1 | |
256 | brick222.Parent = game.Workspace | |
257 | local sou2 = Instance.new("Sound") | |
258 | sou2.Pitch = 1 | |
259 | sou2.Volume = 1 | |
260 | sou2.SoundId = "rbxassetid://722960601" | |
261 | sou2.Parent = bg1.Torso | |
262 | sou2:Play() | |
263 | local pe2 = Instance.new("ParticleEmitter") | |
264 | pe2.Acceleration = Vector3.new(0, 8, 0) | |
265 | pe2.Lifetime = NumberRange.new(1, 1.5) | |
266 | pe2.Rate = 20000 | |
267 | pe2.RotSpeed = NumberRange.new(-30, 30) | |
268 | pe2.Rotation = NumberRange.new(0, 360) | |
269 | pe2.Size = NumberSequence.new({ | |
270 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
271 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
272 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
273 | }) | |
274 | pe2.Texture = "rbxassetid://244221440" | |
275 | pe2.Transparency = NumberSequence.new({ | |
276 | NumberSequenceKeypoint.new(0, 0, 0), | |
277 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
278 | NumberSequenceKeypoint.new(1, 1, 1) | |
279 | }) | |
280 | pe2.ZOffset = 5 | |
281 | pe2.VelocitySpread = 360 | |
282 | pe2.Parent = brick22 | |
283 | pe2.Enabled = true | |
284 | clpe2 = pe2:Clone() | |
285 | clpe2.Parent = brick222 | |
286 | wait(0.25) | |
287 | pe2.Enabled = false | |
288 | clpe2.Enabled = false | |
289 | nvm4.Value = 1 | |
290 | bg1.Humanoid.HipHeight = 10000 | |
291 | bg2.Humanoid.HipHeight = 10000 | |
292 | end | |
293 | ||
294 | if say == "appear," then | |
295 | bg1.Humanoid.HipHeight = 0 | |
296 | bg2.Humanoid.HipHeight = 0 | |
297 | bg1.Torso.CFrame = bgpoint1.CFrame | |
298 | bg2.Torso.CFrame = bgpoint2.CFrame | |
299 | ||
300 | bg1["Head"].Transparency = 0 | |
301 | bg1["Left Arm"].Transparency = 0 | |
302 | bg1["Left Leg"].Transparency = 0 | |
303 | bg1["Right Leg"].Transparency = 0 | |
304 | bg1["Right Arm"].Transparency = 0 | |
305 | bg1["Torso"].Transparency = 0 | |
306 | bg1.Head.face.Transparency = 0 | |
307 | ||
308 | bg2["Head"].Transparency = 0 | |
309 | bg2["Left Arm"].Transparency = 0 | |
310 | bg2["Left Leg"].Transparency = 0 | |
311 | bg2["Right Leg"].Transparency = 0 | |
312 | bg2["Right Arm"].Transparency = 0 | |
313 | bg2["Torso"].Transparency = 0 | |
314 | bg2.Head.face.Transparency = 0 | |
315 | ||
316 | brick223 = Instance.new("Part") | |
317 | brick223.CanCollide = false | |
318 | brick223.Anchored = true | |
319 | brick223.CFrame = bg1.Torso.CFrame | |
320 | brick223.Transparency = 1 | |
321 | brick223.Parent = game.Workspace | |
322 | brick2223 = Instance.new("Part") | |
323 | brick2223.CanCollide = false | |
324 | brick2223.Anchored = true | |
325 | brick2223.CFrame = bg2.Torso.CFrame | |
326 | brick2223.Transparency = 1 | |
327 | brick2223.Parent = game.Workspace | |
328 | local sou23 = Instance.new("Sound") | |
329 | sou23.Pitch = 1 | |
330 | sou23.Volume = 1 | |
331 | sou23.SoundId = "rbxassetid://722960601" | |
332 | sou23.Parent = bg1.Torso | |
333 | sou23:Play() | |
334 | local pe2 = Instance.new("ParticleEmitter") | |
335 | pe2.Acceleration = Vector3.new(0, 8, 0) | |
336 | pe2.Lifetime = NumberRange.new(1, 1.5) | |
337 | pe2.Rate = 20000 | |
338 | pe2.RotSpeed = NumberRange.new(-30, 30) | |
339 | pe2.Rotation = NumberRange.new(0, 360) | |
340 | pe2.Size = NumberSequence.new({ | |
341 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
342 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
343 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
344 | }) | |
345 | pe2.Texture = "rbxassetid://244221440" | |
346 | pe2.Transparency = NumberSequence.new({ | |
347 | NumberSequenceKeypoint.new(0, 0, 0), | |
348 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
349 | NumberSequenceKeypoint.new(1, 1, 1) | |
350 | }) | |
351 | pe2.ZOffset = 5 | |
352 | pe2.VelocitySpread = 360 | |
353 | pe2.Parent = brick223 | |
354 | pe2.Enabled = true | |
355 | clpe2 = pe2:Clone() | |
356 | clpe2.Parent = brick2223 | |
357 | wait(0.25) | |
358 | pe2.Enabled = false | |
359 | clpe2.Enabled = false | |
360 | nvm4.Value = 0 | |
361 | end | |
362 | ||
363 | if say == "transform, 8" then | |
364 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
365 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
366 | ||
367 | a = bg1.Head:getChildren() | |
368 | for i = 1, #a do | |
369 | if a[i].className == "Part" then | |
370 | a[i]:Destroy() | |
371 | end | |
372 | end | |
373 | ||
374 | b = bg2.Head:getChildren() | |
375 | for i = 1, #b do | |
376 | if b[i].className == "Part" then | |
377 | b[i]:Destroy() | |
378 | end | |
379 | end | |
380 | ||
381 | for _,c in pairs(bg2:GetChildren()) do | |
382 | if c:IsA('Shirt') then | |
383 | c:Destroy() | |
384 | shirt = Instance.new("Shirt", bg2) | |
385 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11380099" | |
386 | end | |
387 | end | |
388 | ||
389 | for _,c in pairs(bg1:GetChildren()) do | |
390 | if c:IsA('Pants') then | |
391 | c:Destroy() | |
392 | pants = Instance.new("Pants", bg1) | |
393 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=11380110" | |
394 | end | |
395 | end | |
396 | ||
397 | for _,c in pairs(bg2:GetChildren()) do | |
398 | if c:IsA('Pants') then | |
399 | c:Destroy() | |
400 | pants = Instance.new("Pants", bg2) | |
401 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=11380110" | |
402 | end | |
403 | end | |
404 | ||
405 | for _,c in pairs(bg1:GetChildren()) do | |
406 | if c:IsA('Shirt') then | |
407 | c:Destroy() | |
408 | shirt = Instance.new("Shirt", bg1) | |
409 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11380099" | |
410 | end | |
411 | end | |
412 | ||
413 | hair = Instance.new("Part", bg1.Head) | |
414 | hairmesh = Instance.new("SpecialMesh", hair) | |
415 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427" | |
416 | hairmesh.TextureId = "rbxassetid://0" | |
417 | hair.BrickColor = BrickColor.new('Pearl') | |
418 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
419 | hair.Transparency = 0 | |
420 | hair.CanCollide = false | |
421 | hair.Name = "plrhair" | |
422 | hair.Anchored = false | |
423 | clhair = hair:Clone() | |
424 | clhair.Parent = bg2.Head | |
425 | Weld = Instance.new("Weld", bg1) | |
426 | Weld.Part0 = bg1.Head | |
427 | Weld.Part1 = hair | |
428 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
429 | Weld = Instance.new("Weld", bg2) | |
430 | Weld.Part0 = bg2.Head | |
431 | Weld.Part1 = clhair | |
432 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
433 | ||
434 | brick = Instance.new("Part") | |
435 | brick.CanCollide = false | |
436 | brick.Anchored = true | |
437 | brick.CFrame = bg1.Torso.CFrame | |
438 | brick.Transparency = 1 | |
439 | brick.Parent = game.Workspace | |
440 | brick2 = Instance.new("Part") | |
441 | brick2.CanCollide = false | |
442 | brick2.Anchored = true | |
443 | brick2.CFrame = bg2.Torso.CFrame | |
444 | brick2.Transparency = 1 | |
445 | brick2.Parent = game.Workspace | |
446 | local sou = Instance.new("Sound") | |
447 | sou.Pitch = 1 | |
448 | sou.Volume = 1 | |
449 | sou.SoundId = "rbxassetid://722960601" | |
450 | sou.Parent = bg1.Torso | |
451 | sou:Play() | |
452 | local pe = Instance.new("ParticleEmitter") | |
453 | pe.Acceleration = Vector3.new(0, 8, 0) | |
454 | pe.Lifetime = NumberRange.new(1, 1.5) | |
455 | pe.Rate = 20000 | |
456 | pe.RotSpeed = NumberRange.new(-30, 30) | |
457 | pe.Rotation = NumberRange.new(0, 360) | |
458 | pe.Size = NumberSequence.new({ | |
459 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
460 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
461 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
462 | }) | |
463 | pe.Texture = "rbxassetid://244221440" | |
464 | pe.Transparency = NumberSequence.new({ | |
465 | NumberSequenceKeypoint.new(0, 0, 0), | |
466 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
467 | NumberSequenceKeypoint.new(1, 1, 1) | |
468 | }) | |
469 | pe.ZOffset = 5 | |
470 | pe.VelocitySpread = 360 | |
471 | pe.Parent = brick | |
472 | pe.Enabled = true | |
473 | clpe = pe:Clone() | |
474 | clpe.Parent = brick2 | |
475 | wait(0.25) | |
476 | pe.Enabled = false | |
477 | clpe.Enabled = false | |
478 | while wait() do | |
479 | if not sou.IsPlaying then | |
480 | sou:Destroy() | |
481 | end | |
482 | end | |
483 | end | |
484 | ||
485 | ||
486 | if say == "transform, 4" then | |
487 | ||
488 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
489 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
490 | ||
491 | a = bg1.Head:getChildren() | |
492 | for i = 1, #a do | |
493 | if a[i].className == "Part" then | |
494 | a[i]:Destroy() | |
495 | end | |
496 | end | |
497 | ||
498 | b = bg2.Head:getChildren() | |
499 | for i = 1, #b do | |
500 | if b[i].className == "Part" then | |
501 | b[i]:Destroy() | |
502 | end | |
503 | end | |
504 | ||
505 | for _,c in pairs(bg2:GetChildren()) do | |
506 | if c:IsA('Shirt') then | |
507 | c:Destroy() | |
508 | shirt = Instance.new("Shirt", bg2) | |
509 | shirt.ShirtTemplate = "rbxassetid://519774803" | |
510 | end | |
511 | end | |
512 | ||
513 | for _,c in pairs(bg1:GetChildren()) do | |
514 | if c:IsA('Pants') then | |
515 | c:Destroy() | |
516 | pants = Instance.new("Pants", bg1) | |
517 | pants.PantsTemplate = "rbxassetid://519782833" | |
518 | end | |
519 | end | |
520 | ||
521 | for _,c in pairs(bg2:GetChildren()) do | |
522 | if c:IsA('Pants') then | |
523 | c:Destroy() | |
524 | pants = Instance.new("Pants", bg2) | |
525 | pants.PantsTemplate = "rbxassetid://519782833" | |
526 | end | |
527 | end | |
528 | ||
529 | for _,c in pairs(bg1:GetChildren()) do | |
530 | if c:IsA('Shirt') then | |
531 | c:Destroy() | |
532 | shirt = Instance.new("Shirt", bg1) | |
533 | shirt.ShirtTemplate = "rbxassetid://519774803" | |
534 | end | |
535 | end | |
536 | ||
537 | hair = Instance.new("Part", bg1.Head) | |
538 | hairmesh = Instance.new("SpecialMesh", hair) | |
539 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427" | |
540 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1309894" | |
541 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
542 | hair.Transparency = 0 | |
543 | hair.CanCollide = false | |
544 | hair.Name = "plrhair" | |
545 | hair.Anchored = false | |
546 | clhair = hair:Clone() | |
547 | clhair.Parent = bg2.Head | |
548 | Weld = Instance.new("Weld", bg1) | |
549 | Weld.Part0 = bg1.Head | |
550 | Weld.Part1 = hair | |
551 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
552 | Weld = Instance.new("Weld", bg2) | |
553 | Weld.Part0 = bg2.Head | |
554 | Weld.Part1 = clhair | |
555 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
556 | ||
557 | brick = Instance.new("Part") | |
558 | brick.CanCollide = false | |
559 | brick.Anchored = true | |
560 | brick.CFrame = bg1.Torso.CFrame | |
561 | brick.Transparency = 1 | |
562 | brick.Parent = game.Workspace | |
563 | brick2 = Instance.new("Part") | |
564 | brick2.CanCollide = false | |
565 | brick2.Anchored = true | |
566 | brick2.CFrame = bg2.Torso.CFrame | |
567 | brick2.Transparency = 1 | |
568 | brick2.Parent = game.Workspace | |
569 | local sou = Instance.new("Sound") | |
570 | sou.Pitch = 1 | |
571 | sou.Volume = 1 | |
572 | sou.SoundId = "rbxassetid://722960601" | |
573 | sou.Parent = bg1.Torso | |
574 | sou:Play() | |
575 | local pe = Instance.new("ParticleEmitter") | |
576 | pe.Acceleration = Vector3.new(0, 8, 0) | |
577 | pe.Lifetime = NumberRange.new(1, 1.5) | |
578 | pe.Rate = 20000 | |
579 | pe.RotSpeed = NumberRange.new(-30, 30) | |
580 | pe.Rotation = NumberRange.new(0, 360) | |
581 | pe.Size = NumberSequence.new({ | |
582 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
583 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
584 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
585 | }) | |
586 | pe.Texture = "rbxassetid://244221440" | |
587 | pe.Transparency = NumberSequence.new({ | |
588 | NumberSequenceKeypoint.new(0, 0, 0), | |
589 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
590 | NumberSequenceKeypoint.new(1, 1, 1) | |
591 | }) | |
592 | pe.ZOffset = 5 | |
593 | pe.VelocitySpread = 360 | |
594 | pe.Parent = brick | |
595 | pe.Enabled = true | |
596 | clpe = pe:Clone() | |
597 | clpe.Parent = brick2 | |
598 | wait(0.25) | |
599 | pe.Enabled = false | |
600 | clpe.Enabled = false | |
601 | while wait() do | |
602 | if not sou.IsPlaying then | |
603 | sou:Destroy() | |
604 | end | |
605 | end | |
606 | end | |
607 | ||
608 | if say == "transform, 3" then | |
609 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
610 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
611 | ||
612 | ||
613 | a = bg1.Head:getChildren() | |
614 | for i = 1, #a do | |
615 | if a[i].className == "Part" then | |
616 | a[i]:Destroy() | |
617 | end | |
618 | end | |
619 | ||
620 | b = bg2.Head:getChildren() | |
621 | for i = 1, #b do | |
622 | if b[i].className == "Part" then | |
623 | b[i]:Destroy() | |
624 | end | |
625 | end | |
626 | ||
627 | for _,c in pairs(bg2:GetChildren()) do | |
628 | if c:IsA('Shirt') then | |
629 | c:Destroy() | |
630 | shirt = Instance.new("Shirt", bg2) | |
631 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=108783381" | |
632 | end | |
633 | end | |
634 | ||
635 | for _,c in pairs(bg1:GetChildren()) do | |
636 | if c:IsA('Pants') then | |
637 | c:Destroy() | |
638 | pants = Instance.new("Pants", bg1) | |
639 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=412444864" | |
640 | end | |
641 | end | |
642 | ||
643 | for _,c in pairs(bg2:GetChildren()) do | |
644 | if c:IsA('Pants') then | |
645 | c:Destroy() | |
646 | pants = Instance.new("Pants", bg2) | |
647 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=412444864" | |
648 | end | |
649 | end | |
650 | ||
651 | for _,c in pairs(bg1:GetChildren()) do | |
652 | if c:IsA('Shirt') then | |
653 | c:Destroy() | |
654 | shirt = Instance.new("Shirt", bg1) | |
655 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=108783381" | |
656 | ||
657 | hair = Instance.new("Part", bg1.Head) | |
658 | hairmesh = Instance.new("SpecialMesh", hair) | |
659 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1028788" | |
660 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1028787" | |
661 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
662 | hair.Transparency = 0 | |
663 | hair.CanCollide = false | |
664 | hair.Name = "plrhair" | |
665 | hair.Anchored = false | |
666 | clhair = hair:Clone() | |
667 | clhair.Parent = bg2.Head | |
668 | Weld = Instance.new("Weld", bg1) | |
669 | Weld.Part0 = bg1.Head | |
670 | Weld.Part1 = hair | |
671 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
672 | Weld = Instance.new("Weld", bg2) | |
673 | Weld.Part0 = bg2.Head | |
674 | Weld.Part1 = clhair | |
675 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
676 | ||
677 | ||
678 | hair3 = Instance.new("Part", bg1.Head) | |
679 | hairmesh3 = Instance.new("SpecialMesh", hair3) | |
680 | hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087" | |
681 | hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098" | |
682 | hairmesh3.Scale = Vector3.new(1, 1, 1) | |
683 | hair3.Transparency = 0 | |
684 | hair3.CanCollide = false | |
685 | hair3.Name = "plrhair" | |
686 | hair3.Anchored = false | |
687 | clhair3 = hair3:Clone() | |
688 | clhair3.Parent = bg2.Head | |
689 | Weld = Instance.new("Weld", bg1) | |
690 | Weld.Part0 = bg1.Head | |
691 | Weld.Part1 = hair3 | |
692 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
693 | Weld = Instance.new("Weld", bg2) | |
694 | Weld.Part0 = bg2.Head | |
695 | Weld.Part1 = clhair3 | |
696 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
697 | ||
698 | brick = Instance.new("Part") | |
699 | brick.CanCollide = false | |
700 | brick.Anchored = true | |
701 | brick.CFrame = bg1.Torso.CFrame | |
702 | brick.Transparency = 1 | |
703 | brick.Parent = game.Workspace | |
704 | brick2 = Instance.new("Part") | |
705 | brick2.CanCollide = false | |
706 | brick2.Anchored = true | |
707 | brick2.CFrame = bg2.Torso.CFrame | |
708 | brick2.Transparency = 1 | |
709 | brick2.Parent = game.Workspace | |
710 | local sou = Instance.new("Sound") | |
711 | sou.Pitch = 1 | |
712 | sou.Volume = 1 | |
713 | sou.SoundId = "rbxassetid://722960601" | |
714 | sou.Parent = bg1.Torso | |
715 | sou:Play() | |
716 | local pe = Instance.new("ParticleEmitter") | |
717 | pe.Acceleration = Vector3.new(0, 8, 0) | |
718 | pe.Lifetime = NumberRange.new(1, 1.5) | |
719 | pe.Rate = 20000 | |
720 | pe.RotSpeed = NumberRange.new(-30, 30) | |
721 | pe.Rotation = NumberRange.new(0, 360) | |
722 | pe.Size = NumberSequence.new({ | |
723 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
724 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
725 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
726 | }) | |
727 | pe.Texture = "rbxassetid://244221440" | |
728 | pe.Transparency = NumberSequence.new({ | |
729 | NumberSequenceKeypoint.new(0, 0, 0), | |
730 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
731 | NumberSequenceKeypoint.new(1, 1, 1) | |
732 | }) | |
733 | pe.ZOffset = 5 | |
734 | pe.VelocitySpread = 360 | |
735 | pe.Parent = brick | |
736 | pe.Enabled = true | |
737 | clpe = pe:Clone() | |
738 | clpe.Parent = brick2 | |
739 | wait(0.25) | |
740 | pe.Enabled = false | |
741 | clpe.Enabled = false | |
742 | while wait() do | |
743 | if not sou.IsPlaying then | |
744 | sou:Destroy() | |
745 | end | |
746 | end | |
747 | end | |
748 | end | |
749 | end | |
750 | ||
751 | if say == "transform, 1" then | |
752 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
753 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
754 | ||
755 | ||
756 | a = bg1.Head:getChildren() | |
757 | for i = 1, #a do | |
758 | if a[i].className == "Part" then | |
759 | a[i]:Destroy() | |
760 | end | |
761 | end | |
762 | ||
763 | b = bg2.Head:getChildren() | |
764 | for i = 1, #b do | |
765 | if b[i].className == "Part" then | |
766 | b[i]:Destroy() | |
767 | end | |
768 | end | |
769 | ||
770 | for _,c in pairs(bg2:GetChildren()) do | |
771 | if c:IsA('Shirt') then | |
772 | c:Destroy() | |
773 | shirt = Instance.new("Shirt", bg2) | |
774 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
775 | end | |
776 | end | |
777 | ||
778 | for _,c in pairs(bg1:GetChildren()) do | |
779 | if c:IsA('Pants') then | |
780 | c:Destroy() | |
781 | pants = Instance.new("Pants", bg1) | |
782 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
783 | end | |
784 | end | |
785 | ||
786 | for _,c in pairs(bg2:GetChildren()) do | |
787 | if c:IsA('Pants') then | |
788 | c:Destroy() | |
789 | pants = Instance.new("Pants", bg2) | |
790 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
791 | end | |
792 | end | |
793 | ||
794 | for _,c in pairs(bg1:GetChildren()) do | |
795 | if c:IsA('Shirt') then | |
796 | c:Destroy() | |
797 | shirt = Instance.new("Shirt", bg1) | |
798 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
799 | end | |
800 | end | |
801 | ||
802 | ||
803 | brick = Instance.new("Part") | |
804 | brick.CanCollide = false | |
805 | brick.Anchored = true | |
806 | brick.CFrame = bg1.Torso.CFrame | |
807 | brick.Transparency = 1 | |
808 | brick.Parent = game.Workspace | |
809 | brick2 = Instance.new("Part") | |
810 | brick2.CanCollide = false | |
811 | brick2.Anchored = true | |
812 | brick2.CFrame = bg2.Torso.CFrame | |
813 | brick2.Transparency = 1 | |
814 | brick2.Parent = game.Workspace | |
815 | local sou = Instance.new("Sound") | |
816 | sou.Pitch = 1 | |
817 | sou.Volume = 1 | |
818 | sou.SoundId = "rbxassetid://722960601" | |
819 | sou.Parent = bg1.Torso | |
820 | sou:Play() | |
821 | local pe = Instance.new("ParticleEmitter") | |
822 | pe.Acceleration = Vector3.new(0, 8, 0) | |
823 | pe.Lifetime = NumberRange.new(1, 1.5) | |
824 | pe.Rate = 20000 | |
825 | pe.RotSpeed = NumberRange.new(-30, 30) | |
826 | pe.Rotation = NumberRange.new(0, 360) | |
827 | pe.Size = NumberSequence.new({ | |
828 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
829 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
830 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
831 | }) | |
832 | pe.Texture = "rbxassetid://244221440" | |
833 | pe.Transparency = NumberSequence.new({ | |
834 | NumberSequenceKeypoint.new(0, 0, 0), | |
835 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
836 | NumberSequenceKeypoint.new(1, 1, 1) | |
837 | }) | |
838 | pe.ZOffset = 5 | |
839 | pe.VelocitySpread = 360 | |
840 | pe.Parent = brick | |
841 | pe.Enabled = true | |
842 | clpe = pe:Clone() | |
843 | clpe.Parent = brick2 | |
844 | wait(0.25) | |
845 | pe.Enabled = false | |
846 | clpe.Enabled = false | |
847 | while wait() do | |
848 | if not sou.IsPlaying then | |
849 | sou:Destroy() | |
850 | end | |
851 | end | |
852 | end | |
853 | ||
854 | if say == "transform, 7" then | |
855 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=119839939" | |
856 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=119839939" | |
857 | ||
858 | a = bg1.Head:getChildren() | |
859 | for i = 1, #a do | |
860 | if a[i].className == "Part" then | |
861 | a[i]:Destroy() | |
862 | end | |
863 | end | |
864 | ||
865 | b = bg2.Head:getChildren() | |
866 | for i = 1, #b do | |
867 | if b[i].className == "Part" then | |
868 | b[i]:Destroy() | |
869 | end | |
870 | end | |
871 | ||
872 | for _,c in pairs(bg2:GetChildren()) do | |
873 | if c:IsA('Shirt') then | |
874 | c:Destroy() | |
875 | shirt = Instance.new("Shirt", bg2) | |
876 | shirt.ShirtTemplate = "rbxassetid://575169492" | |
877 | end | |
878 | end | |
879 | ||
880 | for _,c in pairs(bg1:GetChildren()) do | |
881 | if c:IsA('Pants') then | |
882 | c:Destroy() | |
883 | pants = Instance.new("Pants", bg1) | |
884 | pants.PantsTemplate = "rbxassetid://768690244" | |
885 | end | |
886 | end | |
887 | ||
888 | for _,c in pairs(bg2:GetChildren()) do | |
889 | if c:IsA('Pants') then | |
890 | c:Destroy() | |
891 | pants = Instance.new("Pants", bg2) | |
892 | pants.PantsTemplate = "rbxassetid://768690244" | |
893 | end | |
894 | end | |
895 | ||
896 | for _,c in pairs(bg1:GetChildren()) do | |
897 | if c:IsA('Shirt') then | |
898 | c:Destroy() | |
899 | shirt = Instance.new("Shirt", bg1) | |
900 | shirt.ShirtTemplate = "rbxassetid://575169492" | |
901 | end | |
902 | end | |
903 | ||
904 | hair = Instance.new("Part", bg1.Head) | |
905 | hairmesh = Instance.new("SpecialMesh", hair) | |
906 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=14394711" | |
907 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=14394687" | |
908 | hairmesh.Scale = Vector3.new(1, 0.95, 0.85) | |
909 | hair.Transparency = 0 | |
910 | hair.CanCollide = false | |
911 | hair.Name = "plrhair" | |
912 | hair.Anchored = false | |
913 | clhair = hair:Clone() | |
914 | clhair.Parent = bg2.Head | |
915 | Weld = Instance.new("Weld", bg1) | |
916 | Weld.Part0 = bg1.Head | |
917 | Weld.Part1 = hair | |
918 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
919 | Weld = Instance.new("Weld", bg2) | |
920 | Weld.Part0 = bg2.Head | |
921 | Weld.Part1 = clhair | |
922 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
923 | ||
924 | brick = Instance.new("Part") | |
925 | brick.CanCollide = false | |
926 | brick.Anchored = true | |
927 | brick.CFrame = bg1.Torso.CFrame | |
928 | brick.Transparency = 1 | |
929 | brick.Parent = game.Workspace | |
930 | brick2 = Instance.new("Part") | |
931 | brick2.CanCollide = false | |
932 | brick2.Anchored = true | |
933 | brick2.CFrame = bg2.Torso.CFrame | |
934 | brick2.Transparency = 1 | |
935 | brick2.Parent = game.Workspace | |
936 | local sou = Instance.new("Sound") | |
937 | sou.Pitch = 1 | |
938 | sou.Volume = 1 | |
939 | sou.SoundId = "rbxassetid://722960601" | |
940 | sou.Parent = bg1.Torso | |
941 | sou:Play() | |
942 | local pe = Instance.new("ParticleEmitter") | |
943 | pe.Acceleration = Vector3.new(0, 8, 0) | |
944 | pe.Lifetime = NumberRange.new(1, 1.5) | |
945 | pe.Rate = 20000 | |
946 | pe.RotSpeed = NumberRange.new(-30, 30) | |
947 | pe.Rotation = NumberRange.new(0, 360) | |
948 | pe.Size = NumberSequence.new({ | |
949 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
950 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
951 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
952 | }) | |
953 | pe.Texture = "rbxassetid://244221440" | |
954 | pe.Transparency = NumberSequence.new({ | |
955 | NumberSequenceKeypoint.new(0, 0, 0), | |
956 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
957 | NumberSequenceKeypoint.new(1, 1, 1) | |
958 | }) | |
959 | pe.ZOffset = 5 | |
960 | pe.VelocitySpread = 360 | |
961 | pe.Parent = brick | |
962 | pe.Enabled = true | |
963 | clpe = pe:Clone() | |
964 | clpe.Parent = brick2 | |
965 | wait(0.25) | |
966 | pe.Enabled = false | |
967 | clpe.Enabled = false | |
968 | while wait() do | |
969 | if not sou.IsPlaying then | |
970 | sou:Destroy() | |
971 | end | |
972 | end | |
973 | end | |
974 | ||
975 | if say == "transform, 6" then | |
976 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
977 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
978 | ||
979 | a = bg1.Head:getChildren() | |
980 | for i = 1, #a do | |
981 | if a[i].className == "Part" then | |
982 | a[i]:Destroy() | |
983 | end | |
984 | end | |
985 | ||
986 | b = bg2.Head:getChildren() | |
987 | for i = 1, #b do | |
988 | if b[i].className == "Part" then | |
989 | b[i]:Destroy() | |
990 | end | |
991 | end | |
992 | ||
993 | for _,c in pairs(bg2:GetChildren()) do | |
994 | if c:IsA('Shirt') then | |
995 | c:Destroy() | |
996 | shirt = Instance.new("Shirt", bg2) | |
997 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4904066" | |
998 | end | |
999 | end | |
1000 | ||
1001 | for _,c in pairs(bg1:GetChildren()) do | |
1002 | if c:IsA('Pants') then | |
1003 | c:Destroy() | |
1004 | pants = Instance.new("Pants", bg1) | |
1005 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832" | |
1006 | end | |
1007 | end | |
1008 | ||
1009 | for _,c in pairs(bg2:GetChildren()) do | |
1010 | if c:IsA('Pants') then | |
1011 | c:Destroy() | |
1012 | pants = Instance.new("Pants", bg2) | |
1013 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832" | |
1014 | end | |
1015 | end | |
1016 | ||
1017 | for _,c in pairs(bg1:GetChildren()) do | |
1018 | if c:IsA('Shirt') then | |
1019 | c:Destroy() | |
1020 | shirt = Instance.new("Shirt", bg1) | |
1021 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4904066" | |
1022 | end | |
1023 | end | |
1024 | ||
1025 | ||
1026 | hair = Instance.new("Part", bg1.Head) | |
1027 | hairmesh = Instance.new("SpecialMesh", hair) | |
1028 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427" | |
1029 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1309894" | |
1030 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
1031 | hair.Transparency = 0 | |
1032 | hair.CanCollide = false | |
1033 | hair.Name = "plrhair" | |
1034 | hair.Anchored = false | |
1035 | clhair = hair:Clone() | |
1036 | clhair.Parent = bg2.Head | |
1037 | Weld = Instance.new("Weld", bg1) | |
1038 | Weld.Part0 = bg1.Head | |
1039 | Weld.Part1 = hair | |
1040 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1041 | Weld = Instance.new("Weld", bg2) | |
1042 | Weld.Part0 = bg2.Head | |
1043 | Weld.Part1 = clhair | |
1044 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1045 | ||
1046 | ||
1047 | hair = Instance.new("Part", bg1.Head) | |
1048 | hairmesh = Instance.new("SpecialMesh", hair) | |
1049 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=25648271" | |
1050 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=28664001" | |
1051 | hairmesh.Scale = Vector3.new(1.3, 1.35, 1.3) | |
1052 | hair.Transparency = 0 | |
1053 | hair.CanCollide = false | |
1054 | hair.Name = "plrhair" | |
1055 | hair.Anchored = false | |
1056 | clhair = hair:Clone() | |
1057 | clhair.Parent = bg2.Head | |
1058 | Weld = Instance.new("Weld", bg1) | |
1059 | Weld.Part0 = bg1.Head | |
1060 | Weld.Part1 = hair | |
1061 | Weld.C1 = CFrame.new(0, -0.60, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1062 | Weld = Instance.new("Weld", bg2) | |
1063 | Weld.Part0 = bg2.Head | |
1064 | Weld.Part1 = clhair | |
1065 | Weld.C1 = CFrame.new(0, -0.60, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1066 | ||
1067 | brick = Instance.new("Part") | |
1068 | brick.CanCollide = false | |
1069 | brick.Anchored = true | |
1070 | brick.CFrame = bg1.Torso.CFrame | |
1071 | brick.Transparency = 1 | |
1072 | brick.Parent = game.Workspace | |
1073 | brick2 = Instance.new("Part") | |
1074 | brick2.CanCollide = false | |
1075 | brick2.Anchored = true | |
1076 | brick2.CFrame = bg2.Torso.CFrame | |
1077 | brick2.Transparency = 1 | |
1078 | brick2.Parent = game.Workspace | |
1079 | local sou = Instance.new("Sound") | |
1080 | sou.Pitch = 1 | |
1081 | sou.Volume = 1 | |
1082 | sou.SoundId = "rbxassetid://722960601" | |
1083 | sou.Parent = bg1.Torso | |
1084 | sou:Play() | |
1085 | local pe = Instance.new("ParticleEmitter") | |
1086 | pe.Acceleration = Vector3.new(0, 8, 0) | |
1087 | pe.Lifetime = NumberRange.new(1, 1.5) | |
1088 | pe.Rate = 20000 | |
1089 | pe.RotSpeed = NumberRange.new(-30, 30) | |
1090 | pe.Rotation = NumberRange.new(0, 360) | |
1091 | pe.Size = NumberSequence.new({ | |
1092 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
1093 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
1094 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
1095 | }) | |
1096 | pe.Texture = "rbxassetid://244221440" | |
1097 | pe.Transparency = NumberSequence.new({ | |
1098 | NumberSequenceKeypoint.new(0, 0, 0), | |
1099 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
1100 | NumberSequenceKeypoint.new(1, 1, 1) | |
1101 | }) | |
1102 | pe.ZOffset = 5 | |
1103 | pe.VelocitySpread = 360 | |
1104 | pe.Parent = brick | |
1105 | pe.Enabled = true | |
1106 | clpe = pe:Clone() | |
1107 | clpe.Parent = brick2 | |
1108 | wait(0.25) | |
1109 | pe.Enabled = false | |
1110 | clpe.Enabled = false | |
1111 | while wait() do | |
1112 | if not sou.IsPlaying then | |
1113 | sou:Destroy() | |
1114 | end | |
1115 | end | |
1116 | end | |
1117 | ||
1118 | if say == "transform, 5" then | |
1119 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
1120 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
1121 | ||
1122 | a = bg1.Head:getChildren() | |
1123 | for i = 1, #a do | |
1124 | if a[i].className == "Part" then | |
1125 | a[i]:Destroy() | |
1126 | end | |
1127 | end | |
1128 | ||
1129 | b = bg2.Head:getChildren() | |
1130 | for i = 1, #b do | |
1131 | if b[i].className == "Part" then | |
1132 | b[i]:Destroy() | |
1133 | end | |
1134 | end | |
1135 | ||
1136 | for _,c in pairs(bg2:GetChildren()) do | |
1137 | if c:IsA('Shirt') then | |
1138 | c:Destroy() | |
1139 | shirt = Instance.new("Shirt", bg2) | |
1140 | shirt.ShirtTemplate = "rbxassetid://146364138" | |
1141 | end | |
1142 | end | |
1143 | ||
1144 | for _,c in pairs(bg1:GetChildren()) do | |
1145 | if c:IsA('Pants') then | |
1146 | c:Destroy() | |
1147 | pants = Instance.new("Pants", bg1) | |
1148 | pants.PantsTemplate = "rbxassetid://195399271" | |
1149 | end | |
1150 | end | |
1151 | ||
1152 | for _,c in pairs(bg2:GetChildren()) do | |
1153 | if c:IsA('Pants') then | |
1154 | c:Destroy() | |
1155 | pants = Instance.new("Pants", bg2) | |
1156 | pants.PantsTemplate = "rbxassetid://195399271" | |
1157 | end | |
1158 | end | |
1159 | ||
1160 | for _,c in pairs(bg1:GetChildren()) do | |
1161 | if c:IsA('Shirt') then | |
1162 | c:Destroy() | |
1163 | shirt = Instance.new("Shirt", bg1) | |
1164 | shirt.ShirtTemplate = "rbxassetid://175602621" | |
1165 | end | |
1166 | end | |
1167 | ||
1168 | hair = Instance.new("Part", bg1.Head) | |
1169 | hairmesh = Instance.new("SpecialMesh", hair) | |
1170 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=16190466" | |
1171 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=59293792" | |
1172 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
1173 | hair.Transparency = 0 | |
1174 | hair.CanCollide = false | |
1175 | hair.Name = "plrhair" | |
1176 | hair.Anchored = false | |
1177 | clhair = hair:Clone() | |
1178 | clhair.Parent = bg2.Head | |
1179 | clhair.Mesh.TextureId = "http://www.roblox.com/asset/?id=114723589" | |
1180 | clhair.Mesh.MeshId = "http://www.roblox.com/asset/?id=16101994" | |
1181 | clhair.Mesh.Scale = Vector3.new(1.02,1.02,1.02) | |
1182 | Weld = Instance.new("Weld", bg1) | |
1183 | Weld.Part0 = bg1.Head | |
1184 | Weld.Part1 = hair | |
1185 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1186 | Weld = Instance.new("Weld", bg2) | |
1187 | Weld.Part0 = bg2.Head | |
1188 | Weld.Part1 = clhair | |
1189 | Weld.C1 = CFrame.new(0, -0.14, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1190 | ||
1191 | hair3 = Instance.new("Part", bg1.Head) | |
1192 | hairmesh3 = Instance.new("SpecialMesh", hair3) | |
1193 | hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087" | |
1194 | hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098" | |
1195 | hairmesh3.Scale = Vector3.new(1, 1, 1) | |
1196 | hair3.Transparency = 0 | |
1197 | hair3.CanCollide = false | |
1198 | hair3.Name = "plrhair" | |
1199 | hair3.Anchored = false | |
1200 | clhair3 = hair3:Clone() | |
1201 | clhair3.Parent = bg2.Head | |
1202 | Weld = Instance.new("Weld", bg1) | |
1203 | Weld.Part0 = bg1.Head | |
1204 | Weld.Part1 = hair3 | |
1205 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1206 | Weld = Instance.new("Weld", bg2) | |
1207 | Weld.Part0 = bg2.Head | |
1208 | Weld.Part1 = clhair3 | |
1209 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1210 | ||
1211 | brick = Instance.new("Part") | |
1212 | brick.CanCollide = false | |
1213 | brick.Anchored = true | |
1214 | brick.CFrame = bg1.Torso.CFrame | |
1215 | brick.Transparency = 1 | |
1216 | brick.Parent = game.Workspace | |
1217 | brick2 = Instance.new("Part") | |
1218 | brick2.CanCollide = false | |
1219 | brick2.Anchored = true | |
1220 | brick2.CFrame = bg2.Torso.CFrame | |
1221 | brick2.Transparency = 1 | |
1222 | brick2.Parent = game.Workspace | |
1223 | local sou = Instance.new("Sound") | |
1224 | sou.Pitch = 1 | |
1225 | sou.Volume = 1 | |
1226 | sou.SoundId = "rbxassetid://722960601" | |
1227 | sou.Parent = bg1.Torso | |
1228 | sou:Play() | |
1229 | local pe = Instance.new("ParticleEmitter") | |
1230 | pe.Acceleration = Vector3.new(0, 8, 0) | |
1231 | pe.Lifetime = NumberRange.new(1, 1.5) | |
1232 | pe.Rate = 20000 | |
1233 | pe.RotSpeed = NumberRange.new(-30, 30) | |
1234 | pe.Rotation = NumberRange.new(0, 360) | |
1235 | pe.Size = NumberSequence.new({ | |
1236 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
1237 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
1238 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
1239 | }) | |
1240 | pe.Texture = "rbxassetid://244221440" | |
1241 | pe.Transparency = NumberSequence.new({ | |
1242 | NumberSequenceKeypoint.new(0, 0, 0), | |
1243 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
1244 | NumberSequenceKeypoint.new(1, 1, 1) | |
1245 | }) | |
1246 | pe.ZOffset = 5 | |
1247 | pe.VelocitySpread = 360 | |
1248 | pe.Parent = brick | |
1249 | pe.Enabled = true | |
1250 | clpe = pe:Clone() | |
1251 | clpe.Parent = brick2 | |
1252 | wait(0.25) | |
1253 | pe.Enabled = false | |
1254 | clpe.Enabled = false | |
1255 | while wait() do | |
1256 | if not sou.IsPlaying then | |
1257 | sou:Destroy() | |
1258 | end | |
1259 | end | |
1260 | end | |
1261 | ||
1262 | ||
1263 | if say == "transform, 2" then | |
1264 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
1265 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
1266 | ||
1267 | a = bg1.Head:getChildren() | |
1268 | for i = 1, #a do | |
1269 | if a[i].className == "Part" then | |
1270 | a[i]:Destroy() | |
1271 | end | |
1272 | end | |
1273 | ||
1274 | b = bg2.Head:getChildren() | |
1275 | for i = 1, #b do | |
1276 | if b[i].className == "Part" then | |
1277 | b[i]:Destroy() | |
1278 | end | |
1279 | end | |
1280 | hair = Instance.new("Part", bg1.Head) | |
1281 | hairmesh = Instance.new("SpecialMesh", hair) | |
1282 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=28035864" | |
1283 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=28035854" | |
1284 | hairmesh.Scale = Vector3.new(1.03, 1.03, 0.98) | |
1285 | hair.Transparency = 0 | |
1286 | hair.CanCollide = false | |
1287 | hair.Name = "plrhair" | |
1288 | hair.Anchored = false | |
1289 | clhair = hair:Clone() | |
1290 | clhair.Parent = bg2.Head | |
1291 | Weld = Instance.new("Weld", bg1) | |
1292 | Weld.Part0 = bg1.Head | |
1293 | Weld.Part1 = hair | |
1294 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1295 | Weld = Instance.new("Weld", bg2) | |
1296 | Weld.Part0 = bg2.Head | |
1297 | Weld.Part1 = clhair | |
1298 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1299 | ||
1300 | hair3 = Instance.new("Part", bg1.Head) | |
1301 | hairmesh3 = Instance.new("SpecialMesh", hair3) | |
1302 | hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087" | |
1303 | hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098" | |
1304 | hairmesh3.Scale = Vector3.new(1, 1, 1) | |
1305 | hair3.Transparency = 0 | |
1306 | hair3.CanCollide = false | |
1307 | hair3.Name = "plrhair" | |
1308 | hair3.Anchored = false | |
1309 | clhair3 = hair3:Clone() | |
1310 | clhair3.Parent = bg2.Head | |
1311 | Weld = Instance.new("Weld", bg1) | |
1312 | Weld.Part0 = bg1.Head | |
1313 | Weld.Part1 = hair3 | |
1314 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1315 | Weld = Instance.new("Weld", bg2) | |
1316 | Weld.Part0 = bg2.Head | |
1317 | Weld.Part1 = clhair3 | |
1318 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1319 | ||
1320 | for _,c in pairs(bg1:GetChildren()) do | |
1321 | if c:IsA('Pants') then | |
1322 | c:Destroy() | |
1323 | pants = Instance.new("Pants", bg1) | |
1324 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=747111515" | |
1325 | end | |
1326 | end | |
1327 | ||
1328 | for _,c in pairs(bg1:GetChildren()) do | |
1329 | if c:IsA('Shirt') then | |
1330 | c:Destroy() | |
1331 | shirt = Instance.new("Shirt", bg1) | |
1332 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153259531" | |
1333 | end | |
1334 | end | |
1335 | ||
1336 | for _,c in pairs(bg2:GetChildren()) do | |
1337 | if c:IsA('Pants') then | |
1338 | c:Destroy() | |
1339 | pants = Instance.new("Pants", bg2) | |
1340 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=747111515" | |
1341 | end | |
1342 | end | |
1343 | ||
1344 | for _,c in pairs(bg2:GetChildren()) do | |
1345 | if c:IsA('Shirt') then | |
1346 | c:Destroy() | |
1347 | shirt = Instance.new("Shirt", bg2) | |
1348 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153259531" | |
1349 | end | |
1350 | end | |
1351 | ||
1352 | brick = Instance.new("Part") | |
1353 | brick.CanCollide = false | |
1354 | brick.Anchored = true | |
1355 | brick.CFrame = bg1.Torso.CFrame | |
1356 | brick.Transparency = 1 | |
1357 | brick.Parent = game.Workspace | |
1358 | brick2 = Instance.new("Part") | |
1359 | brick2.CanCollide = false | |
1360 | brick2.Anchored = true | |
1361 | brick2.CFrame = bg2.Torso.CFrame | |
1362 | brick2.Transparency = 1 | |
1363 | brick2.Parent = game.Workspace | |
1364 | local sou = Instance.new("Sound") | |
1365 | sou.Pitch = 1 | |
1366 | sou.Volume = 1 | |
1367 | sou.SoundId = "rbxassetid://722960601" | |
1368 | sou.Parent = bg1.Torso | |
1369 | sou:Play() | |
1370 | local pe = Instance.new("ParticleEmitter") | |
1371 | pe.Acceleration = Vector3.new(0, 8, 0) | |
1372 | pe.Lifetime = NumberRange.new(1, 1.5) | |
1373 | pe.Rate = 20000 | |
1374 | pe.RotSpeed = NumberRange.new(-30, 30) | |
1375 | pe.Rotation = NumberRange.new(0, 360) | |
1376 | pe.Size = NumberSequence.new({ | |
1377 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
1378 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
1379 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
1380 | }) | |
1381 | pe.Texture = "rbxassetid://244221440" | |
1382 | pe.Transparency = NumberSequence.new({ | |
1383 | NumberSequenceKeypoint.new(0, 0, 0), | |
1384 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
1385 | NumberSequenceKeypoint.new(1, 1, 1) | |
1386 | }) | |
1387 | pe.ZOffset = 5 | |
1388 | pe.VelocitySpread = 360 | |
1389 | pe.Parent = brick | |
1390 | pe.Enabled = true | |
1391 | clpe = pe:Clone() | |
1392 | clpe.Parent = brick2 | |
1393 | wait(0.25) | |
1394 | pe.Enabled = false | |
1395 | clpe.Enabled = false | |
1396 | while wait() do | |
1397 | if not sou.IsPlaying then | |
1398 | sou:Destroy() | |
1399 | end | |
1400 | end | |
1401 | end | |
1402 | ||
1403 | if say == "guns, out" then | |
1404 | nvm.Value = 1 | |
1405 | Mouse = plr:GetMouse() | |
1406 | ||
1407 | Mouse.Button1Down:connect(function() | |
1408 | if nvm.Value == 1 then | |
1409 | randomg = math.random(1,2) | |
1410 | if randomg == 1 then | |
1411 | bullet = Instance.new('Part', game.Workspace) | |
1412 | bullet.Touched:connect(function(hit) | |
1413 | if hit.Parent:FindFirstChild("Humanoid") then | |
1414 | hit.Parent:BreakJoints() | |
1415 | end | |
1416 | end) | |
1417 | bullet.Anchored = false | |
1418 | bullet.CanCollide = false | |
1419 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
1420 | bullet.BrickColor = BrickColor.new('Really black') | |
1421 | bullet.CFrame = Mouse.Hit | |
1422 | bullet.Name = 'Bullet' | |
1423 | game.Debris:AddItem(bullet, 1) | |
1424 | local shoot=Instance.new("Sound", bg1["Right Arm"]) | |
1425 | shoot.SoundId="rbxassetid://180955656" | |
1426 | shoot:Play() | |
1427 | bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p) | |
1428 | end | |
1429 | if randomg == 2 then | |
1430 | bullet = Instance.new('Part', game.Workspace) | |
1431 | bullet.Touched:connect(function(hit) | |
1432 | if hit.Parent:FindFirstChild("Humanoid") then | |
1433 | hit.Parent:BreakJoints() | |
1434 | end | |
1435 | end) | |
1436 | bullet.Anchored = false | |
1437 | bullet.CanCollide = false | |
1438 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
1439 | bullet.BrickColor = BrickColor.new('Really black') | |
1440 | bullet.CFrame = Mouse.Hit | |
1441 | bullet.Name = 'Bullet' | |
1442 | game.Debris:AddItem(bullet2, 1) | |
1443 | local shoot2 = Instance.new("Sound", bg2["Right Arm"]) | |
1444 | shoot2.SoundId="rbxassetid://180955656" | |
1445 | shoot2:Play() | |
1446 | bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p) | |
1447 | end | |
1448 | end | |
1449 | end) | |
1450 | ||
1451 | part1 = Instance.new("Part") | |
1452 | part1.Parent = char | |
1453 | part1.Transparency = 0 | |
1454 | part1.BrickColor = BrickColor.new('Really black') | |
1455 | part1.TopSurface = 0 | |
1456 | part1.BottomSurface = 0 | |
1457 | part1.CanCollide = false | |
1458 | part1.Anchored = false | |
1459 | gun = Instance.new("SpecialMesh", part1) | |
1460 | gun.MeshId = "rbxassetid://4372594" | |
1461 | gun.Scale = Vector3.new(1, 1, 1) | |
1462 | part1.CFrame = bg1["Right Arm"].CFrame * CFrame.new(0, 1, 1.75) | |
1463 | Weld5 = Instance.new("Weld", bg1) | |
1464 | Weld5.Part0 = bg1["Right Arm"] | |
1465 | Weld5.Part1 = part1 | |
1466 | Weld5.C1 = CFrame.Angles(math.rad(-83),math.rad(180),math.rad(180)) * CFrame.new(0, 1.50, 0.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1467 | ||
1468 | part2 = Instance.new("Part") | |
1469 | part2.Parent = char | |
1470 | part2.Transparency = 0 | |
1471 | part2.BrickColor = BrickColor.new('Really black') | |
1472 | part2.TopSurface = 0 | |
1473 | part2.BottomSurface = 0 | |
1474 | part2.CanCollide = false | |
1475 | part2.Anchored = false | |
1476 | gun2 = Instance.new("SpecialMesh", part2) | |
1477 | gun2.MeshId = "rbxassetid://4372594" | |
1478 | gun2.Scale = Vector3.new(1, 1, 1) | |
1479 | part2.CFrame = bg2["Right Arm"].CFrame * CFrame.new(0, 1, 1.75) | |
1480 | Weld10 = Instance.new("Weld", bg1) | |
1481 | Weld10.Part0 = bg2["Right Arm"] | |
1482 | Weld10.Part1 = part2 | |
1483 | Weld10.C1 = CFrame.Angles(math.rad(-83),math.rad(180),math.rad(180)) * CFrame.new(0, 1.50, 0.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1484 | ||
1485 | charbg1 = bg1 | |
1486 | arm = {charbg1["Right Arm"]} | |
1487 | charbg1.Torso["Right Shoulder"].Archivable = true | |
1488 | mc = charbg1.Torso["Right Shoulder"]:Clone() | |
1489 | weld = Instance.new("Weld", arm[1]) | |
1490 | weld.Part0 = charbg1.Torso | |
1491 | weld.Part1 = weld.Parent | |
1492 | weld.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0) | |
1493 | ||
1494 | charbg2 = bg2 | |
1495 | arm = {charbg2["Right Arm"]} | |
1496 | charbg2.Torso["Right Shoulder"].Archivable = true | |
1497 | mc3 = charbg2.Torso["Right Shoulder"]:Clone() | |
1498 | weld12 = Instance.new("Weld", arm[1]) | |
1499 | weld12.Part0 = charbg2.Torso | |
1500 | weld12.Part1 = weld12.Parent | |
1501 | weld12.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0) | |
1502 | end | |
1503 | ||
1504 | if say == "dance," then | |
1505 | dance1 = math.random(1,7) | |
1506 | if dance1 == 1 then | |
1507 | local animation = Instance.new("Animation") | |
1508 | animation.AnimationId = "rbxassetid://27789359" | |
1509 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1510 | animTrack:Play() | |
1511 | end | |
1512 | if dance1 == 2 then | |
1513 | local animation = Instance.new("Animation") | |
1514 | animation.AnimationId = "rbxassetid://30196114" | |
1515 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1516 | animTrack:Play() | |
1517 | end | |
1518 | if dance1 == 3 then | |
1519 | local animation = Instance.new("Animation") | |
1520 | animation.AnimationId = "rbxassetid://248263260" | |
1521 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1522 | animTrack:Play() | |
1523 | end | |
1524 | if dance1 == 4 then | |
1525 | local animation = Instance.new("Animation") | |
1526 | animation.AnimationId = "rbxassetid://45834924" | |
1527 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1528 | animTrack:Play() | |
1529 | end | |
1530 | if dance1 == 5 then | |
1531 | local animation = Instance.new("Animation") | |
1532 | animation.AnimationId = "rbxassetid://33796059" | |
1533 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1534 | animTrack:Play() | |
1535 | end | |
1536 | if dance1 == 6 then | |
1537 | local animation = Instance.new("Animation") | |
1538 | animation.AnimationId = "rbxassetid://28488254" | |
1539 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1540 | animTrack:Play() | |
1541 | end | |
1542 | if dance1 == 7 then | |
1543 | local animation = Instance.new("Animation") | |
1544 | animation.AnimationId = "rbxassetid://52155728" | |
1545 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1546 | animTrack:Play() | |
1547 | end | |
1548 | ||
1549 | dance2 = math.random(1,7) | |
1550 | if dance2 == 1 then | |
1551 | local animation = Instance.new("Animation") | |
1552 | animation.AnimationId = "rbxassetid://27789359" | |
1553 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1554 | animTrack:Play() | |
1555 | end | |
1556 | if dance2 == 2 then | |
1557 | local animation = Instance.new("Animation") | |
1558 | animation.AnimationId = "rbxassetid://30196114" | |
1559 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1560 | animTrack:Play() | |
1561 | end | |
1562 | if dance2 == 3 then | |
1563 | local animation = Instance.new("Animation") | |
1564 | animation.AnimationId = "rbxassetid://248263260" | |
1565 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1566 | animTrack:Play() | |
1567 | end | |
1568 | if dance2 == 4 then | |
1569 | local animation = Instance.new("Animation") | |
1570 | animation.AnimationId = "rbxassetid://45834924" | |
1571 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1572 | animTrack:Play() | |
1573 | end | |
1574 | if dance2 == 5 then | |
1575 | local animation = Instance.new("Animation") | |
1576 | animation.AnimationId = "rbxassetid://33796059" | |
1577 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1578 | animTrack:Play() | |
1579 | end | |
1580 | if dance2 == 6 then | |
1581 | local animation = Instance.new("Animation") | |
1582 | animation.AnimationId = "rbxassetid://28488254" | |
1583 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1584 | animTrack:Play() | |
1585 | end | |
1586 | if dance2 == 7 then | |
1587 | local animation = Instance.new("Animation") | |
1588 | animation.AnimationId = "rbxassetid://52155728" | |
1589 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1590 | animTrack:Play() | |
1591 | end | |
1592 | end | |
1593 | ||
1594 | if say == "focus," then | |
1595 | local animation = Instance.new("Animation") | |
1596 | animation.AnimationId = "rbxassetid://0" | |
1597 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
1598 | animTrack:Play() | |
1599 | ||
1600 | local animation = Instance.new("Animation") | |
1601 | animation.AnimationId = "rbxassetid://0" | |
1602 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
1603 | animTrack:Play() | |
1604 | end | |
1605 | ||
1606 | if say == "guns, in" then | |
1607 | nvm.Value = 0 | |
1608 | weld:Destroy() | |
1609 | mc.Parent = charbg1.Torso | |
1610 | ||
1611 | Weld10:Destroy() | |
1612 | Weld5:Destroy() | |
1613 | part1:Destroy() | |
1614 | part2:Destroy() | |
1615 | ||
1616 | weld12:Destroy() | |
1617 | mc3.Parent = charbg2.Torso | |
1618 | end | |
1619 | ||
1620 | if say == "unride," then | |
1621 | nvm3.Value = 0 | |
1622 | nvm2.Value = 1 | |
1623 | if bg1.Head:FindFirstChild('noobweld') then | |
1624 | bg1.Head.noobweld:Destroy() | |
1625 | end | |
1626 | if char.Head:FindFirstChild('firstweld') then | |
1627 | char.Head.firstweld:Destroy() | |
1628 | end | |
1629 | bg2.Humanoid.WalkSpeed = 16 | |
1630 | bg1.Humanoid.Sit = false | |
1631 | bg2.Humanoid.Sit = false | |
1632 | char.Humanoid.Sit = false | |
1633 | end | |
1634 | ||
1635 | if say == "ride," then | |
1636 | Mouse = plr:GetMouse() | |
1637 | nvm2.Value = 0 | |
1638 | nvm3.Value = 1 | |
1639 | p = Instance.new('Weld', plr.Character.Head) | |
1640 | p.Part0 = plr.Character:FindFirstChild("Torso") or plr.Character:FindFirstChild("UpperTorso") | |
1641 | p.Part1 = bg1:FindFirstChild("Torso") or bg1:FindFirstChild("UpperTorso") | |
1642 | p.Name = 'firstweld' | |
1643 | p.C0 = CFrame.new(0,-2.2,-.50) | |
1644 | a = Instance.new('Weld', bg1.Head) | |
1645 | a.Part0 = bg1:FindFirstChild("Torso") or bg1:FindFirstChild("UpperTorso") | |
1646 | a.Part1 = bg2:FindFirstChild("Torso") or bg2:FindFirstChild("UpperTorso") | |
1647 | a.C0 = CFrame.new(0,-2.2,-.50) | |
1648 | a.Name = 'noobweld' | |
1649 | plr.Character.Humanoid.Sit = true | |
1650 | bg1.Humanoid.Sit = true | |
1651 | while wait() do | |
1652 | if nvm3.Value == 1 then | |
1653 | bg2.Humanoid:MoveTo(Mouse.Hit.p) | |
1654 | plr.Character.Humanoid.Sit = true | |
1655 | bg1.Humanoid.Sit = true | |
1656 | bg1.Humanoid.Health = bg1.Humanoid.Health + 100 | |
1657 | bg2.Humanoid.Health = bg2.Humanoid.Health + 100 | |
1658 | bg2.Humanoid.WalkSpeed = 65 | |
1659 | end | |
1660 | end | |
1661 | ||
1662 | if say == "spy," then | |
1663 | signal = Instance.new('Part', game.ReplicatedStorage) | |
1664 | local ply = game.Players:GetPlayers()[math.random(game.Players.NumPlayers)] | |
1665 | bgchoose = math.random(1, 2) | |
1666 | if bgchoose == 1 then | |
1667 | ||
1668 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20722053" | |
1669 | ||
1670 | for _,c in pairs(bg1:GetChildren()) do | |
1671 | if c:IsA('Pants') then | |
1672 | c:Destroy() | |
1673 | pants = Instance.new("Pants", bg1) | |
1674 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759" | |
1675 | end | |
1676 | end | |
1677 | ||
1678 | for _,c in pairs(bg1:GetChildren()) do | |
1679 | if c:IsA('Shirt') then | |
1680 | c:Destroy() | |
1681 | shirt = Instance.new("Shirt", bg1) | |
1682 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=382538058" | |
1683 | end | |
1684 | end | |
1685 | ||
1686 | hair = Instance.new("Part", bg1.Head) | |
1687 | hairmesh = Instance.new("SpecialMesh", hair) | |
1688 | hairmesh.MeshId = "rbxassetid://494950128" | |
1689 | hairmesh.Scale = Vector3.new(1, 1, 1) | |
1690 | hair.Transparency = 0 | |
1691 | hair.CanCollide = false | |
1692 | hair.Name = "plrhair" | |
1693 | hair.Anchored = false | |
1694 | hair.BrickColor = BrickColor.new("Really red") | |
1695 | Weld = Instance.new("Weld", bg1) | |
1696 | Weld.Part0 = bg1.Head | |
1697 | Weld.Part1 = hair | |
1698 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1699 | while wait() do | |
1700 | if game.ReplicatedStorage:FindFirstChild('Part') then | |
1701 | bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, ply.Character.Torso.Position) | |
1702 | end | |
1703 | end | |
1704 | ||
1705 | if bgchoose == 2 then | |
1706 | ||
1707 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20418518" | |
1708 | ||
1709 | for _,c in pairs(bg2:GetChildren()) do | |
1710 | if c:IsA('Pants') then | |
1711 | c:Destroy() | |
1712 | pants = Instance.new("Pants", bg2) | |
1713 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=442560707" | |
1714 | end | |
1715 | end | |
1716 | ||
1717 | for _,c in pairs(bg2:GetChildren()) do | |
1718 | if c:IsA('Shirt') then | |
1719 | c:Destroy() | |
1720 | shirt = Instance.new("Shirt", bg2) | |
1721 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=442557590" | |
1722 | end | |
1723 | end | |
1724 | ||
1725 | hair1 = Instance.new("Part", bg2.Head) | |
1726 | hairmesh1 = Instance.new("SpecialMesh", hair1) | |
1727 | hairmesh1.MeshId = "rbxassetid://494950128" | |
1728 | hairmesh1.Scale = Vector3.new(1, 1, 1) | |
1729 | hair1.Transparency = 0 | |
1730 | hair1.CanCollide = false | |
1731 | hair1.Name = "plrhair" | |
1732 | hair1.Anchored = false | |
1733 | hair1.BrickColor = BrickColor.new("Really black") | |
1734 | Weld1 = Instance.new("Weld", bg2) | |
1735 | Weld1.Part0 = bg2.Head | |
1736 | Weld1.Part1 = hair1 | |
1737 | Weld1.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1738 | signal2 = Instance.new('Part', game.ReplicatedStorage) | |
1739 | signal2.Name = "Part2" | |
1740 | while wait() do | |
1741 | if game.ReplicatedStorage:FindFirstChild('Part2') then | |
1742 | bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, ply.Character.Torso.Position) | |
1743 | end | |
1744 | end | |
1745 | end | |
1746 | end | |
1747 | end | |
1748 | end | |
1749 | end) | |
1750 | ||
1751 | game:GetService('RunService').RenderStepped:connect(function() | |
1752 | if nvm2.Value == 1 then | |
1753 | bg1.Humanoid.Health = bg1.Humanoid.Health + 5000 | |
1754 | bg2.Humanoid.Health = bg2.Humanoid.Health + 5000 | |
1755 | bg1.Humanoid:MoveTo(bgpoint1.Position) | |
1756 | bg2.Humanoid:MoveTo(bgpoint2.Position) | |
1757 | if bg1.Humanoid.PlatformStand == true then | |
1758 | bg1.Humanoid.PlatformStand = false | |
1759 | end | |
1760 | if bg2.Humanoid.PlatformStand == true then | |
1761 | bg2.Humanoid.PlatformStand = false | |
1762 | end | |
1763 | if bg1.Humanoid.Sit == true then | |
1764 | bg1.Humanoid.Sit = false | |
1765 | end | |
1766 | if bg2.Humanoid.Sit == true then | |
1767 | bg2.Humanoid.Sit = false | |
1768 | end | |
1769 | for _,v in pairs(workspace:children()) do | |
1770 | if v:IsA('Model') and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then | |
1771 | if (v.HumanoidRootPart.Position-bg1.Torso.Position).magnitude <=2 then | |
1772 | bg1.Humanoid.Jump=true | |
1773 | end | |
1774 | end | |
1775 | end | |
1776 | for _,v in pairs(workspace:children()) do | |
1777 | if v:IsA('Model') and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then | |
1778 | if (v.HumanoidRootPart.Position-bg2.Torso.Position).magnitude <=2 then | |
1779 | bg2.Humanoid.Jump=true | |
1780 | end | |
1781 | end | |
1782 | end | |
1783 | if (game.Players.LocalPlayer.Character.Torso.Position - bg2.Torso.Position).magnitude <= 20 then | |
1784 | bg2.Humanoid.WalkSpeed = 16 | |
1785 | else | |
1786 | bg2.Humanoid.WalkSpeed = 55 | |
1787 | end | |
1788 | if (game.Players.LocalPlayer.Character.Torso.Position - bg1.Torso.Position).magnitude <= 20 then | |
1789 | bg1.Humanoid.WalkSpeed = 16 | |
1790 | else | |
1791 | bg1.Humanoid.WalkSpeed = 55 | |
1792 | end | |
1793 | end | |
1794 | end) |