· 6 years ago · Dec 13, 2019, 04:00 AM
1-- Thanks for using Mod2S by NopeUsername
2local functions = {}
3function sandbox(script, func)
4 local oldEnv = getfenv(func)
5
6 local newEnv = setmetatable({}, {
7 __index = function(self,k)
8 if k == "script" then
9 return script
10 else
11 return oldEnv[k]
12 end
13 end,
14 })
15
16 return setfenv(func, newEnv)
17end
18
19local mas = Instance.new("Model", game:GetService("Lighting"))
20-- DECLARING VARIABLES
21
22Pwnga = Instance.new("Model")
23HumanoidRootPart = Instance.new("Part")
24RootRigAttachment = Instance.new("Attachment")
25OriginalPosition = Instance.new("Vector3Value")
26OriginalSize = Instance.new("Vector3Value")
27LeftHand = Instance.new("MeshPart")
28LeftWristRigAttachment = Instance.new("Attachment")
29OriginalPosition_1 = Instance.new("Vector3Value")
30LeftGripAttachment = Instance.new("Attachment")
31OriginalPosition_2 = Instance.new("Vector3Value")
32LeftWrist = Instance.new("Motor6D")
33OriginalSize_1 = Instance.new("Vector3Value")
34LeftLowerArm = Instance.new("MeshPart")
35LeftElbowRigAttachment = Instance.new("Attachment")
36OriginalPosition_3 = Instance.new("Vector3Value")
37LeftWristRigAttachment_1 = Instance.new("Attachment")
38OriginalPosition_4 = Instance.new("Vector3Value")
39LeftElbow = Instance.new("Motor6D")
40OriginalSize_2 = Instance.new("Vector3Value")
41LeftUpperArm = Instance.new("MeshPart")
42LeftShoulderRigAttachment = Instance.new("Attachment")
43OriginalPosition_5 = Instance.new("Vector3Value")
44LeftElbowRigAttachment_1 = Instance.new("Attachment")
45OriginalPosition_6 = Instance.new("Vector3Value")
46LeftShoulderAttachment = Instance.new("Attachment")
47OriginalPosition_7 = Instance.new("Vector3Value")
48OriginalSize_3 = Instance.new("Vector3Value")
49RightHand = Instance.new("MeshPart")
50RightWristRigAttachment = Instance.new("Attachment")
51OriginalPosition_8 = Instance.new("Vector3Value")
52RightGripAttachment = Instance.new("Attachment")
53OriginalPosition_9 = Instance.new("Vector3Value")
54RightWrist = Instance.new("Motor6D")
55OriginalSize_4 = Instance.new("Vector3Value")
56RightLowerArm = Instance.new("MeshPart")
57RightElbowRigAttachment = Instance.new("Attachment")
58OriginalPosition_10 = Instance.new("Vector3Value")
59RightWristRigAttachment_1 = Instance.new("Attachment")
60OriginalPosition_11 = Instance.new("Vector3Value")
61RightElbow = Instance.new("Motor6D")
62OriginalSize_5 = Instance.new("Vector3Value")
63RightUpperArm = Instance.new("MeshPart")
64RightShoulderRigAttachment = Instance.new("Attachment")
65OriginalPosition_12 = Instance.new("Vector3Value")
66RightElbowRigAttachment_1 = Instance.new("Attachment")
67OriginalPosition_13 = Instance.new("Vector3Value")
68RightShoulderAttachment = Instance.new("Attachment")
69OriginalPosition_14 = Instance.new("Vector3Value")
70RightShoulder = Instance.new("Motor6D")
71OriginalSize_6 = Instance.new("Vector3Value")
72UpperTorso = Instance.new("MeshPart")
73WaistRigAttachment = Instance.new("Attachment")
74OriginalPosition_15 = Instance.new("Vector3Value")
75NeckRigAttachment = Instance.new("Attachment")
76OriginalPosition_16 = Instance.new("Vector3Value")
77LeftShoulderRigAttachment_1 = Instance.new("Attachment")
78OriginalPosition_17 = Instance.new("Vector3Value")
79RightShoulderRigAttachment_1 = Instance.new("Attachment")
80OriginalPosition_18 = Instance.new("Vector3Value")
81BodyFrontAttachment = Instance.new("Attachment")
82OriginalPosition_19 = Instance.new("Vector3Value")
83BodyBackAttachment = Instance.new("Attachment")
84OriginalPosition_20 = Instance.new("Vector3Value")
85LeftCollarAttachment = Instance.new("Attachment")
86OriginalPosition_21 = Instance.new("Vector3Value")
87RightCollarAttachment = Instance.new("Attachment")
88OriginalPosition_22 = Instance.new("Vector3Value")
89NeckAttachment = Instance.new("Attachment")
90OriginalPosition_23 = Instance.new("Vector3Value")
91Waist = Instance.new("Motor6D")
92OriginalSize_7 = Instance.new("Vector3Value")
93LeftFoot = Instance.new("MeshPart")
94LeftAnkleRigAttachment = Instance.new("Attachment")
95OriginalPosition_24 = Instance.new("Vector3Value")
96OriginalSize_8 = Instance.new("Vector3Value")
97LeftAnkle = Instance.new("Motor6D")
98LeftLowerLeg = Instance.new("MeshPart")
99LeftKneeRigAttachment = Instance.new("Attachment")
100OriginalPosition_25 = Instance.new("Vector3Value")
101LeftAnkleRigAttachment_1 = Instance.new("Attachment")
102OriginalPosition_26 = Instance.new("Vector3Value")
103LeftKnee = Instance.new("Motor6D")
104OriginalSize_9 = Instance.new("Vector3Value")
105LeftUpperLeg = Instance.new("MeshPart")
106LeftHipRigAttachment = Instance.new("Attachment")
107OriginalPosition_27 = Instance.new("Vector3Value")
108LeftKneeRigAttachment_1 = Instance.new("Attachment")
109OriginalPosition_28 = Instance.new("Vector3Value")
110OriginalSize_10 = Instance.new("Vector3Value")
111RightFoot = Instance.new("MeshPart")
112RightAnkleRigAttachment = Instance.new("Attachment")
113OriginalPosition_29 = Instance.new("Vector3Value")
114OriginalSize_11 = Instance.new("Vector3Value")
115RightLowerLeg = Instance.new("MeshPart")
116RightKneeRigAttachment = Instance.new("Attachment")
117OriginalPosition_30 = Instance.new("Vector3Value")
118RightAnkleRigAttachment_1 = Instance.new("Attachment")
119OriginalPosition_31 = Instance.new("Vector3Value")
120RightKnee = Instance.new("Motor6D")
121OriginalSize_12 = Instance.new("Vector3Value")
122RightUpperLeg = Instance.new("MeshPart")
123RightHipRigAttachment = Instance.new("Attachment")
124OriginalPosition_32 = Instance.new("Vector3Value")
125RightKneeRigAttachment_1 = Instance.new("Attachment")
126OriginalPosition_33 = Instance.new("Vector3Value")
127OriginalSize_13 = Instance.new("Vector3Value")
128LowerTorso = Instance.new("MeshPart")
129RootRigAttachment_1 = Instance.new("Attachment")
130OriginalPosition_34 = Instance.new("Vector3Value")
131WaistRigAttachment_1 = Instance.new("Attachment")
132OriginalPosition_35 = Instance.new("Vector3Value")
133LeftHipRigAttachment_1 = Instance.new("Attachment")
134OriginalPosition_36 = Instance.new("Vector3Value")
135RightHipRigAttachment_1 = Instance.new("Attachment")
136OriginalPosition_37 = Instance.new("Vector3Value")
137WaistCenterAttachment = Instance.new("Attachment")
138OriginalPosition_38 = Instance.new("Vector3Value")
139WaistFrontAttachment = Instance.new("Attachment")
140OriginalPosition_39 = Instance.new("Vector3Value")
141WaistBackAttachment = Instance.new("Attachment")
142OriginalPosition_40 = Instance.new("Vector3Value")
143Root = Instance.new("Motor6D")
144OriginalSize_14 = Instance.new("Vector3Value")
145Humanoid = Instance.new("Humanoid")
146Animator = Instance.new("Animator")
147BodyTypeScale = Instance.new("NumberValue")
148BodyProportionScale = Instance.new("NumberValue")
149BodyWidthScale = Instance.new("NumberValue")
150BodyHeightScale = Instance.new("NumberValue")
151BodyDepthScale = Instance.new("NumberValue")
152HeadScale = Instance.new("NumberValue")
153Head = Instance.new("Part")
154Mesh = Instance.new("SpecialMesh")
155OriginalSize_15 = Instance.new("Vector3Value")
156FaceCenterAttachment = Instance.new("Attachment")
157OriginalPosition_41 = Instance.new("Vector3Value")
158FaceFrontAttachment = Instance.new("Attachment")
159OriginalPosition_42 = Instance.new("Vector3Value")
160HairAttachment = Instance.new("Attachment")
161OriginalPosition_43 = Instance.new("Vector3Value")
162HatAttachment = Instance.new("Attachment")
163OriginalPosition_44 = Instance.new("Vector3Value")
164NeckRigAttachment_1 = Instance.new("Attachment")
165OriginalPosition_45 = Instance.new("Vector3Value")
166OriginalSize_16 = Instance.new("Vector3Value")
167GettingUp = Instance.new("Sound")
168CharacterSoundEvent = Instance.new("RemoteEvent")
169Died = Instance.new("Sound")
170CharacterSoundEvent_1 = Instance.new("RemoteEvent")
171FreeFalling = Instance.new("Sound")
172CharacterSoundEvent_2 = Instance.new("RemoteEvent")
173Jumping = Instance.new("Sound")
174CharacterSoundEvent_3 = Instance.new("RemoteEvent")
175Landing = Instance.new("Sound")
176CharacterSoundEvent_4 = Instance.new("RemoteEvent")
177Splash = Instance.new("Sound")
178CharacterSoundEvent_5 = Instance.new("RemoteEvent")
179Running = Instance.new("Sound")
180CharacterSoundEvent_6 = Instance.new("RemoteEvent")
181Swimming = Instance.new("Sound")
182CharacterSoundEvent_7 = Instance.new("RemoteEvent")
183Climbing = Instance.new("Sound")
184CharacterSoundEvent_8 = Instance.new("RemoteEvent")
185Decal = Instance.new("Decal")
186Sound = Instance.new("Script")
187LocalSound = Instance.new("LocalScript")
188Health = Instance.new("Script")
189Animate = Instance.new("LocalScript")
190cheer = Instance.new("StringValue")
191CheerAnim = Instance.new("Animation")
192dance = Instance.new("StringValue")
193Animation1 = Instance.new("Animation")
194Weight = Instance.new("NumberValue")
195Animation2 = Instance.new("Animation")
196Weight_1 = Instance.new("NumberValue")
197Animation3 = Instance.new("Animation")
198Weight_2 = Instance.new("NumberValue")
199dance2 = Instance.new("StringValue")
200Animation1_1 = Instance.new("Animation")
201Weight_3 = Instance.new("NumberValue")
202Animation2_1 = Instance.new("Animation")
203Weight_4 = Instance.new("NumberValue")
204Animation3_1 = Instance.new("Animation")
205Weight_5 = Instance.new("NumberValue")
206dance3 = Instance.new("StringValue")
207Animation1_2 = Instance.new("Animation")
208Weight_6 = Instance.new("NumberValue")
209Animation2_2 = Instance.new("Animation")
210Weight_7 = Instance.new("NumberValue")
211Animation3_2 = Instance.new("Animation")
212Weight_8 = Instance.new("NumberValue")
213laugh = Instance.new("StringValue")
214LaughAnim = Instance.new("Animation")
215point = Instance.new("StringValue")
216PointAnim = Instance.new("Animation")
217sit = Instance.new("StringValue")
218SitAnim = Instance.new("Animation")
219toollunge = Instance.new("StringValue")
220ToolLungeAnim = Instance.new("Animation")
221toolnone = Instance.new("StringValue")
222ToolNoneAnim = Instance.new("Animation")
223toolslash = Instance.new("StringValue")
224ToolSlashAnim = Instance.new("Animation")
225wave = Instance.new("StringValue")
226WaveAnim = Instance.new("Animation")
227idle = Instance.new("StringValue")
228Animation1_3 = Instance.new("Animation")
229Weight_9 = Instance.new("NumberValue")
230Animation2_3 = Instance.new("Animation")
231Weight_10 = Instance.new("NumberValue")
232pose = Instance.new("StringValue")
233PoseAnim = Instance.new("Animation")
234Weight_11 = Instance.new("NumberValue")
235run = Instance.new("StringValue")
236RunAnim = Instance.new("Animation")
237swim = Instance.new("StringValue")
238Swim = Instance.new("Animation")
239swimidle = Instance.new("StringValue")
240SwimIdle = Instance.new("Animation")
241climb = Instance.new("StringValue")
242ClimbAnim = Instance.new("Animation")
243fall = Instance.new("StringValue")
244FallAnim = Instance.new("Animation")
245jump = Instance.new("StringValue")
246JumpAnim = Instance.new("Animation")
247walk = Instance.new("StringValue")
248WalkAnim = Instance.new("Animation")
249BodyColors = Instance.new("BodyColors")
250BearMask = Instance.new("Accessory")
251Handle = Instance.new("Part")
252Mesh_1 = Instance.new("SpecialMesh")
253FaceFrontAttachment_1 = Instance.new("Attachment")
254OriginalSize_17 = Instance.new("Vector3Value")
255AccessoryWeld = Instance.new("Weld")
256AccessoryWeld_1 = Instance.new("Weld")
257ThumbnailCamera = Instance.new("Camera")
258FoxEarsw = Instance.new("Accessory")
259Handle_1 = Instance.new("Part")
260Mesh_2 = Instance.new("SpecialMesh")
261HatAttachment_1 = Instance.new("Attachment")
262OriginalSize_18 = Instance.new("Vector3Value")
263AccessoryWeld_2 = Instance.new("Weld")
264ThumbnailCamera_1 = Instance.new("Camera")
265BlueGirlHair = Instance.new("Accessory")
266Handle_2 = Instance.new("Part")
267Mesh_3 = Instance.new("SpecialMesh")
268HairAttachment_1 = Instance.new("Attachment")
269OriginalSize_19 = Instance.new("Vector3Value")
270AccessoryWeld_3 = Instance.new("Weld")
271ThumbnailCamera_2 = Instance.new("Camera")
272Model = Instance.new("Model")
273BodyColors_1 = Instance.new("BodyColors")
274Health_1 = Instance.new("Script")
275Humanoid_1 = Instance.new("Humanoid")
276Animator_1 = Instance.new("Animator")
277PercyJacksonHalfBloodCap = Instance.new("Hat")
278Handle_3 = Instance.new("Part")
279Mesh_4 = Instance.new("SpecialMesh")
280ThumbnailCamera_3 = Instance.new("Camera")
281Sound_1 = Instance.new("Script")
282LocalSound_1 = Instance.new("LocalScript")
283UltraFabulousHair = Instance.new("Hat")
284Handle_4 = Instance.new("Part")
285Mesh_5 = Instance.new("SpecialMesh")
286ZootopiaBeastHeadphones = Instance.new("Hat")
287Handle_5 = Instance.new("Part")
288Mesh_6 = Instance.new("SpecialMesh")
289ThumbnailCamera_4 = Instance.new("Camera")
290Animate_1 = Instance.new("LocalScript")
291idle_1 = Instance.new("StringValue")
292Animation1_4 = Instance.new("Animation")
293Weight_12 = Instance.new("NumberValue")
294Animation2_4 = Instance.new("Animation")
295Weight_13 = Instance.new("NumberValue")
296walk_1 = Instance.new("StringValue")
297WalkAnim_1 = Instance.new("Animation")
298run_1 = Instance.new("StringValue")
299RunAnim_1 = Instance.new("Animation")
300jump_1 = Instance.new("StringValue")
301JumpAnim_1 = Instance.new("Animation")
302climb_1 = Instance.new("StringValue")
303ClimbAnim_1 = Instance.new("Animation")
304toolnone_1 = Instance.new("StringValue")
305ToolNoneAnim_1 = Instance.new("Animation")
306fall_1 = Instance.new("StringValue")
307FallAnim_1 = Instance.new("Animation")
308sit_1 = Instance.new("StringValue")
309SitAnim_1 = Instance.new("Animation")
310Head_1 = Instance.new("Part")
311Mesh_7 = Instance.new("SpecialMesh")
312HeadWeld = Instance.new("Weld")
313HeadWeld_1 = Instance.new("Weld")
314face = Instance.new("Decal")
315HeadWeld_2 = Instance.new("Weld")
316HeadWeld_3 = Instance.new("Weld")
317HeadWeld_4 = Instance.new("Weld")
318HeadWeld_5 = Instance.new("Weld")
319HeadWeld_6 = Instance.new("Weld")
320HeadWeld_7 = Instance.new("Weld")
321HumanoidRootPart_1 = Instance.new("Part")
322RootJoint = Instance.new("Motor6D")
323LeftArm = Instance.new("Part")
324LeftLeg = Instance.new("Part")
325RightArm = Instance.new("Part")
326RightLeg = Instance.new("Part")
327Torso = Instance.new("Part")
328roblox = Instance.new("Decal")
329RightShoulder_1 = Instance.new("Motor6D")
330LeftShoulder = Instance.new("Motor6D")
331Neck = Instance.new("Motor6D")
332Model_1 = Instance.new("Model")
333Pee = Instance.new("Tool")
334Script = Instance.new("Script")
335Handle_6 = Instance.new("Part")
336Open = Instance.new("Part")
337Part = Instance.new("Part")
338Weld = Instance.new("ManualWeld")
339Part_1 = Instance.new("Part")
340Part_2 = Instance.new("Part")
341Weld_1 = Instance.new("Script")
342WeldProfile = Instance.new("ObjectValue")
343Profile1 = Instance.new("ObjectValue")
344C0 = Instance.new("CFrameValue")
345C1 = Instance.new("CFrameValue")
346Profile2 = Instance.new("ObjectValue")
347C0_1 = Instance.new("CFrameValue")
348C1_1 = Instance.new("CFrameValue")
349Profile3 = Instance.new("ObjectValue")
350C0_2 = Instance.new("CFrameValue")
351C1_2 = Instance.new("CFrameValue")
352Profile4 = Instance.new("ObjectValue")
353C0_3 = Instance.new("CFrameValue")
354C1_3 = Instance.new("CFrameValue")
355WeldBackup = Instance.new("LocalScript")
356TouchInterest = Instance.new("TouchTransmitter")
357IzzAtOMG = Instance.new("Model")
358Head_2 = Instance.new("Part")
359Mesh_8 = Instance.new("SpecialMesh")
360HatAttachment_2 = Instance.new("Attachment")
361HairAttachment_2 = Instance.new("Attachment")
362FaceFrontAttachment_2 = Instance.new("Attachment")
363FaceCenterAttachment_1 = Instance.new("Attachment")
364face_1 = Instance.new("Decal")
365HumanoidRootPart_2 = Instance.new("Part")
366RootJoint_1 = Instance.new("Motor6D")
367LeftArm_1 = Instance.new("Part")
368LeftShoulderAttachment_1 = Instance.new("Attachment")
369LeftLeg_1 = Instance.new("Part")
370RightArm_1 = Instance.new("Part")
371RightShoulderAttachment_1 = Instance.new("Attachment")
372RightLeg_1 = Instance.new("Part")
373Torso_1 = Instance.new("Part")
374roblox_1 = Instance.new("Decal")
375RightHip = Instance.new("Motor6D")
376LeftHip = Instance.new("Motor6D")
377WaistFrontAttachment_1 = Instance.new("Attachment")
378WaistCenterAttachment_1 = Instance.new("Attachment")
379WaistBackAttachment_1 = Instance.new("Attachment")
380RightCollarAttachment_1 = Instance.new("Attachment")
381NeckAttachment_1 = Instance.new("Attachment")
382LeftCollarAttachment_1 = Instance.new("Attachment")
383BodyFrontAttachment_1 = Instance.new("Attachment")
384BodyBackAttachment_1 = Instance.new("Attachment")
385Neck_1 = Instance.new("Motor6D")
386Humanoid_2 = Instance.new("Humanoid")
387CheesyDiver = Instance.new("Accessory")
388Handle_7 = Instance.new("Part")
389Mesh_9 = Instance.new("SpecialMesh")
390HatAttachment_3 = Instance.new("Attachment")
391OriginalSize_20 = Instance.new("Vector3Value")
392AccessoryWeld_4 = Instance.new("Weld")
393ThumbnailCamera_5 = Instance.new("Camera")
394YondusFin = Instance.new("Accessory")
395Handle_8 = Instance.new("Part")
396Mesh_10 = Instance.new("SpecialMesh")
397HatAttachment_4 = Instance.new("Attachment")
398OriginalSize_21 = Instance.new("Vector3Value")
399AccessoryWeld_5 = Instance.new("Weld")
400ThumbnailCamera_6 = Instance.new("Camera")
401BrownCharmerHair = Instance.new("Accessory")
402Handle_9 = Instance.new("Part")
403Mesh_11 = Instance.new("SpecialMesh")
404HairAttachment_3 = Instance.new("Attachment")
405AccessoryWeld_6 = Instance.new("Weld")
406ThumbnailCamera_7 = Instance.new("Camera")
407Eyepatch = Instance.new("Accessory")
408Handle_10 = Instance.new("Part")
409Mesh_12 = Instance.new("SpecialMesh")
410FaceFrontAttachment_3 = Instance.new("Attachment")
411OriginalSize_22 = Instance.new("Vector3Value")
412AccessoryWeld_7 = Instance.new("Weld")
413ThumbnailCamera_8 = Instance.new("Camera")
414BodyColors_2 = Instance.new("BodyColors")
415Shirt = Instance.new("Shirt")
416Pants = Instance.new("Pants")
417Part_3 = Instance.new("Part")
418Part_4 = Instance.new("Part")
419Part_5 = Instance.new("Part")
420Part_6 = Instance.new("Part")
421Part_7 = Instance.new("Part")
422Part_8 = Instance.new("Part")
423Part_9 = Instance.new("Part")
424Part_10 = Instance.new("Part")
425Part_11 = Instance.new("Part")
426Part_12 = Instance.new("Part")
427Wedge = Instance.new("WedgePart")
428
429-- SETTING PROPERTIES
430
431Pwnga.PrimaryPart = HumanoidRootPart
432Pwnga.Name = "Pwnga"
433Pwnga.Parent = mas
434
435HumanoidRootPart.Anchored = true
436HumanoidRootPart.CFrame = CFrame.new(-10.851,5.01,3.473,0.026,0.999,0.042,0,-0.042,0.999,1,-0.026,-0.001)
437HumanoidRootPart.Size = Vector3.new(1.4,1.9,0.85)
438HumanoidRootPart.Transparency = 1
439HumanoidRootPart.Name = "HumanoidRootPart"
440HumanoidRootPart.Parent = Pwnga
441
442RootRigAttachment.CFrame = CFrame.new(0,-0.95,0,1,0,0,0,1,0,0,0,1)
443RootRigAttachment.Position = Vector3.new(0,-0.95,0)
444RootRigAttachment.Name = "RootRigAttachment"
445RootRigAttachment.Parent = HumanoidRootPart
446
447OriginalPosition.Value = Vector3.new(0,-0.35,0)
448OriginalPosition.Name = "OriginalPosition"
449OriginalPosition.Parent = RootRigAttachment
450
451OriginalSize.Value = Vector3.new(2,2,1)
452OriginalSize.Name = "OriginalSize"
453OriginalSize.Parent = HumanoidRootPart
454
455LeftHand.CollisionFidelity = Enum.CollisionFidelity.Box
456LeftHand.Anchored = true
457LeftHand.CFrame = CFrame.new(-11.674,4.875,2.445,0.026,0.985,-0.173,0.006,0.173,0.985,1,-0.026,-0.001)
458LeftHand.CanCollide = false
459LeftHand.Color = Color3.new(0.918,0.722,0.573)
460LeftHand.Size = Vector3.new(0.7,0.285,0.85)
461LeftHand.Name = "LeftHand"
462LeftHand.Parent = Pwnga
463
464LeftWristRigAttachment.CFrame = CFrame.new(0,0.119,0,1,0,0,0,1,0,0,0,1)
465LeftWristRigAttachment.Position = Vector3.new(0,0.119,0)
466LeftWristRigAttachment.Name = "LeftWristRigAttachment"
467LeftWristRigAttachment.Parent = LeftHand
468
469OriginalPosition_1.Value = Vector3.new(0,0.125,0)
470OriginalPosition_1.Name = "OriginalPosition"
471OriginalPosition_1.Parent = LeftWristRigAttachment
472
473LeftGripAttachment.CFrame = CFrame.new(0,-0.142,0,1,0,0,0,0,1,0,-1,0)
474LeftGripAttachment.Orientation = Vector3.new(-90,0,0)
475LeftGripAttachment.Position = Vector3.new(0,-0.142,0)
476LeftGripAttachment.Rotation = Vector3.new(-90,0,0)
477LeftGripAttachment.SecondaryAxis = Vector3.new(0,0,-1)
478LeftGripAttachment.Name = "LeftGripAttachment"
479LeftGripAttachment.Parent = LeftHand
480
481OriginalPosition_2.Value = Vector3.new(0,-0.15,0)
482OriginalPosition_2.Name = "OriginalPosition"
483OriginalPosition_2.Parent = LeftGripAttachment
484
485LeftWrist.C0 = CFrame.new(0,-0.476,0,1,0,0,0,1,0,0,0,1)
486LeftWrist.C1 = CFrame.new(0,0.119,0,1,0,0,0,1,0,0,0,1)
487LeftWrist.Part0 = LeftLowerArm
488LeftWrist.Part1 = LeftHand
489LeftWrist.Name = "LeftWrist"
490LeftWrist.Parent = LeftHand
491
492OriginalSize_1.Value = Vector3.new(1,0.3,1)
493OriginalSize_1.Name = "OriginalSize"
494OriginalSize_1.Parent = LeftHand
495
496LeftLowerArm.CollisionFidelity = Enum.CollisionFidelity.Box
497LeftLowerArm.Anchored = true
498LeftLowerArm.CFrame = CFrame.new(-11.089,4.978,2.429,0.026,0.985,-0.173,0.006,0.173,0.985,1,-0.026,-0.001)
499LeftLowerArm.CanCollide = false
500LeftLowerArm.Color = Color3.new(0.918,0.722,0.573)
501LeftLowerArm.Size = Vector3.new(0.7,0.999,0.85)
502LeftLowerArm.Name = "LeftLowerArm"
503LeftLowerArm.Parent = Pwnga
504
505LeftElbowRigAttachment.CFrame = CFrame.new(0,0.246,0,1,0,0,0,1,0,0,0,1)
506LeftElbowRigAttachment.Position = Vector3.new(0,0.246,0)
507LeftElbowRigAttachment.Name = "LeftElbowRigAttachment"
508LeftElbowRigAttachment.Parent = LeftLowerArm
509
510OriginalPosition_3.Value = Vector3.new(0,0.259,0)
511OriginalPosition_3.Name = "OriginalPosition"
512OriginalPosition_3.Parent = LeftElbowRigAttachment
513
514LeftWristRigAttachment_1.CFrame = CFrame.new(0,-0.476,0,1,0,0,0,1,0,0,0,1)
515LeftWristRigAttachment_1.Position = Vector3.new(0,-0.476,0)
516LeftWristRigAttachment_1.Name = "LeftWristRigAttachment"
517LeftWristRigAttachment_1.Parent = LeftLowerArm
518
519OriginalPosition_4.Value = Vector3.new(0,-0.501,0)
520OriginalPosition_4.Name = "OriginalPosition"
521OriginalPosition_4.Parent = LeftWristRigAttachment_1
522
523LeftElbow.C0 = CFrame.new(0,-0.317,0,1,0,0,0,1,0,0,0,1)
524LeftElbow.C1 = CFrame.new(0,0.246,0,1,0,0,0,1,0,0,0,1)
525LeftElbow.Part0 = LeftUpperArm
526LeftElbow.Part1 = LeftLowerArm
527LeftElbow.Name = "LeftElbow"
528LeftElbow.Parent = LeftLowerArm
529
530OriginalSize_2.Value = Vector3.new(1,1.052,1)
531OriginalSize_2.Name = "OriginalSize"
532OriginalSize_2.Parent = LeftLowerArm
533
534LeftUpperArm.CollisionFidelity = Enum.CollisionFidelity.Box
535LeftUpperArm.Anchored = true
536LeftUpperArm.CFrame = CFrame.new(-10.534,5.075,2.414,0.026,0.985,-0.173,0.006,0.173,0.985,1,-0.026,-0.001)
537LeftUpperArm.CanCollide = false
538LeftUpperArm.Color = Color3.new(0.918,0.722,0.573)
539LeftUpperArm.Size = Vector3.new(0.7,1.11,0.85)
540LeftUpperArm.Name = "LeftUpperArm"
541LeftUpperArm.Parent = Pwnga
542
543LeftShoulderRigAttachment.CFrame = CFrame.new(0.35,0.375,0,1,0,0,0,1,0,0,0,1)
544LeftShoulderRigAttachment.Position = Vector3.new(0.35,0.375,0)
545LeftShoulderRigAttachment.Name = "LeftShoulderRigAttachment"
546LeftShoulderRigAttachment.Parent = LeftUpperArm
547
548OriginalPosition_5.Value = Vector3.new(0.5,0.394,0)
549OriginalPosition_5.Name = "OriginalPosition"
550OriginalPosition_5.Parent = LeftShoulderRigAttachment
551
552LeftElbowRigAttachment_1.CFrame = CFrame.new(0,-0.317,0,1,0,0,0,1,0,0,0,1)
553LeftElbowRigAttachment_1.Position = Vector3.new(0,-0.317,0)
554LeftElbowRigAttachment_1.Name = "LeftElbowRigAttachment"
555LeftElbowRigAttachment_1.Parent = LeftUpperArm
556
557OriginalPosition_6.Value = Vector3.new(0,-0.334,0)
558OriginalPosition_6.Name = "OriginalPosition"
559OriginalPosition_6.Parent = LeftElbowRigAttachment_1
560
561LeftShoulderAttachment.CFrame = CFrame.new(0,0.555,0,1,0,0,0,1,0,0,0,1)
562LeftShoulderAttachment.Position = Vector3.new(0,0.555,0)
563LeftShoulderAttachment.Name = "LeftShoulderAttachment"
564LeftShoulderAttachment.Parent = LeftUpperArm
565
566OriginalPosition_7.Value = Vector3.new(0,0.584,0)
567OriginalPosition_7.Name = "OriginalPosition"
568OriginalPosition_7.Parent = LeftShoulderAttachment
569
570OriginalSize_3.Value = Vector3.new(1,1.169,1)
571OriginalSize_3.Name = "OriginalSize"
572OriginalSize_3.Parent = LeftUpperArm
573
574RightHand.CollisionFidelity = Enum.CollisionFidelity.Box
575RightHand.Anchored = true
576RightHand.CFrame = CFrame.new(-11.63,5.043,4.544,0.026,0.999,0.042,0,-0.042,0.999,1,-0.026,-0.001)
577RightHand.CanCollide = false
578RightHand.Color = Color3.new(0.918,0.722,0.573)
579RightHand.Size = Vector3.new(0.7,0.285,0.85)
580RightHand.Name = "RightHand"
581RightHand.Parent = Pwnga
582
583RightWristRigAttachment.CFrame = CFrame.new(0,0.119,0,1,0,0,0,1,0,0,0,1)
584RightWristRigAttachment.Position = Vector3.new(0,0.119,0)
585RightWristRigAttachment.Name = "RightWristRigAttachment"
586RightWristRigAttachment.Parent = RightHand
587
588OriginalPosition_8.Value = Vector3.new(0,0.125,0)
589OriginalPosition_8.Name = "OriginalPosition"
590OriginalPosition_8.Parent = RightWristRigAttachment
591
592RightGripAttachment.CFrame = CFrame.new(0,-0.142,0,1,0,0,0,0,1,0,-1,0)
593RightGripAttachment.Orientation = Vector3.new(-90,0,0)
594RightGripAttachment.Position = Vector3.new(0,-0.142,0)
595RightGripAttachment.Rotation = Vector3.new(-90,0,0)
596RightGripAttachment.SecondaryAxis = Vector3.new(0,0,-1)
597RightGripAttachment.Name = "RightGripAttachment"
598RightGripAttachment.Parent = RightHand
599
600OriginalPosition_9.Value = Vector3.new(0,-0.15,0)
601OriginalPosition_9.Name = "OriginalPosition"
602OriginalPosition_9.Parent = RightGripAttachment
603
604RightWrist.C0 = CFrame.new(0,-0.476,0,1,0,0,0,1,0,0,0,1)
605RightWrist.C1 = CFrame.new(0,0.119,0,1,0,0,0,1,0,0,0,1)
606RightWrist.Part0 = RightLowerArm
607RightWrist.Part1 = RightHand
608RightWrist.Name = "RightWrist"
609RightWrist.Parent = RightHand
610
611OriginalSize_4.Value = Vector3.new(1,0.3,1)
612OriginalSize_4.Name = "OriginalSize"
613OriginalSize_4.Parent = RightHand
614
615RightLowerArm.CollisionFidelity = Enum.CollisionFidelity.Box
616RightLowerArm.Anchored = true
617RightLowerArm.CFrame = CFrame.new(-11.036,5.019,4.528,0.026,0.999,0.042,0,-0.042,0.999,1,-0.026,-0.001)
618RightLowerArm.CanCollide = false
619RightLowerArm.Color = Color3.new(0.918,0.722,0.573)
620RightLowerArm.Size = Vector3.new(0.7,0.999,0.85)
621RightLowerArm.Name = "RightLowerArm"
622RightLowerArm.Parent = Pwnga
623
624RightElbowRigAttachment.CFrame = CFrame.new(0,0.246,0,1,0,0,0,1,0,0,0,1)
625RightElbowRigAttachment.Position = Vector3.new(0,0.246,0)
626RightElbowRigAttachment.Name = "RightElbowRigAttachment"
627RightElbowRigAttachment.Parent = RightLowerArm
628
629OriginalPosition_10.Value = Vector3.new(0,0.259,0)
630OriginalPosition_10.Name = "OriginalPosition"
631OriginalPosition_10.Parent = RightElbowRigAttachment
632
633RightWristRigAttachment_1.CFrame = CFrame.new(0,-0.476,0,1,0,0,0,1,0,0,0,1)
634RightWristRigAttachment_1.Position = Vector3.new(0,-0.476,0)
635RightWristRigAttachment_1.Name = "RightWristRigAttachment"
636RightWristRigAttachment_1.Parent = RightLowerArm
637
638OriginalPosition_11.Value = Vector3.new(0,-0.501,0)
639OriginalPosition_11.Name = "OriginalPosition"
640OriginalPosition_11.Parent = RightWristRigAttachment_1
641
642RightElbow.C0 = CFrame.new(0,-0.317,0,1,0,0,0,1,0,0,0,1)
643RightElbow.C1 = CFrame.new(0,0.246,0,1,0,0,0,1,0,0,0,1)
644RightElbow.Part0 = RightUpperArm
645RightElbow.Part1 = RightLowerArm
646RightElbow.Name = "RightElbow"
647RightElbow.Parent = RightLowerArm
648
649OriginalSize_5.Value = Vector3.new(1,1.052,1)
650OriginalSize_5.Name = "OriginalSize"
651OriginalSize_5.Parent = RightLowerArm
652
653RightUpperArm.CollisionFidelity = Enum.CollisionFidelity.Box
654RightUpperArm.Anchored = true
655RightUpperArm.CFrame = CFrame.new(-10.473,4.995,4.513,0.026,0.999,0.042,0,-0.042,0.999,1,-0.026,-0.001)
656RightUpperArm.CanCollide = false
657RightUpperArm.Color = Color3.new(0.918,0.722,0.573)
658RightUpperArm.Size = Vector3.new(0.7,1.11,0.85)
659RightUpperArm.Name = "RightUpperArm"
660RightUpperArm.Parent = Pwnga
661
662RightShoulderRigAttachment.CFrame = CFrame.new(-0.35,0.375,0,1,0,0,0,1,0,0,0,1)
663RightShoulderRigAttachment.Position = Vector3.new(-0.35,0.375,0)
664RightShoulderRigAttachment.Name = "RightShoulderRigAttachment"
665RightShoulderRigAttachment.Parent = RightUpperArm
666
667OriginalPosition_12.Value = Vector3.new(-0.5,0.394,0)
668OriginalPosition_12.Name = "OriginalPosition"
669OriginalPosition_12.Parent = RightShoulderRigAttachment
670
671RightElbowRigAttachment_1.CFrame = CFrame.new(0,-0.317,0,1,0,0,0,1,0,0,0,1)
672RightElbowRigAttachment_1.Position = Vector3.new(0,-0.317,0)
673RightElbowRigAttachment_1.Name = "RightElbowRigAttachment"
674RightElbowRigAttachment_1.Parent = RightUpperArm
675
676OriginalPosition_13.Value = Vector3.new(0,-0.334,0)
677OriginalPosition_13.Name = "OriginalPosition"
678OriginalPosition_13.Parent = RightElbowRigAttachment_1
679
680RightShoulderAttachment.CFrame = CFrame.new(0,0.555,0,1,0,0,0,1,0,0,0,1)
681RightShoulderAttachment.Position = Vector3.new(0,0.555,0)
682RightShoulderAttachment.Name = "RightShoulderAttachment"
683RightShoulderAttachment.Parent = RightUpperArm
684
685OriginalPosition_14.Value = Vector3.new(0,0.584,0)
686OriginalPosition_14.Name = "OriginalPosition"
687OriginalPosition_14.Parent = RightShoulderAttachment
688
689RightShoulder.C0 = CFrame.new(0.7,0.535,0,1,0,0,0,1,0,0,0,1)
690RightShoulder.C1 = CFrame.new(-0.35,0.375,0,1,0,0,0,1,0,0,0,1)
691RightShoulder.Part0 = UpperTorso
692RightShoulder.Part1 = RightUpperArm
693RightShoulder.Name = "RightShoulder"
694RightShoulder.Parent = RightUpperArm
695
696OriginalSize_6.Value = Vector3.new(1,1.169,1)
697OriginalSize_6.Name = "OriginalSize"
698OriginalSize_6.Parent = RightUpperArm
699
700UpperTorso.CollisionFidelity = Enum.CollisionFidelity.Box
701UpperTorso.Anchored = true
702UpperTorso.CFrame = CFrame.new(-10.661,5.002,3.468,0.026,0.999,0.042,0,-0.042,0.999,1,-0.026,-0.001)
703UpperTorso.Color = Color3.new(0.918,0.722,0.573)
704UpperTorso.Size = Vector3.new(1.4,1.52,0.85)
705UpperTorso.Name = "UpperTorso"
706UpperTorso.Parent = Pwnga
707
708WaistRigAttachment.CFrame = CFrame.new(0,-0.76,0,1,0,0,0,1,0,0,0,1)
709WaistRigAttachment.Position = Vector3.new(0,-0.76,0)
710WaistRigAttachment.Name = "WaistRigAttachment"
711WaistRigAttachment.Parent = UpperTorso
712
713OriginalPosition_15.Value = Vector3.new(0,-0.8,0)
714OriginalPosition_15.Name = "OriginalPosition"
715OriginalPosition_15.Parent = WaistRigAttachment
716
717NeckRigAttachment.CFrame = CFrame.new(0,0.76,0,1,0,0,0,1,0,0,0,1)
718NeckRigAttachment.Position = Vector3.new(0,0.76,0)
719NeckRigAttachment.Name = "NeckRigAttachment"
720NeckRigAttachment.Parent = UpperTorso
721
722OriginalPosition_16.Value = Vector3.new(0,0.8,0)
723OriginalPosition_16.Name = "OriginalPosition"
724OriginalPosition_16.Parent = NeckRigAttachment
725
726LeftShoulderRigAttachment_1.CFrame = CFrame.new(-0.7,0.535,0,1,0,0,0,1,0,0,0,1)
727LeftShoulderRigAttachment_1.Position = Vector3.new(-0.7,0.535,0)
728LeftShoulderRigAttachment_1.Name = "LeftShoulderRigAttachment"
729LeftShoulderRigAttachment_1.Parent = UpperTorso
730
731OriginalPosition_17.Value = Vector3.new(-1,0.563,0)
732OriginalPosition_17.Name = "OriginalPosition"
733OriginalPosition_17.Parent = LeftShoulderRigAttachment_1
734
735RightShoulderRigAttachment_1.CFrame = CFrame.new(0.7,0.535,0,1,0,0,0,1,0,0,0,1)
736RightShoulderRigAttachment_1.Position = Vector3.new(0.7,0.535,0)
737RightShoulderRigAttachment_1.Name = "RightShoulderRigAttachment"
738RightShoulderRigAttachment_1.Parent = UpperTorso
739
740OriginalPosition_18.Value = Vector3.new(1,0.563,0)
741OriginalPosition_18.Name = "OriginalPosition"
742OriginalPosition_18.Parent = RightShoulderRigAttachment_1
743
744BodyFrontAttachment.CFrame = CFrame.new(0,-0.19,-0.425,1,0,0,0,1,0,0,0,1)
745BodyFrontAttachment.Position = Vector3.new(0,-0.19,-0.425)
746BodyFrontAttachment.Name = "BodyFrontAttachment"
747BodyFrontAttachment.Parent = UpperTorso
748
749OriginalPosition_19.Value = Vector3.new(0,-0.2,-0.5)
750OriginalPosition_19.Name = "OriginalPosition"
751OriginalPosition_19.Parent = BodyFrontAttachment
752
753BodyBackAttachment.CFrame = CFrame.new(0,-0.19,0.425,1,0,0,0,1,0,0,0,1)
754BodyBackAttachment.Position = Vector3.new(0,-0.19,0.425)
755BodyBackAttachment.Name = "BodyBackAttachment"
756BodyBackAttachment.Parent = UpperTorso
757
758OriginalPosition_20.Value = Vector3.new(0,-0.2,0.5)
759OriginalPosition_20.Name = "OriginalPosition"
760OriginalPosition_20.Parent = BodyBackAttachment
761
762LeftCollarAttachment.CFrame = CFrame.new(-0.7,0.76,0,1,0,0,0,1,0,0,0,1)
763LeftCollarAttachment.Position = Vector3.new(-0.7,0.76,0)
764LeftCollarAttachment.Name = "LeftCollarAttachment"
765LeftCollarAttachment.Parent = UpperTorso
766
767OriginalPosition_21.Value = Vector3.new(-1,0.8,0)
768OriginalPosition_21.Name = "OriginalPosition"
769OriginalPosition_21.Parent = LeftCollarAttachment
770
771RightCollarAttachment.CFrame = CFrame.new(0.7,0.76,0,1,0,0,0,1,0,0,0,1)
772RightCollarAttachment.Position = Vector3.new(0.7,0.76,0)
773RightCollarAttachment.Name = "RightCollarAttachment"
774RightCollarAttachment.Parent = UpperTorso
775
776OriginalPosition_22.Value = Vector3.new(1,0.8,0)
777OriginalPosition_22.Name = "OriginalPosition"
778OriginalPosition_22.Parent = RightCollarAttachment
779
780NeckAttachment.CFrame = CFrame.new(0,0.76,0,1,0,0,0,1,0,0,0,1)
781NeckAttachment.Position = Vector3.new(0,0.76,0)
782NeckAttachment.Name = "NeckAttachment"
783NeckAttachment.Parent = UpperTorso
784
785OriginalPosition_23.Value = Vector3.new(0,0.8,0)
786OriginalPosition_23.Name = "OriginalPosition"
787OriginalPosition_23.Parent = NeckAttachment
788
789Waist.C0 = CFrame.new(0,0.19,0,1,0,0,0,1,0,0,0,1)
790Waist.C1 = CFrame.new(0,-0.76,0,1,0,0,0,1,0,0,0,1)
791Waist.Part0 = LowerTorso
792Waist.Part1 = UpperTorso
793Waist.Name = "Waist"
794Waist.Parent = UpperTorso
795
796OriginalSize_7.Value = Vector3.new(2,1.6,1)
797OriginalSize_7.Name = "OriginalSize"
798OriginalSize_7.Parent = UpperTorso
799
800LeftFoot.CollisionFidelity = Enum.CollisionFidelity.Box
801LeftFoot.Anchored = true
802LeftFoot.CFrame = CFrame.new(-13.438,5.122,2.734,-0.252,0.967,0.04,0,-0.042,0.999,0.968,0.252,0.011)
803LeftFoot.CanCollide = false
804LeftFoot.Color = Color3.new(0.918,0.722,0.573)
805LeftFoot.Size = Vector3.new(0.7,0.285,0.85)
806LeftFoot.Name = "LeftFoot"
807LeftFoot.Parent = Pwnga
808
809LeftAnkleRigAttachment.CFrame = CFrame.new(0,0.097,0,1,0,0,0,1,0,0,0,1)
810LeftAnkleRigAttachment.Position = Vector3.new(0,0.097,0)
811LeftAnkleRigAttachment.Name = "LeftAnkleRigAttachment"
812LeftAnkleRigAttachment.Parent = LeftFoot
813
814OriginalPosition_24.Value = Vector3.new(0,0.102,0)
815OriginalPosition_24.Name = "OriginalPosition"
816OriginalPosition_24.Parent = LeftAnkleRigAttachment
817
818OriginalSize_8.Value = Vector3.new(1,0.3,1)
819OriginalSize_8.Name = "OriginalSize"
820OriginalSize_8.Parent = LeftFoot
821
822LeftAnkle.C0 = CFrame.new(0,-0.52,0,1,0,0,0,1,0,0,0,1)
823LeftAnkle.C1 = CFrame.new(0,0.097,0,1,0,0,0,1,0,0,0,1)
824LeftAnkle.Part0 = LeftLowerLeg
825LeftAnkle.Part1 = LeftFoot
826LeftAnkle.Name = "LeftAnkle"
827LeftAnkle.Parent = LeftFoot
828
829LeftLowerLeg.CollisionFidelity = Enum.CollisionFidelity.Box
830LeftLowerLeg.Anchored = true
831LeftLowerLeg.CFrame = CFrame.new(-12.842,5.097,2.889,-0.252,0.967,0.04,0,-0.042,0.999,0.968,0.252,0.011)
832LeftLowerLeg.CanCollide = false
833LeftLowerLeg.Color = Color3.new(0.918,0.722,0.573)
834LeftLowerLeg.Size = Vector3.new(0.7,1.133,0.85)
835LeftLowerLeg.Name = "LeftLowerLeg"
836LeftLowerLeg.Parent = Pwnga
837
838LeftKneeRigAttachment.CFrame = CFrame.new(0,0.36,0,1,0,0,0,1,0,0,0,1)
839LeftKneeRigAttachment.Position = Vector3.new(0,0.36,0)
840LeftKneeRigAttachment.Name = "LeftKneeRigAttachment"
841LeftKneeRigAttachment.Parent = LeftLowerLeg
842
843OriginalPosition_25.Value = Vector3.new(0,0.379,0)
844OriginalPosition_25.Name = "OriginalPosition"
845OriginalPosition_25.Parent = LeftKneeRigAttachment
846
847LeftAnkleRigAttachment_1.CFrame = CFrame.new(0,-0.52,0,1,0,0,0,1,0,0,0,1)
848LeftAnkleRigAttachment_1.Position = Vector3.new(0,-0.52,0)
849LeftAnkleRigAttachment_1.Name = "LeftAnkleRigAttachment"
850LeftAnkleRigAttachment_1.Parent = LeftLowerLeg
851
852OriginalPosition_26.Value = Vector3.new(0,-0.547,0)
853OriginalPosition_26.Name = "OriginalPosition"
854OriginalPosition_26.Parent = LeftAnkleRigAttachment_1
855
856LeftKnee.C0 = CFrame.new(0,-0.381,0,1,0,0,0,1,0,0,0,1)
857LeftKnee.C1 = CFrame.new(0,0.36,0,1,0,0,0,1,0,0,0,1)
858LeftKnee.Part0 = LeftUpperLeg
859LeftKnee.Part1 = LeftLowerLeg
860LeftKnee.Name = "LeftKnee"
861LeftKnee.Parent = LeftLowerLeg
862
863OriginalSize_9.Value = Vector3.new(1,1.193,1)
864OriginalSize_9.Name = "OriginalSize"
865OriginalSize_9.Parent = LeftLowerLeg
866
867LeftUpperLeg.CollisionFidelity = Enum.CollisionFidelity.Box
868LeftUpperLeg.Anchored = true
869LeftUpperLeg.CFrame = CFrame.new(-12.126,5.066,3.076,-0.252,0.967,0.04,0,-0.042,0.999,0.968,0.252,0.011)
870LeftUpperLeg.CanCollide = false
871LeftUpperLeg.Color = Color3.new(0.918,0.722,0.573)
872LeftUpperLeg.Size = Vector3.new(0.7,1.156,0.85)
873LeftUpperLeg.Name = "LeftUpperLeg"
874LeftUpperLeg.Parent = Pwnga
875
876LeftHipRigAttachment.CFrame = CFrame.new(0,0.4,0,1,0,0,0,1,0,0,0,1)
877LeftHipRigAttachment.Position = Vector3.new(0,0.4,0)
878LeftHipRigAttachment.Name = "LeftHipRigAttachment"
879LeftHipRigAttachment.Parent = LeftUpperLeg
880
881OriginalPosition_27.Value = Vector3.new(0,0.421,0)
882OriginalPosition_27.Name = "OriginalPosition"
883OriginalPosition_27.Parent = LeftHipRigAttachment
884
885LeftKneeRigAttachment_1.CFrame = CFrame.new(0,-0.381,0,1,0,0,0,1,0,0,0,1)
886LeftKneeRigAttachment_1.Position = Vector3.new(0,-0.381,0)
887LeftKneeRigAttachment_1.Name = "LeftKneeRigAttachment"
888LeftKneeRigAttachment_1.Parent = LeftUpperLeg
889
890OriginalPosition_28.Value = Vector3.new(0,-0.401,0)
891OriginalPosition_28.Name = "OriginalPosition"
892OriginalPosition_28.Parent = LeftKneeRigAttachment_1
893
894OriginalSize_10.Value = Vector3.new(1,1.217,1)
895OriginalSize_10.Name = "OriginalSize"
896OriginalSize_10.Parent = LeftUpperLeg
897
898RightFoot.CollisionFidelity = Enum.CollisionFidelity.Box
899RightFoot.Anchored = true
900RightFoot.CFrame = CFrame.new(-13.705,5.122,4.087,0.114,0.993,0.041,0,-0.042,0.999,0.993,-0.114,-0.005)
901RightFoot.CanCollide = false
902RightFoot.Color = Color3.new(0.918,0.722,0.573)
903RightFoot.Size = Vector3.new(0.7,0.285,0.85)
904RightFoot.Name = "RightFoot"
905RightFoot.Parent = Pwnga
906
907RightAnkleRigAttachment.CFrame = CFrame.new(0,0.097,0,1,0,0,0,1,0,0,0,1)
908RightAnkleRigAttachment.Position = Vector3.new(0,0.097,0)
909RightAnkleRigAttachment.Name = "RightAnkleRigAttachment"
910RightAnkleRigAttachment.Parent = RightFoot
911
912OriginalPosition_29.Value = Vector3.new(0,0.102,0)
913OriginalPosition_29.Name = "OriginalPosition"
914OriginalPosition_29.Parent = RightAnkleRigAttachment
915
916OriginalSize_11.Value = Vector3.new(1,0.3,1)
917OriginalSize_11.Name = "OriginalSize"
918OriginalSize_11.Parent = RightFoot
919
920RightLowerLeg.CollisionFidelity = Enum.CollisionFidelity.Box
921RightLowerLeg.Anchored = true
922RightLowerLeg.CFrame = CFrame.new(-12.898,5.097,4.275,0.385,0.922,0.038,0,-0.042,0.999,0.923,-0.385,-0.016)
923RightLowerLeg.CanCollide = false
924RightLowerLeg.Color = Color3.new(0.918,0.722,0.573)
925RightLowerLeg.Size = Vector3.new(0.7,1.133,0.85)
926RightLowerLeg.Name = "RightLowerLeg"
927RightLowerLeg.Parent = Pwnga
928
929RightKneeRigAttachment.CFrame = CFrame.new(0,0.36,0,1,0,0,0,1,0,0,0,1)
930RightKneeRigAttachment.Position = Vector3.new(0,0.36,0)
931RightKneeRigAttachment.Name = "RightKneeRigAttachment"
932RightKneeRigAttachment.Parent = RightLowerLeg
933
934OriginalPosition_30.Value = Vector3.new(0,0.379,0)
935OriginalPosition_30.Name = "OriginalPosition"
936OriginalPosition_30.Parent = RightKneeRigAttachment
937
938RightAnkleRigAttachment_1.CFrame = CFrame.new(0,-0.52,0,1,0,0,0,1,0,0,0,1)
939RightAnkleRigAttachment_1.Position = Vector3.new(0,-0.52,0)
940RightAnkleRigAttachment_1.Name = "RightAnkleRigAttachment"
941RightAnkleRigAttachment_1.Parent = RightLowerLeg
942
943OriginalPosition_31.Value = Vector3.new(0,-0.547,0)
944OriginalPosition_31.Name = "OriginalPosition"
945OriginalPosition_31.Parent = RightAnkleRigAttachment_1
946
947RightKnee.C0 = CFrame.new(0,-0.381,0,1,0,0,0,1,0,0,0,1)
948RightKnee.C1 = CFrame.new(0,0.36,0,1,0,0,0,1,0,0,0,1)
949RightKnee.Part0 = RightUpperLeg
950RightKnee.Part1 = RightLowerLeg
951RightKnee.Name = "RightKnee"
952RightKnee.Parent = RightLowerLeg
953
954OriginalSize_12.Value = Vector3.new(1,1.193,1)
955OriginalSize_12.Name = "OriginalSize"
956OriginalSize_12.Parent = RightLowerLeg
957
958RightUpperLeg.CollisionFidelity = Enum.CollisionFidelity.Box
959RightUpperLeg.Anchored = true
960RightUpperLeg.CFrame = CFrame.new(-12.214,5.066,3.99,0.385,0.922,0.038,0,-0.042,0.999,0.923,-0.385,-0.016)
961RightUpperLeg.CanCollide = false
962RightUpperLeg.Color = Color3.new(0.918,0.722,0.573)
963RightUpperLeg.Size = Vector3.new(0.7,1.156,0.85)
964RightUpperLeg.Name = "RightUpperLeg"
965RightUpperLeg.Parent = Pwnga
966
967RightHipRigAttachment.CFrame = CFrame.new(0,0.4,0,1,0,0,0,1,0,0,0,1)
968RightHipRigAttachment.Position = Vector3.new(0,0.4,0)
969RightHipRigAttachment.Name = "RightHipRigAttachment"
970RightHipRigAttachment.Parent = RightUpperLeg
971
972OriginalPosition_32.Value = Vector3.new(0,0.421,0)
973OriginalPosition_32.Name = "OriginalPosition"
974OriginalPosition_32.Parent = RightHipRigAttachment
975
976RightKneeRigAttachment_1.CFrame = CFrame.new(0,-0.381,0,1,0,0,0,1,0,0,0,1)
977RightKneeRigAttachment_1.Position = Vector3.new(0,-0.381,0)
978RightKneeRigAttachment_1.Name = "RightKneeRigAttachment"
979RightKneeRigAttachment_1.Parent = RightUpperLeg
980
981OriginalPosition_33.Value = Vector3.new(0,-0.401,0)
982OriginalPosition_33.Name = "OriginalPosition"
983OriginalPosition_33.Parent = RightKneeRigAttachment_1
984
985OriginalSize_13.Value = Vector3.new(1,1.217,1)
986OriginalSize_13.Name = "OriginalSize"
987OriginalSize_13.Parent = RightUpperLeg
988
989LowerTorso.CollisionFidelity = Enum.CollisionFidelity.Box
990LowerTorso.Anchored = true
991LowerTorso.CFrame = CFrame.new(-11.61,5.041,3.493,0.026,0.999,0.042,0,-0.042,0.999,1,-0.026,-0.001)
992LowerTorso.Color = Color3.new(0.918,0.722,0.573)
993LowerTorso.Size = Vector3.new(1.4,0.38,0.85)
994LowerTorso.Name = "LowerTorso"
995LowerTorso.Parent = Pwnga
996
997RootRigAttachment_1.CFrame = CFrame.new(0,-0.19,0,1,0,0,0,1,0,0,0,1)
998RootRigAttachment_1.Position = Vector3.new(0,-0.19,0)
999RootRigAttachment_1.Name = "RootRigAttachment"
1000RootRigAttachment_1.Parent = LowerTorso
1001
1002OriginalPosition_34.Value = Vector3.new(0,-0.2,0)
1003OriginalPosition_34.Name = "OriginalPosition"
1004OriginalPosition_34.Parent = RootRigAttachment_1
1005
1006WaistRigAttachment_1.CFrame = CFrame.new(0,0.19,0,1,0,0,0,1,0,0,0,1)
1007WaistRigAttachment_1.Position = Vector3.new(0,0.19,0)
1008WaistRigAttachment_1.Name = "WaistRigAttachment"
1009WaistRigAttachment_1.Parent = LowerTorso
1010
1011OriginalPosition_35.Value = Vector3.new(0,0.2,0)
1012OriginalPosition_35.Name = "OriginalPosition"
1013OriginalPosition_35.Parent = WaistRigAttachment_1
1014
1015LeftHipRigAttachment_1.CFrame = CFrame.new(-0.35,-0.19,0,1,0,0,0,1,0,0,0,1)
1016LeftHipRigAttachment_1.Position = Vector3.new(-0.35,-0.19,0)
1017LeftHipRigAttachment_1.Name = "LeftHipRigAttachment"
1018LeftHipRigAttachment_1.Parent = LowerTorso
1019
1020OriginalPosition_36.Value = Vector3.new(-0.5,-0.2,0)
1021OriginalPosition_36.Name = "OriginalPosition"
1022OriginalPosition_36.Parent = LeftHipRigAttachment_1
1023
1024RightHipRigAttachment_1.CFrame = CFrame.new(0.35,-0.19,0,1,0,0,0,1,0,0,0,1)
1025RightHipRigAttachment_1.Position = Vector3.new(0.35,-0.19,0)
1026RightHipRigAttachment_1.Name = "RightHipRigAttachment"
1027RightHipRigAttachment_1.Parent = LowerTorso
1028
1029OriginalPosition_37.Value = Vector3.new(0.5,-0.2,0)
1030OriginalPosition_37.Name = "OriginalPosition"
1031OriginalPosition_37.Parent = RightHipRigAttachment_1
1032
1033WaistCenterAttachment.CFrame = CFrame.new(0,-0.19,0,1,0,0,0,1,0,0,0,1)
1034WaistCenterAttachment.Position = Vector3.new(0,-0.19,0)
1035WaistCenterAttachment.Name = "WaistCenterAttachment"
1036WaistCenterAttachment.Parent = LowerTorso
1037
1038OriginalPosition_38.Value = Vector3.new(0,-0.2,0)
1039OriginalPosition_38.Name = "OriginalPosition"
1040OriginalPosition_38.Parent = WaistCenterAttachment
1041
1042WaistFrontAttachment.CFrame = CFrame.new(0,-0.19,-0.425,1,0,0,0,1,0,0,0,1)
1043WaistFrontAttachment.Position = Vector3.new(0,-0.19,-0.425)
1044WaistFrontAttachment.Name = "WaistFrontAttachment"
1045WaistFrontAttachment.Parent = LowerTorso
1046
1047OriginalPosition_39.Value = Vector3.new(0,-0.2,-0.5)
1048OriginalPosition_39.Name = "OriginalPosition"
1049OriginalPosition_39.Parent = WaistFrontAttachment
1050
1051WaistBackAttachment.CFrame = CFrame.new(0,-0.19,0.425,1,0,0,0,1,0,0,0,1)
1052WaistBackAttachment.Position = Vector3.new(0,-0.19,0.425)
1053WaistBackAttachment.Name = "WaistBackAttachment"
1054WaistBackAttachment.Parent = LowerTorso
1055
1056OriginalPosition_40.Value = Vector3.new(0,-0.2,0.5)
1057OriginalPosition_40.Name = "OriginalPosition"
1058OriginalPosition_40.Parent = WaistBackAttachment
1059
1060Root.C0 = CFrame.new(0,-0.95,0,1,0,0,0,1,0,0,0,1)
1061Root.C1 = CFrame.new(0,-0.19,0,1,0,0,0,1,0,0,0,1)
1062Root.Part0 = HumanoidRootPart
1063Root.Part1 = LowerTorso
1064Root.Name = "Root"
1065Root.Parent = LowerTorso
1066
1067OriginalSize_14.Value = Vector3.new(2,0.4,1)
1068OriginalSize_14.Name = "OriginalSize"
1069OriginalSize_14.Parent = LowerTorso
1070
1071Humanoid.HipHeight = 1.9
1072Humanoid.RigType = Enum.HumanoidRigType.R15
1073Humanoid.Parent = Pwnga
1074
1075Animator.Parent = Humanoid
1076
1077BodyTypeScale.Name = "BodyTypeScale"
1078BodyTypeScale.Parent = Humanoid
1079
1080BodyProportionScale.Name = "BodyProportionScale"
1081BodyProportionScale.Parent = Humanoid
1082
1083BodyWidthScale.Value = 0.7
1084BodyWidthScale.Name = "BodyWidthScale"
1085BodyWidthScale.Parent = Humanoid
1086
1087BodyHeightScale.Value = 0.95
1088BodyHeightScale.Name = "BodyHeightScale"
1089BodyHeightScale.Parent = Humanoid
1090
1091BodyDepthScale.Value = 0.85
1092BodyDepthScale.Name = "BodyDepthScale"
1093BodyDepthScale.Parent = Humanoid
1094
1095HeadScale.Value = 0.95
1096HeadScale.Name = "HeadScale"
1097HeadScale.Parent = Humanoid
1098
1099Head.Anchored = true
1100Head.BottomSurface = Enum.SurfaceType.Smooth
1101Head.CFrame = CFrame.new(-9.311,5.477,3.435,-0.002,-0.024,-1,0.026,0.999,-0.024,1,-0.026,-0.001)
1102Head.Color = Color3.new(0.918,0.722,0.573)
1103Head.Size = Vector3.new(1.9,0.95,0.95)
1104Head.TopSurface = Enum.SurfaceType.Smooth
1105Head.Name = "Head"
1106Head.Parent = Pwnga
1107
1108Mesh.Scale = Vector3.new(1.25,1.25,1.25)
1109Mesh.Parent = Head
1110
1111OriginalSize_15.Value = Vector3.new(1.25,1.25,1.25)
1112OriginalSize_15.Name = "OriginalSize"
1113OriginalSize_15.Parent = Mesh
1114
1115FaceCenterAttachment.Axis = Vector3.new(1,0,0)
1116FaceCenterAttachment.CFrame = CFrame.new()
1117FaceCenterAttachment.Orientation = Vector3.new(0,0,0)
1118FaceCenterAttachment.Rotation = Vector3.new(0,0,0)
1119FaceCenterAttachment.SecondaryAxis = Vector3.new(0,1,0)
1120FaceCenterAttachment.Name = "FaceCenterAttachment"
1121FaceCenterAttachment.Parent = Head
1122
1123OriginalPosition_41.Name = "OriginalPosition"
1124OriginalPosition_41.Parent = FaceCenterAttachment
1125
1126FaceFrontAttachment.Axis = Vector3.new(1,0,0)
1127FaceFrontAttachment.CFrame = CFrame.new(0,0,-0.57,1,0,0,0,1,0,0,0,1)
1128FaceFrontAttachment.Orientation = Vector3.new(0,0,0)
1129FaceFrontAttachment.Position = Vector3.new(0,0,-0.57)
1130FaceFrontAttachment.Rotation = Vector3.new(0,0,0)
1131FaceFrontAttachment.SecondaryAxis = Vector3.new(0,1,0)
1132FaceFrontAttachment.Name = "FaceFrontAttachment"
1133FaceFrontAttachment.Parent = Head
1134
1135OriginalPosition_42.Value = Vector3.new(0,0,-0.6)
1136OriginalPosition_42.Name = "OriginalPosition"
1137OriginalPosition_42.Parent = FaceFrontAttachment
1138
1139HairAttachment.Axis = Vector3.new(1,0,0)
1140HairAttachment.CFrame = CFrame.new(0,0.57,0,1,0,0,0,1,0,0,0,1)
1141HairAttachment.Orientation = Vector3.new(0,0,0)
1142HairAttachment.Position = Vector3.new(0,0.57,0)
1143HairAttachment.Rotation = Vector3.new(0,0,0)
1144HairAttachment.SecondaryAxis = Vector3.new(0,1,0)
1145HairAttachment.Name = "HairAttachment"
1146HairAttachment.Parent = Head
1147
1148OriginalPosition_43.Value = Vector3.new(0,0.6,0)
1149OriginalPosition_43.Name = "OriginalPosition"
1150OriginalPosition_43.Parent = HairAttachment
1151
1152HatAttachment.Axis = Vector3.new(1,0,0)
1153HatAttachment.CFrame = CFrame.new(0,0.57,0,1,0,0,0,1,0,0,0,1)
1154HatAttachment.Orientation = Vector3.new(0,0,0)
1155HatAttachment.Position = Vector3.new(0,0.57,0)
1156HatAttachment.Rotation = Vector3.new(0,0,0)
1157HatAttachment.SecondaryAxis = Vector3.new(0,1,0)
1158HatAttachment.Name = "HatAttachment"
1159HatAttachment.Parent = Head
1160
1161OriginalPosition_44.Value = Vector3.new(0,0.6,0)
1162OriginalPosition_44.Name = "OriginalPosition"
1163OriginalPosition_44.Parent = HatAttachment
1164
1165NeckRigAttachment_1.CFrame = CFrame.new(0,-0.475,0,1,0,0,0,1,0,0,0,1)
1166NeckRigAttachment_1.Position = Vector3.new(0,-0.475,0)
1167NeckRigAttachment_1.Name = "NeckRigAttachment"
1168NeckRigAttachment_1.Parent = Head
1169
1170OriginalPosition_45.Value = Vector3.new(0,-0.5,0)
1171OriginalPosition_45.Name = "OriginalPosition"
1172OriginalPosition_45.Parent = NeckRigAttachment_1
1173
1174OriginalSize_16.Value = Vector3.new(2,1,1)
1175OriginalSize_16.Name = "OriginalSize"
1176OriginalSize_16.Parent = Head
1177
1178GettingUp.EmitterSize = 5
1179GettingUp.MaxDistance = 150
1180GettingUp.SoundId = "rbxasset://sounds/action_get_up.mp3"
1181GettingUp.Volume = 0.65
1182GettingUp.Name = "GettingUp"
1183GettingUp.Parent = Head
1184
1185CharacterSoundEvent.Name = "CharacterSoundEvent"
1186CharacterSoundEvent.Parent = GettingUp
1187
1188Died.EmitterSize = 5
1189Died.MaxDistance = 150
1190Died.SoundId = "rbxasset://sounds/uuhhh.mp3"
1191Died.Volume = 0.65
1192Died.Name = "Died"
1193Died.Parent = Head
1194
1195CharacterSoundEvent_1.Name = "CharacterSoundEvent"
1196CharacterSoundEvent_1.Parent = Died
1197
1198FreeFalling.EmitterSize = 5
1199FreeFalling.Looped = true
1200FreeFalling.MaxDistance = 150
1201FreeFalling.SoundId = "rbxasset://sounds/action_falling.mp3"
1202FreeFalling.TimePosition = 0.017
1203FreeFalling.Volume = 0
1204FreeFalling.Name = "FreeFalling"
1205FreeFalling.Parent = Head
1206
1207CharacterSoundEvent_2.Name = "CharacterSoundEvent"
1208CharacterSoundEvent_2.Parent = FreeFalling
1209
1210Jumping.EmitterSize = 5
1211Jumping.MaxDistance = 150
1212Jumping.SoundId = "rbxasset://sounds/action_jump.mp3"
1213Jumping.Volume = 0.65
1214Jumping.Name = "Jumping"
1215Jumping.Parent = Head
1216
1217CharacterSoundEvent_3.Name = "CharacterSoundEvent"
1218CharacterSoundEvent_3.Parent = Jumping
1219
1220Landing.EmitterSize = 5
1221Landing.MaxDistance = 150
1222Landing.SoundId = "rbxasset://sounds/action_jump_land.mp3"
1223Landing.Volume = 1
1224Landing.Name = "Landing"
1225Landing.Parent = Head
1226
1227CharacterSoundEvent_4.Name = "CharacterSoundEvent"
1228CharacterSoundEvent_4.Parent = Landing
1229
1230Splash.EmitterSize = 5
1231Splash.MaxDistance = 150
1232Splash.SoundId = "rbxasset://sounds/impact_water.mp3"
1233Splash.Volume = 0.65
1234Splash.Name = "Splash"
1235Splash.Parent = Head
1236
1237CharacterSoundEvent_5.Name = "CharacterSoundEvent"
1238CharacterSoundEvent_5.Parent = Splash
1239
1240Running.EmitterSize = 5
1241Running.Looped = true
1242Running.MaxDistance = 150
1243Running.PlaybackSpeed = 1.85
1244Running.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
1245Running.Volume = 0.65
1246Running.Name = "Running"
1247Running.Parent = Head
1248
1249CharacterSoundEvent_6.Name = "CharacterSoundEvent"
1250CharacterSoundEvent_6.Parent = Running
1251
1252Swimming.EmitterSize = 5
1253Swimming.Looped = true
1254Swimming.MaxDistance = 150
1255Swimming.PlaybackSpeed = 1.6
1256Swimming.SoundId = "rbxasset://sounds/action_swim.mp3"
1257Swimming.Volume = 0.65
1258Swimming.Name = "Swimming"
1259Swimming.Parent = Head
1260
1261CharacterSoundEvent_7.Name = "CharacterSoundEvent"
1262CharacterSoundEvent_7.Parent = Swimming
1263
1264Climbing.EmitterSize = 5
1265Climbing.Looped = true
1266Climbing.MaxDistance = 150
1267Climbing.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
1268Climbing.Volume = 0.65
1269Climbing.Name = "Climbing"
1270Climbing.Parent = Head
1271
1272CharacterSoundEvent_8.Name = "CharacterSoundEvent"
1273CharacterSoundEvent_8.Parent = Climbing
1274
1275Decal.Texture = "http://www.roblox.com/asset/?id=2240908081"
1276Decal.Parent = Head
1277
1278table.insert(functions,sandbox(Sound,function()
1279--[[
1280 Author: @spotco
1281 This script creates sounds which are placed under the character head.
1282 These sounds are used by the "LocalSound" script.
1283
1284 To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
1285 The default Sound script loaded for every character will then be replaced with your copy of the script.
1286]]--
1287local ReplicatedStorage = game:GetService("ReplicatedStorage")
1288local Players = game:GetService("Players")
1289
1290local SOUND_EVENT_FOLDER_NAME = "DefaultSoundEvents"
1291local DEFAULT_SERVER_SOUND_EVENT_NAME = "DefaultServerSoundEvent"
1292
1293local SoundEventFolder = ReplicatedStorage:FindFirstChild(SOUND_EVENT_FOLDER_NAME)
1294local DefaultServerSoundEvent = nil
1295
1296local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
1297if useSoundDispatcher then
1298 if not SoundEventFolder then
1299 SoundEventFolder = Instance.new("Folder")
1300 SoundEventFolder.Name = SOUND_EVENT_FOLDER_NAME
1301 SoundEventFolder.Archivable = false
1302 SoundEventFolder.Parent = ReplicatedStorage
1303 end
1304
1305 DefaultServerSoundEvent = SoundEventFolder:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
1306else
1307 DefaultServerSoundEvent = ReplicatedStorage:FindFirstChild(DEFAULT_SERVER_SOUND_EVENT_NAME)
1308end
1309
1310if not DefaultServerSoundEvent then
1311 if useSoundDispatcher then
1312 DefaultServerSoundEvent = Instance.new("RemoteEvent", SoundEventFolder)
1313 else
1314 DefaultServerSoundEvent = Instance.new("RemoteEvent", ReplicatedStorage)
1315 end
1316
1317 DefaultServerSoundEvent.Name = DEFAULT_SERVER_SOUND_EVENT_NAME
1318 DefaultServerSoundEvent.OnServerEvent:Connect(function() end)
1319end
1320
1321local function CreateNewSound(name, id, looped, pitch, parent)
1322 local sound = Instance.new("Sound")
1323 sound.SoundId = id
1324 sound.Name = name
1325 sound.archivable = false
1326 sound.Pitch = pitch
1327 sound.Looped = looped
1328 sound.MinDistance = 5
1329 sound.MaxDistance = 150
1330 sound.Volume = 0.65
1331 sound.Parent = parent
1332
1333 if DefaultServerSoundEvent then
1334 local CharacterSoundEvent = Instance.new("RemoteEvent", sound)
1335 CharacterSoundEvent.Name = "CharacterSoundEvent"
1336 CharacterSoundEvent.OnServerEvent:Connect(function(player, playing, resetPosition)
1337 if type(playing) ~= "boolean" then
1338 return
1339 end
1340 if type(resetPosition) ~= "boolean" then
1341 return
1342 end
1343
1344 if player.Character ~= script.Parent then
1345 return
1346 end
1347 for _, p in pairs(Players:GetPlayers()) do
1348 if p ~= player then
1349 -- Connect to the dispatcher to check if the player has loaded.
1350 if useSoundDispatcher then
1351 SoundEventFolder:FindFirstChild("SoundDispatcher"):Fire(p, sound, playing, resetPosition)
1352 else
1353 DefaultServerSoundEvent:FireClient(p, sound, playing, resetPosition)
1354 end
1355 end
1356 end
1357 end)
1358 end
1359 return sound
1360end
1361
1362local head = script.Parent:FindFirstChild("Head")
1363if not head then
1364 error("Sound script parent has no child Head.")
1365 return
1366end
1367
1368CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
1369CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
1370CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
1371CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
1372CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
1373CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
1374CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
1375CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
1376CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
1377end))
1378Sound.Name = "Sound"
1379Sound.Parent = Pwnga
1380
1381table.insert(functions,sandbox(LocalSound,function()
1382--[[
1383 Author: @spotco
1384 This script runs locally for the player of the given humanoid.
1385 This script triggers humanoid sound play/pause actions locally.
1386
1387 The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
1388 immediately for the player and is replicated to all other players.
1389
1390 This script is optimized to reduce network traffic through minimizing the amount of property replication.
1391]]--
1392
1393--All sounds are referenced by this ID
1394local SFX = {
1395 Died = 0;
1396 Running = 1;
1397 Swimming = 2;
1398 Climbing = 3,
1399 Jumping = 4;
1400 GettingUp = 5;
1401 FreeFalling = 6;
1402 FallingDown = 7;
1403 Landing = 8;
1404 Splash = 9;
1405}
1406
1407local useUpdatedLocalSoundFlag = UserSettings():IsUserFeatureEnabled("UserFixCharacterSoundIssues")
1408
1409local Humanoid = nil
1410local Head = nil
1411--SFX ID to Sound object
1412local Sounds = {}
1413local SoundService = game:GetService("SoundService")
1414local soundEventFolderName = "DefaultSoundEvents"
1415local ReplicatedStorage = game:GetService("ReplicatedStorage")
1416local AddCharacterLoadedEvent = nil
1417local RemoveCharacterEvent = nil
1418local soundEventFolder = ReplicatedStorage:FindFirstChild(soundEventFolderName)
1419local useSoundDispatcher = UserSettings():IsUserFeatureEnabled("UserUseSoundDispatcher")
1420
1421if useSoundDispatcher then
1422 if not soundEventFolder then
1423 soundEventFolder = Instance.new("Folder", ReplicatedStorage)
1424 soundEventFolder.Name = soundEventFolderName
1425 soundEventFolder.Archivable = false
1426 end
1427
1428 -- Load the RemoveCharacterEvent
1429 RemoveCharacterEvent = soundEventFolder:FindFirstChild("RemoveCharacterEvent")
1430 if RemoveCharacterEvent == nil then
1431 RemoveCharacterEvent = Instance.new("RemoteEvent", soundEventFolder)
1432 RemoveCharacterEvent.Name = "RemoveCharacterEvent"
1433 end
1434
1435 AddCharacterLoadedEvent = soundEventFolder:FindFirstChild("AddCharacterLoadedEvent")
1436 if AddCharacterLoadedEvent == nil then
1437 AddCharacterLoadedEvent = Instance.new("RemoteEvent", soundEventFolder)
1438 AddCharacterLoadedEvent.Name = "AddCharacterLoadedEvent"
1439 end
1440
1441 -- Notify the server a new character has been loaded
1442 AddCharacterLoadedEvent:FireServer()
1443
1444 -- Notify the sound dispatcher this character has left.
1445 game.Players.LocalPlayer.CharacterRemoving:connect(function(character)
1446 RemoveCharacterEvent:FireServer(game.Players.LocalPlayer)
1447 end)
1448end
1449
1450do
1451 local Figure = script.Parent.Parent
1452 Head = Figure:WaitForChild("Head")
1453 while not Humanoid do
1454 for _,NewHumanoid in pairs(Figure:GetChildren()) do
1455 if NewHumanoid:IsA("Humanoid") then
1456 Humanoid = NewHumanoid
1457 break
1458 end
1459 end
1460 if Humanoid then break end
1461 Figure.ChildAdded:wait()
1462 end
1463 Sounds[SFX.Died] = Head:WaitForChild("Died")
1464 Sounds[SFX.Running] = Head:WaitForChild("Running")
1465 Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
1466 Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
1467 Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
1468 Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
1469 Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
1470 Sounds[SFX.Landing] = Head:WaitForChild("Landing")
1471 Sounds[SFX.Splash] = Head:WaitForChild("Splash")
1472
1473 local DefaultServerSoundEvent = nil
1474 if useSoundDispatcher then
1475 DefaultServerSoundEvent = soundEventFolder:FindFirstChild("DefaultServerSoundEvent")
1476 else
1477 DefaultServerSoundEvent = game:GetService("ReplicatedStorage"):FindFirstChild("DefaultServerSoundEvent")
1478 end
1479
1480 if DefaultServerSoundEvent then
1481 DefaultServerSoundEvent.OnClientEvent:connect(function(sound, playing, resetPosition)
1482 if resetPosition and sound.TimePosition ~= 0 then
1483 sound.TimePosition = 0
1484 end
1485 if sound.IsPlaying ~= playing then
1486 sound.Playing = playing
1487 end
1488 end)
1489 end
1490end
1491
1492local IsSoundFilteringEnabled = function()
1493 return game.Workspace.FilteringEnabled and SoundService.RespectFilteringEnabled
1494end
1495
1496local Util
1497Util = {
1498
1499 --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
1500 YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
1501 --(y - y1)/(x - x1) = m
1502 local m = (pt1y - pt2y) / (pt1x - pt2x)
1503 --float b = pt1.y - m * pt1.x;
1504 local b = (pt1y - m * pt1x)
1505 return m * x + b
1506 end;
1507
1508 --Clamps the value of "val" between the "min" and "max"
1509 Clamp = function(val,min,max)
1510 return math.min(max,math.max(min,val))
1511 end;
1512
1513 --Gets the horizontal (x,z) velocity magnitude of the given part
1514 HorizontalSpeed = function(Head)
1515 local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
1516 return hVel.magnitude
1517 end;
1518
1519 --Gets the vertical (y) velocity magnitude of the given part
1520 VerticalSpeed = function(Head)
1521 return math.abs(Head.Velocity.Y)
1522 end;
1523
1524 --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
1525 --If these properties are enabled, use them.
1526 Play = function(sound)
1527 if IsSoundFilteringEnabled() then
1528 sound.CharacterSoundEvent:FireServer(true, true)
1529 end
1530 if sound.TimePosition ~= 0 then
1531 sound.TimePosition = 0
1532 end
1533 if not sound.IsPlaying then
1534 sound.Playing = true
1535 end
1536 end;
1537
1538 Pause = function(sound)
1539 if IsSoundFilteringEnabled() then
1540 sound.CharacterSoundEvent:FireServer(false, false)
1541 end
1542 if sound.IsPlaying then
1543 sound.Playing = false
1544 end
1545 end;
1546
1547 Resume = function(sound)
1548 if IsSoundFilteringEnabled() then
1549 sound.CharacterSoundEvent:FireServer(true, false)
1550 end
1551 if not sound.IsPlaying then
1552 sound.Playing = true
1553 end
1554 end;
1555
1556 Stop = function(sound)
1557 if IsSoundFilteringEnabled() then
1558 sound.CharacterSoundEvent:FireServer(false, true)
1559 end
1560 if sound.IsPlaying then
1561 sound.Playing = false
1562 end
1563 if sound.TimePosition ~= 0 then
1564 sound.TimePosition = 0
1565 end
1566 end;
1567}
1568
1569do
1570 -- List of all active Looped sounds
1571 local playingLoopedSounds = {}
1572
1573 -- Last seen Enum.HumanoidStateType
1574 local activeState = nil
1575
1576 local fallSpeed = 0
1577
1578 -- Verify and set that "sound" is in "playingLoopedSounds".
1579 function setSoundInPlayingLoopedSounds(sound)
1580 for i=1, #playingLoopedSounds do
1581 if playingLoopedSounds[i] == sound then
1582 return
1583 end
1584 end
1585 table.insert(playingLoopedSounds,sound)
1586 end
1587
1588 -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
1589 function stopPlayingLoopedSoundsExcept(except)
1590 for i=#playingLoopedSounds,1,-1 do
1591 if playingLoopedSounds[i] ~= except then
1592 Util.Pause(playingLoopedSounds[i])
1593 table.remove(playingLoopedSounds,i)
1594 end
1595 end
1596 end
1597
1598 -- Table of Enum.HumanoidStateType to handling function
1599 local stateUpdateHandler = {
1600 [Enum.HumanoidStateType.Dead] = function()
1601 stopPlayingLoopedSoundsExcept()
1602 local sound = Sounds[SFX.Died]
1603 Util.Play(sound)
1604 end;
1605
1606 [Enum.HumanoidStateType.RunningNoPhysics] = function(speed)
1607 stateUpdated(Enum.HumanoidStateType.Running, speed)
1608 end;
1609
1610 [Enum.HumanoidStateType.Running] = function(speed)
1611 local sound = Sounds[SFX.Running]
1612 stopPlayingLoopedSoundsExcept(sound)
1613
1614 if(useUpdatedLocalSoundFlag and activeState == Enum.HumanoidStateType.Freefall and fallSpeed > 0.1) then
1615 -- Play a landing sound if the character dropped from a large distance
1616 local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
1617 local freeFallSound = Sounds[SFX.FreeFalling]
1618 freeFallSound.Volume = vol
1619 Util.Play(freeFallSound)
1620 fallSpeed = 0
1621 end
1622 if useUpdatedLocalSoundFlag then
1623 if speed ~= nil and speed > 0.5 then
1624 Util.Resume(sound)
1625 setSoundInPlayingLoopedSounds(sound)
1626 elseif speed ~= nil then
1627 stopPlayingLoopedSoundsExcept()
1628 end
1629 else
1630 if Util.HorizontalSpeed(Head) > 0.5 then
1631 Util.Resume(sound)
1632 setSoundInPlayingLoopedSounds(sound)
1633 else
1634 stopPlayingLoopedSoundsExcept()
1635 end
1636 end
1637 end;
1638
1639 [Enum.HumanoidStateType.Swimming] = function(speed)
1640 local threshold
1641 if useUpdatedLocalSoundFlag then threshold = speed else threshold = Util.VerticalSpeed(Head) end
1642 if activeState ~= Enum.HumanoidStateType.Swimming and threshold > 0.1 then
1643 local splashSound = Sounds[SFX.Splash]
1644 splashSound.Volume = Util.Clamp(
1645 Util.YForLineGivenXAndTwoPts(
1646 Util.VerticalSpeed(Head),
1647 100, 0.28,
1648 350, 1),
1649 0,1)
1650 Util.Play(splashSound)
1651 end
1652
1653 do
1654 local sound = Sounds[SFX.Swimming]
1655 stopPlayingLoopedSoundsExcept(sound)
1656 Util.Resume(sound)
1657 setSoundInPlayingLoopedSounds(sound)
1658 end
1659 end;
1660
1661 [Enum.HumanoidStateType.Climbing] = function(speed)
1662 local sound = Sounds[SFX.Climbing]
1663 if useUpdatedLocalSoundFlag then
1664 if speed ~= nil and math.abs(speed) > 0.1 then
1665 Util.Resume(sound)
1666 stopPlayingLoopedSoundsExcept(sound)
1667 else
1668 Util.Pause(sound)
1669 stopPlayingLoopedSoundsExcept(sound)
1670 end
1671 else
1672 if Util.VerticalSpeed(Head) > 0.1 then
1673 Util.Resume(sound)
1674 stopPlayingLoopedSoundsExcept(sound)
1675 else
1676 stopPlayingLoopedSoundsExcept()
1677 end
1678 end
1679
1680 setSoundInPlayingLoopedSounds(sound)
1681 end;
1682
1683 [Enum.HumanoidStateType.Jumping] = function()
1684 if activeState == Enum.HumanoidStateType.Jumping then
1685 return
1686 end
1687 stopPlayingLoopedSoundsExcept()
1688 local sound = Sounds[SFX.Jumping]
1689 Util.Play(sound)
1690 end;
1691
1692 [Enum.HumanoidStateType.GettingUp] = function()
1693 stopPlayingLoopedSoundsExcept()
1694 local sound = Sounds[SFX.GettingUp]
1695 Util.Play(sound)
1696 end;
1697
1698 [Enum.HumanoidStateType.Freefall] = function()
1699 if activeState == Enum.HumanoidStateType.Freefall then
1700 return
1701 end
1702 local sound = Sounds[SFX.FreeFalling]
1703 sound.Volume = 0
1704 stopPlayingLoopedSoundsExcept()
1705
1706 fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.y))
1707 end;
1708
1709 [Enum.HumanoidStateType.FallingDown] = function()
1710 stopPlayingLoopedSoundsExcept()
1711 end;
1712
1713 [Enum.HumanoidStateType.Landed] = function()
1714 stopPlayingLoopedSoundsExcept()
1715 if Util.VerticalSpeed(Head) > 75 then
1716 local landingSound = Sounds[SFX.Landing]
1717 landingSound.Volume = Util.Clamp(
1718 Util.YForLineGivenXAndTwoPts(
1719 Util.VerticalSpeed(Head),
1720 50, 0,
1721 100, 1),
1722 0,1)
1723 Util.Play(landingSound)
1724 end
1725 end;
1726
1727 [Enum.HumanoidStateType.Seated] = function()
1728 stopPlayingLoopedSoundsExcept()
1729 end;
1730 }
1731
1732
1733
1734 -- Handle state event fired or OnChange fired
1735 function stateUpdated(state, speed)
1736 if stateUpdateHandler[state] ~= nil then
1737 if useUpdatedLocalSoundFlag and (state == Enum.HumanoidStateType.Running
1738 or state == Enum.HumanoidStateType.Climbing
1739 or state == Enum.HumanoidStateType.Swimming
1740 or state == Enum.HumanoidStateType.RunningNoPhysics) then
1741 stateUpdateHandler[state](speed)
1742 else
1743 stateUpdateHandler[state]()
1744 end
1745 end
1746 activeState = state
1747 end
1748
1749 Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
1750 Humanoid.Running:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Running, speed) end)
1751 Humanoid.Swimming:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Swimming, speed) end)
1752 Humanoid.Climbing:connect( function(speed) stateUpdated(Enum.HumanoidStateType.Climbing, speed) end)
1753 Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
1754 Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
1755 Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
1756 Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
1757
1758
1759
1760 -- required for proper handling of Landed event
1761
1762 Humanoid.StateChanged:connect(function(old, new)
1763 stateUpdated(new)
1764 end)
1765
1766
1767
1768 function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
1769 local stepScale = stepDeltaSeconds / tickSpeedSeconds
1770 do
1771 local sound = Sounds[SFX.FreeFalling]
1772 if activeState == Enum.HumanoidStateType.Freefall then
1773 if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
1774 Util.Resume(sound)
1775
1776 --Volume takes 1.1 seconds to go from volume 0 to 1
1777 local ANIMATION_LENGTH_SECONDS = 1.1
1778
1779 local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
1780 sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
1781 else
1782 sound.Volume = 0
1783 end
1784 else
1785 Util.Pause(sound)
1786 end
1787 end
1788
1789 do
1790 local sound = Sounds[SFX.Running]
1791 if activeState == Enum.HumanoidStateType.Running then
1792 if Util.HorizontalSpeed(Head) < 0.5 then
1793 Util.Pause(sound)
1794 end
1795 end
1796 end
1797 end
1798
1799
1800 local lastTick = tick()
1801 local TICK_SPEED_SECONDS = 0.25
1802 while true do
1803 onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
1804 lastTick = tick()
1805 wait(TICK_SPEED_SECONDS)
1806 end
1807
1808end
1809
1810end))
1811LocalSound.Name = "LocalSound"
1812LocalSound.Parent = Sound
1813
1814table.insert(functions,sandbox(Health,function()
1815-- Gradually regenerates the Humanoid's Health over time.
1816
1817local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
1818local REGEN_STEP = 1 -- Wait this long between each regeneration step.
1819
1820--------------------------------------------------------------------------------
1821
1822local Character = script.Parent
1823local Humanoid = Character:WaitForChild'Humanoid'
1824
1825--------------------------------------------------------------------------------
1826
1827while true do
1828 while Humanoid.Health < Humanoid.MaxHealth do
1829 local dt = wait(REGEN_STEP)
1830 local dh = dt*REGEN_RATE*Humanoid.MaxHealth
1831 Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
1832 end
1833 Humanoid.HealthChanged:Wait()
1834end
1835end))
1836Health.Name = "Health"
1837Health.Parent = Pwnga
1838
1839table.insert(functions,sandbox(Animate,function()
1840local Character = script.Parent
1841local Humanoid = Character:WaitForChild("Humanoid")
1842local pose = "Standing"
1843
1844local userNoUpdateOnLoopSuccess, userNoUpdateOnLoopValue = pcall(function() return UserSettings():IsUserFeatureEnabled("UserNoUpdateOnLoop") end)
1845local userNoUpdateOnLoop = userNoUpdateOnLoopSuccess and userNoUpdateOnLoopValue
1846
1847local currentAnim = ""
1848local currentAnimInstance = nil
1849local currentAnimTrack = nil
1850local currentAnimKeyframeHandler = nil
1851local currentAnimSpeed = 1.0
1852
1853local runAnimTrack = nil
1854local runAnimKeyframeHandler = nil
1855
1856local animTable = {}
1857local animNames = {
1858 idle = {
1859 { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
1860 { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
1861 { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
1862 },
1863 walk = {
1864 { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
1865 },
1866 run = {
1867 { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
1868 },
1869 swim = {
1870 { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
1871 },
1872 swimidle = {
1873 { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
1874 },
1875 jump = {
1876 { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
1877 },
1878 fall = {
1879 { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
1880 },
1881 climb = {
1882 { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
1883 },
1884 sit = {
1885 { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
1886 },
1887 toolnone = {
1888 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
1889 },
1890 toolslash = {
1891 { id = "http://www.roblox.com/asset/?id=522635514", weight = 10 }
1892 },
1893 toollunge = {
1894 { id = "http://www.roblox.com/asset/?id=522638767", weight = 10 }
1895 },
1896 wave = {
1897 { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
1898 },
1899 point = {
1900 { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
1901 },
1902 dance = {
1903 { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
1904 { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
1905 { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
1906 },
1907 dance2 = {
1908 { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
1909 { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
1910 { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
1911 },
1912 dance3 = {
1913 { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
1914 { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
1915 { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
1916 },
1917 laugh = {
1918 { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
1919 },
1920 cheer = {
1921 { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
1922 },
1923}
1924
1925-- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
1926local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
1927
1928local PreloadAnimsUserFlag = false
1929local successPreloadAnim, msgPreloadAnim = pcall(function()
1930 PreloadAnimsUserFlag = UserSettings():IsUserFeatureEnabled("UserPreloadAnimations")
1931end)
1932if not successPreloadAnim then
1933 PreloadAnimsUserFlag = false
1934end
1935
1936math.randomseed(tick())
1937
1938function configureAnimationSet(name, fileList)
1939 if (animTable[name] ~= nil) then
1940 for _, connection in pairs(animTable[name].connections) do
1941 connection:disconnect()
1942 end
1943 end
1944 animTable[name] = {}
1945 animTable[name].count = 0
1946 animTable[name].totalWeight = 0
1947 animTable[name].connections = {}
1948
1949 local allowCustomAnimations = true
1950 local AllowDisableCustomAnimsUserFlag = false
1951
1952 local success, msg = pcall(function()
1953 AllowDisableCustomAnimsUserFlag = UserSettings():IsUserFeatureEnabled("UserAllowDisableCustomAnims2")
1954 end)
1955
1956 if (AllowDisableCustomAnimsUserFlag) then
1957 local success, msg = pcall(function() allowCustomAnimations = game:GetService("StarterPlayer").AllowCustomAnimations end)
1958 if not success then
1959 allowCustomAnimations = true
1960 end
1961 end
1962
1963 -- check for config values
1964 local config = script:FindFirstChild(name)
1965 if (allowCustomAnimations and config ~= nil) then
1966 table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
1967 table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
1968 local idx = 1
1969 for _, childPart in pairs(config:GetChildren()) do
1970 if (childPart:IsA("Animation")) then
1971 table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
1972 animTable[name][idx] = {}
1973 animTable[name][idx].anim = childPart
1974 local weightObject = childPart:FindFirstChild("Weight")
1975 if (weightObject == nil) then
1976 animTable[name][idx].weight = 1
1977 else
1978 animTable[name][idx].weight = weightObject.Value
1979 end
1980 animTable[name].count = animTable[name].count + 1
1981 animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
1982 idx = idx + 1
1983 end
1984 end
1985 end
1986
1987 -- fallback to defaults
1988 if (animTable[name].count <= 0) then
1989 for idx, anim in pairs(fileList) do
1990 animTable[name][idx] = {}
1991 animTable[name][idx].anim = Instance.new("Animation")
1992 animTable[name][idx].anim.Name = name
1993 animTable[name][idx].anim.AnimationId = anim.id
1994 animTable[name][idx].weight = anim.weight
1995 animTable[name].count = animTable[name].count + 1
1996 animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
1997-- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
1998 end
1999 end
2000
2001 -- preload anims
2002 if PreloadAnimsUserFlag then
2003 for i, animType in pairs(animTable) do
2004 for idx = 1, animType.count, 1 do
2005 Humanoid:LoadAnimation(animType[idx].anim)
2006 end
2007 end
2008 end
2009end
2010
2011-- Setup animation objects
2012function scriptChildModified(child)
2013 local fileList = animNames[child.Name]
2014 if (fileList ~= nil) then
2015 configureAnimationSet(child.Name, fileList)
2016 end
2017end
2018
2019script.ChildAdded:connect(scriptChildModified)
2020script.ChildRemoved:connect(scriptChildModified)
2021
2022
2023for name, fileList in pairs(animNames) do
2024 configureAnimationSet(name, fileList)
2025end
2026
2027-- ANIMATION
2028
2029-- declarations
2030local toolAnim = "None"
2031local toolAnimTime = 0
2032
2033local jumpAnimTime = 0
2034local jumpAnimDuration = 0.31
2035
2036local toolTransitionTime = 0.1
2037local fallTransitionTime = 0.2
2038
2039-- functions
2040
2041function stopAllAnimations()
2042 local oldAnim = currentAnim
2043
2044 -- return to idle if finishing an emote
2045 if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
2046 oldAnim = "idle"
2047 end
2048
2049 currentAnim = ""
2050 currentAnimInstance = nil
2051 if (currentAnimKeyframeHandler ~= nil) then
2052 currentAnimKeyframeHandler:disconnect()
2053 end
2054
2055 if (currentAnimTrack ~= nil) then
2056 currentAnimTrack:Stop()
2057 currentAnimTrack:Destroy()
2058 currentAnimTrack = nil
2059 end
2060
2061 -- clean up walk if there is one
2062 if (runAnimKeyframeHandler ~= nil) then
2063 runAnimKeyframeHandler:disconnect()
2064 end
2065
2066 if (runAnimTrack ~= nil) then
2067 runAnimTrack:Stop()
2068 runAnimTrack:Destroy()
2069 runAnimTrack = nil
2070 end
2071
2072 return oldAnim
2073end
2074
2075function getHeightScale()
2076 if Humanoid then
2077 local bodyHeightScale = Humanoid:FindFirstChild("BodyHeightScale")
2078 if bodyHeightScale and bodyHeightScale:IsA("NumberValue") then
2079 return bodyHeightScale.Value
2080 end
2081 end
2082
2083 return 1
2084end
2085
2086local smallButNotZero = 0.0001
2087function setRunSpeed(speed)
2088 if speed < 0.33 then
2089 currentAnimTrack:AdjustWeight(1.0)
2090 runAnimTrack:AdjustWeight(smallButNotZero)
2091 elseif speed < 0.66 then
2092 local weight = ((speed - 0.33) / 0.33)
2093 currentAnimTrack:AdjustWeight(1.0 - weight + smallButNotZero)
2094 runAnimTrack:AdjustWeight(weight + smallButNotZero)
2095 else
2096 currentAnimTrack:AdjustWeight(smallButNotZero)
2097 runAnimTrack:AdjustWeight(1.0)
2098 end
2099
2100 local speedScaled = speed * 1.25
2101
2102 local heightScale = getHeightScale()
2103
2104 runAnimTrack:AdjustSpeed(speedScaled / heightScale)
2105 currentAnimTrack:AdjustSpeed(speedScaled / heightScale)
2106end
2107
2108
2109function setAnimationSpeed(speed)
2110 if speed ~= currentAnimSpeed then
2111 currentAnimSpeed = speed
2112 if currentAnim == "walk" then
2113 setRunSpeed(speed)
2114 else
2115 currentAnimTrack:AdjustSpeed(currentAnimSpeed)
2116 end
2117 end
2118end
2119
2120function keyFrameReachedFunc(frameName)
2121 if (frameName == "End") then
2122 if currentAnim == "walk" then
2123 if userNoUpdateOnLoop == true then
2124 if runAnimTrack.Looped ~= true then
2125 runAnimTrack.TimePosition = 0.0
2126 end
2127 if currentAnimTrack.Looped ~= true then
2128 currentAnimTrack.TimePosition = 0.0
2129 end
2130 else
2131 runAnimTrack.TimePosition = 0.0
2132 currentAnimTrack.TimePosition = 0.0
2133 end
2134 else
2135 local repeatAnim = currentAnim
2136 -- return to idle if finishing an emote
2137 if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
2138 repeatAnim = "idle"
2139 end
2140
2141 local animSpeed = currentAnimSpeed
2142 playAnimation(repeatAnim, 0.15, Humanoid)
2143 setAnimationSpeed(animSpeed)
2144 end
2145 end
2146end
2147
2148function rollAnimation(animName)
2149 local roll = math.random(1, animTable[animName].totalWeight)
2150 local origRoll = roll
2151 local idx = 1
2152 while (roll > animTable[animName][idx].weight) do
2153 roll = roll - animTable[animName][idx].weight
2154 idx = idx + 1
2155 end
2156 return idx
2157end
2158
2159function playAnimation(animName, transitionTime, humanoid)
2160 local idx = rollAnimation(animName)
2161 local anim = animTable[animName][idx].anim
2162
2163 -- switch animation
2164 if (anim ~= currentAnimInstance) then
2165
2166 if (currentAnimTrack ~= nil) then
2167 currentAnimTrack:Stop(transitionTime)
2168 currentAnimTrack:Destroy()
2169 end
2170
2171 if (runAnimTrack ~= nil) then
2172 runAnimTrack:Stop(transitionTime)
2173 runAnimTrack:Destroy()
2174 if userNoUpdateOnLoop == true then
2175 runAnimTrack = nil
2176 end
2177 end
2178
2179 currentAnimSpeed = 1.0
2180
2181 -- load it to the humanoid; get AnimationTrack
2182 currentAnimTrack = humanoid:LoadAnimation(anim)
2183 currentAnimTrack.Priority = Enum.AnimationPriority.Core
2184
2185 -- play the animation
2186 currentAnimTrack:Play(transitionTime)
2187 currentAnim = animName
2188 currentAnimInstance = anim
2189
2190 -- set up keyframe name triggers
2191 if (currentAnimKeyframeHandler ~= nil) then
2192 currentAnimKeyframeHandler:disconnect()
2193 end
2194 currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
2195
2196 -- check to see if we need to blend a walk/run animation
2197 if animName == "walk" then
2198 local runAnimName = "run"
2199 local runIdx = rollAnimation(runAnimName)
2200
2201 runAnimTrack = humanoid:LoadAnimation(animTable[runAnimName][runIdx].anim)
2202 runAnimTrack.Priority = Enum.AnimationPriority.Core
2203 runAnimTrack:Play(transitionTime)
2204
2205 if (runAnimKeyframeHandler ~= nil) then
2206 runAnimKeyframeHandler:disconnect()
2207 end
2208 runAnimKeyframeHandler = runAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
2209 end
2210 end
2211
2212end
2213
2214-------------------------------------------------------------------------------------------
2215-------------------------------------------------------------------------------------------
2216
2217local toolAnimName = ""
2218local toolAnimTrack = nil
2219local toolAnimInstance = nil
2220local currentToolAnimKeyframeHandler = nil
2221
2222function toolKeyFrameReachedFunc(frameName)
2223 if (frameName == "End") then
2224 playToolAnimation(toolAnimName, 0.0, Humanoid)
2225 end
2226end
2227
2228
2229function playToolAnimation(animName, transitionTime, humanoid, priority)
2230 local idx = rollAnimation(animName)
2231 local anim = animTable[animName][idx].anim
2232
2233 if (toolAnimInstance ~= anim) then
2234
2235 if (toolAnimTrack ~= nil) then
2236 toolAnimTrack:Stop()
2237 toolAnimTrack:Destroy()
2238 transitionTime = 0
2239 end
2240
2241 -- load it to the humanoid; get AnimationTrack
2242 toolAnimTrack = humanoid:LoadAnimation(anim)
2243 if priority then
2244 toolAnimTrack.Priority = priority
2245 end
2246
2247 -- play the animation
2248 toolAnimTrack:Play(transitionTime)
2249 toolAnimName = animName
2250 toolAnimInstance = anim
2251
2252 currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
2253 end
2254end
2255
2256function stopToolAnimations()
2257 local oldAnim = toolAnimName
2258
2259 if (currentToolAnimKeyframeHandler ~= nil) then
2260 currentToolAnimKeyframeHandler:disconnect()
2261 end
2262
2263 toolAnimName = ""
2264 toolAnimInstance = nil
2265 if (toolAnimTrack ~= nil) then
2266 toolAnimTrack:Stop()
2267 toolAnimTrack:Destroy()
2268 toolAnimTrack = nil
2269 end
2270
2271 return oldAnim
2272end
2273
2274-------------------------------------------------------------------------------------------
2275-------------------------------------------------------------------------------------------
2276-- STATE CHANGE HANDLERS
2277
2278function onRunning(speed)
2279 if speed > 0.5 then
2280 local scale = 16.0
2281 playAnimation("walk", 0.2, Humanoid)
2282 setAnimationSpeed(speed / scale)
2283 pose = "Running"
2284 else
2285 if emoteNames[currentAnim] == nil then
2286 playAnimation("idle", 0.2, Humanoid)
2287 pose = "Standing"
2288 end
2289 end
2290end
2291
2292function onDied()
2293 pose = "Dead"
2294end
2295
2296function onJumping()
2297 playAnimation("jump", 0.1, Humanoid)
2298 jumpAnimTime = jumpAnimDuration
2299 pose = "Jumping"
2300end
2301
2302function onClimbing(speed)
2303 local scale = 5.0
2304 playAnimation("climb", 0.1, Humanoid)
2305 setAnimationSpeed(speed / scale)
2306 pose = "Climbing"
2307end
2308
2309function onGettingUp()
2310 pose = "GettingUp"
2311end
2312
2313function onFreeFall()
2314 if (jumpAnimTime <= 0) then
2315 playAnimation("fall", fallTransitionTime, Humanoid)
2316 end
2317 pose = "FreeFall"
2318end
2319
2320function onFallingDown()
2321 pose = "FallingDown"
2322end
2323
2324function onSeated()
2325 pose = "Seated"
2326end
2327
2328function onPlatformStanding()
2329 pose = "PlatformStanding"
2330end
2331
2332-------------------------------------------------------------------------------------------
2333-------------------------------------------------------------------------------------------
2334
2335function onSwimming(speed)
2336 if speed > 1.00 then
2337 local scale = 10.0
2338 playAnimation("swim", 0.4, Humanoid)
2339 setAnimationSpeed(speed / scale)
2340 pose = "Swimming"
2341 else
2342 playAnimation("swimidle", 0.4, Humanoid)
2343 pose = "Standing"
2344 end
2345end
2346
2347function animateTool()
2348 if (toolAnim == "None") then
2349 playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
2350 return
2351 end
2352
2353 if (toolAnim == "Slash") then
2354 playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
2355 return
2356 end
2357
2358 if (toolAnim == "Lunge") then
2359 playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
2360 return
2361 end
2362end
2363
2364function getToolAnim(tool)
2365 for _, c in ipairs(tool:GetChildren()) do
2366 if c.Name == "toolanim" and c.className == "StringValue" then
2367 return c
2368 end
2369 end
2370 return nil
2371end
2372
2373local lastTick = 0
2374
2375function stepAnimate(currentTime)
2376 local amplitude = 1
2377 local frequency = 1
2378 local deltaTime = currentTime - lastTick
2379 lastTick = currentTime
2380
2381 local climbFudge = 0
2382 local setAngles = false
2383
2384 if (jumpAnimTime > 0) then
2385 jumpAnimTime = jumpAnimTime - deltaTime
2386 end
2387
2388 if (pose == "FreeFall" and jumpAnimTime <= 0) then
2389 playAnimation("fall", fallTransitionTime, Humanoid)
2390 elseif (pose == "Seated") then
2391 playAnimation("sit", 0.5, Humanoid)
2392 return
2393 elseif (pose == "Running") then
2394 playAnimation("walk", 0.2, Humanoid)
2395 elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
2396 stopAllAnimations()
2397 amplitude = 0.1
2398 frequency = 1
2399 setAngles = true
2400 end
2401
2402 -- Tool Animation handling
2403 local tool = Character:FindFirstChildOfClass("Tool")
2404 if tool and tool:FindFirstChild("Handle") then
2405 local animStringValueObject = getToolAnim(tool)
2406
2407 if animStringValueObject then
2408 toolAnim = animStringValueObject.Value
2409 -- message recieved, delete StringValue
2410 animStringValueObject.Parent = nil
2411 toolAnimTime = currentTime + .3
2412 end
2413
2414 if currentTime > toolAnimTime then
2415 toolAnimTime = 0
2416 toolAnim = "None"
2417 end
2418
2419 animateTool()
2420 else
2421 stopToolAnimations()
2422 toolAnim = "None"
2423 toolAnimInstance = nil
2424 toolAnimTime = 0
2425 end
2426end
2427
2428-- connect events
2429Humanoid.Died:connect(onDied)
2430Humanoid.Running:connect(onRunning)
2431Humanoid.Jumping:connect(onJumping)
2432Humanoid.Climbing:connect(onClimbing)
2433Humanoid.GettingUp:connect(onGettingUp)
2434Humanoid.FreeFalling:connect(onFreeFall)
2435Humanoid.FallingDown:connect(onFallingDown)
2436Humanoid.Seated:connect(onSeated)
2437Humanoid.PlatformStanding:connect(onPlatformStanding)
2438Humanoid.Swimming:connect(onSwimming)
2439
2440-- setup emote chat hook
2441game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
2442 local emote = ""
2443 if (string.sub(msg, 1, 3) == "/e ") then
2444 emote = string.sub(msg, 4)
2445 elseif (string.sub(msg, 1, 7) == "/emote ") then
2446 emote = string.sub(msg, 8)
2447 end
2448
2449 if (pose == "Standing" and emoteNames[emote] ~= nil) then
2450 playAnimation(emote, 0.1, Humanoid)
2451 end
2452end)
2453
2454
2455
2456-- initialize to idle
2457playAnimation("idle", 0.1, Humanoid)
2458pose = "Standing"
2459
2460-- loop to handle timed state transitions and tool animations
2461while Character.Parent ~= nil do
2462 local _, currentGameTime = wait(0.1)
2463 stepAnimate(currentGameTime)
2464end
2465
2466
2467end))
2468Animate.Name = "Animate"
2469Animate.Parent = Pwnga
2470
2471cheer.Name = "cheer"
2472cheer.Parent = Animate
2473
2474CheerAnim.AnimationId = "http://www.roblox.com/asset/?id=507770677"
2475CheerAnim.Name = "CheerAnim"
2476CheerAnim.Parent = cheer
2477
2478dance.Name = "dance"
2479dance.Parent = Animate
2480
2481Animation1.AnimationId = "http://www.roblox.com/asset/?id=507771019"
2482Animation1.Name = "Animation1"
2483Animation1.Parent = dance
2484
2485Weight.Value = 10
2486Weight.Name = "Weight"
2487Weight.Parent = Animation1
2488
2489Animation2.AnimationId = "http://www.roblox.com/asset/?id=507771955"
2490Animation2.Name = "Animation2"
2491Animation2.Parent = dance
2492
2493Weight_1.Value = 10
2494Weight_1.Name = "Weight"
2495Weight_1.Parent = Animation2
2496
2497Animation3.AnimationId = "http://www.roblox.com/asset/?id=507772104"
2498Animation3.Name = "Animation3"
2499Animation3.Parent = dance
2500
2501Weight_2.Value = 10
2502Weight_2.Name = "Weight"
2503Weight_2.Parent = Animation3
2504
2505dance2.Name = "dance2"
2506dance2.Parent = Animate
2507
2508Animation1_1.AnimationId = "http://www.roblox.com/asset/?id=507776043"
2509Animation1_1.Name = "Animation1"
2510Animation1_1.Parent = dance2
2511
2512Weight_3.Value = 10
2513Weight_3.Name = "Weight"
2514Weight_3.Parent = Animation1_1
2515
2516Animation2_1.AnimationId = "http://www.roblox.com/asset/?id=507776720"
2517Animation2_1.Name = "Animation2"
2518Animation2_1.Parent = dance2
2519
2520Weight_4.Value = 10
2521Weight_4.Name = "Weight"
2522Weight_4.Parent = Animation2_1
2523
2524Animation3_1.AnimationId = "http://www.roblox.com/asset/?id=507776879"
2525Animation3_1.Name = "Animation3"
2526Animation3_1.Parent = dance2
2527
2528Weight_5.Value = 10
2529Weight_5.Name = "Weight"
2530Weight_5.Parent = Animation3_1
2531
2532dance3.Name = "dance3"
2533dance3.Parent = Animate
2534
2535Animation1_2.AnimationId = "http://www.roblox.com/asset/?id=507777268"
2536Animation1_2.Name = "Animation1"
2537Animation1_2.Parent = dance3
2538
2539Weight_6.Value = 10
2540Weight_6.Name = "Weight"
2541Weight_6.Parent = Animation1_2
2542
2543Animation2_2.AnimationId = "http://www.roblox.com/asset/?id=507777451"
2544Animation2_2.Name = "Animation2"
2545Animation2_2.Parent = dance3
2546
2547Weight_7.Value = 10
2548Weight_7.Name = "Weight"
2549Weight_7.Parent = Animation2_2
2550
2551Animation3_2.AnimationId = "http://www.roblox.com/asset/?id=507777623"
2552Animation3_2.Name = "Animation3"
2553Animation3_2.Parent = dance3
2554
2555Weight_8.Value = 10
2556Weight_8.Name = "Weight"
2557Weight_8.Parent = Animation3_2
2558
2559laugh.Name = "laugh"
2560laugh.Parent = Animate
2561
2562LaughAnim.AnimationId = "http://www.roblox.com/asset/?id=507770818"
2563LaughAnim.Name = "LaughAnim"
2564LaughAnim.Parent = laugh
2565
2566point.Name = "point"
2567point.Parent = Animate
2568
2569PointAnim.AnimationId = "http://www.roblox.com/asset/?id=507770453"
2570PointAnim.Name = "PointAnim"
2571PointAnim.Parent = point
2572
2573sit.Name = "sit"
2574sit.Parent = Animate
2575
2576SitAnim.AnimationId = "http://www.roblox.com/asset/?id=507768133"
2577SitAnim.Name = "SitAnim"
2578SitAnim.Parent = sit
2579
2580toollunge.Name = "toollunge"
2581toollunge.Parent = Animate
2582
2583ToolLungeAnim.AnimationId = "http://www.roblox.com/asset/?id=522638767"
2584ToolLungeAnim.Name = "ToolLungeAnim"
2585ToolLungeAnim.Parent = toollunge
2586
2587toolnone.Name = "toolnone"
2588toolnone.Parent = Animate
2589
2590ToolNoneAnim.AnimationId = "http://www.roblox.com/asset/?id=507768375"
2591ToolNoneAnim.Name = "ToolNoneAnim"
2592ToolNoneAnim.Parent = toolnone
2593
2594toolslash.Name = "toolslash"
2595toolslash.Parent = Animate
2596
2597ToolSlashAnim.AnimationId = "http://www.roblox.com/asset/?id=522635514"
2598ToolSlashAnim.Name = "ToolSlashAnim"
2599ToolSlashAnim.Parent = toolslash
2600
2601wave.Name = "wave"
2602wave.Parent = Animate
2603
2604WaveAnim.AnimationId = "http://www.roblox.com/asset/?id=507770239"
2605WaveAnim.Name = "WaveAnim"
2606WaveAnim.Parent = wave
2607
2608idle.Name = "idle"
2609idle.Parent = Animate
2610
2611Animation1_3.AnimationId = "http://www.roblox.com/asset/?id=910004836"
2612Animation1_3.Name = "Animation1"
2613Animation1_3.Parent = idle
2614
2615Weight_9.Value = 9
2616Weight_9.Name = "Weight"
2617Weight_9.Parent = Animation1_3
2618
2619Animation2_3.AnimationId = "http://www.roblox.com/asset/?id=910009958"
2620Animation2_3.Name = "Animation2"
2621Animation2_3.Parent = idle
2622
2623Weight_10.Value = 1
2624Weight_10.Name = "Weight"
2625Weight_10.Parent = Animation2_3
2626
2627pose.Name = "pose"
2628pose.Parent = Animate
2629
2630PoseAnim.AnimationId = "http://www.roblox.com/asset/?id=1018536639"
2631PoseAnim.Name = "PoseAnim"
2632PoseAnim.Parent = pose
2633
2634Weight_11.Name = "Weight"
2635Weight_11.Parent = PoseAnim
2636
2637run.Name = "run"
2638run.Parent = Animate
2639
2640RunAnim.AnimationId = "http://www.roblox.com/asset/?id=910025107"
2641RunAnim.Name = "RunAnim"
2642RunAnim.Parent = run
2643
2644swim.Name = "swim"
2645swim.Parent = Animate
2646
2647Swim.AnimationId = "http://www.roblox.com/asset/?id=910028158"
2648Swim.Name = "Swim"
2649Swim.Parent = swim
2650
2651swimidle.Name = "swimidle"
2652swimidle.Parent = Animate
2653
2654SwimIdle.AnimationId = "http://www.roblox.com/asset/?id=910030921"
2655SwimIdle.Name = "SwimIdle"
2656SwimIdle.Parent = swimidle
2657
2658climb.Name = "climb"
2659climb.Parent = Animate
2660
2661ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=909997997"
2662ClimbAnim.Name = "ClimbAnim"
2663ClimbAnim.Parent = climb
2664
2665fall.Name = "fall"
2666fall.Parent = Animate
2667
2668FallAnim.AnimationId = "http://www.roblox.com/asset/?id=910001910"
2669FallAnim.Name = "FallAnim"
2670FallAnim.Parent = fall
2671
2672jump.Name = "jump"
2673jump.Parent = Animate
2674
2675JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=616139451"
2676JumpAnim.Name = "JumpAnim"
2677JumpAnim.Parent = jump
2678
2679walk.Name = "walk"
2680walk.Parent = Animate
2681
2682WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=616146177"
2683WalkAnim.Name = "WalkAnim"
2684WalkAnim.Parent = walk
2685
2686BodyColors.HeadColor = BrickColor.new("Light orange")
2687BodyColors.HeadColor3 = Color3.new(0.918,0.722,0.573)
2688BodyColors.LeftArmColor = BrickColor.new("Light orange")
2689BodyColors.LeftArmColor3 = Color3.new(0.918,0.722,0.573)
2690BodyColors.LeftLegColor = BrickColor.new("Light orange")
2691BodyColors.LeftLegColor3 = Color3.new(0.918,0.722,0.573)
2692BodyColors.RightArmColor = BrickColor.new("Light orange")
2693BodyColors.RightArmColor3 = Color3.new(0.918,0.722,0.573)
2694BodyColors.RightLegColor = BrickColor.new("Light orange")
2695BodyColors.RightLegColor3 = Color3.new(0.918,0.722,0.573)
2696BodyColors.TorsoColor = BrickColor.new("Light orange")
2697BodyColors.TorsoColor3 = Color3.new(0.918,0.722,0.573)
2698BodyColors.Parent = Pwnga
2699
2700BearMask.AttachmentPoint = CFrame.new(0,0.73,0.02,1,0,0,0,1,0,0,0,1)
2701BearMask.AttachmentPos = Vector3.new(0,0.73,0.02)
2702BearMask.Name = "BearMask"
2703BearMask.Parent = Pwnga
2704
2705Handle.Anchored = true
2706Handle.BottomSurface = Enum.SurfaceType.Smooth
2707Handle.CFrame = CFrame.new(-9.277,5.259,3.441,-0.002,-0.024,-1,0.026,0.999,-0.024,1,-0.026,-0.001)
2708Handle.CanCollide = false
2709Handle.Locked = true
2710Handle.Size = Vector3.new(1.14,0.57,1.14)
2711Handle.TopSurface = Enum.SurfaceType.Smooth
2712Handle.Name = "Handle"
2713Handle.Parent = BearMask
2714
2715Mesh_1.MeshType = Enum.MeshType.FileMesh
2716Mesh_1.MeshId = "rbxassetid://1192459566"
2717Mesh_1.TextureId = "rbxassetid://1192457668"
2718Mesh_1.Scale = Vector3.new(1.9,1.9,1.9)
2719Mesh_1.Parent = Handle
2720
2721FaceFrontAttachment_1.Axis = Vector3.new(1,0,0)
2722FaceFrontAttachment_1.CFrame = CFrame.new(0,0.218,-0.542,1,0,0,0,1,0,0,0,1)
2723FaceFrontAttachment_1.Orientation = Vector3.new(0,0,0)
2724FaceFrontAttachment_1.Position = Vector3.new(0,0.218,-0.542)
2725FaceFrontAttachment_1.Rotation = Vector3.new(0,0,0)
2726FaceFrontAttachment_1.SecondaryAxis = Vector3.new(0,1,0)
2727FaceFrontAttachment_1.Name = "FaceFrontAttachment"
2728FaceFrontAttachment_1.Parent = Handle
2729
2730OriginalSize_17.Value = Vector3.new(1.2,0.6,1.2)
2731OriginalSize_17.Name = "OriginalSize"
2732OriginalSize_17.Parent = Handle
2733
2734AccessoryWeld.C0 = CFrame.new(0,0.218,-0.542,1,0,0,0,1,0,0,0,1)
2735AccessoryWeld.C1 = CFrame.new(0,0,-0.57,1,0,0,0,1,0,0,0,1)
2736AccessoryWeld.Part0 = Handle
2737AccessoryWeld.Part1 = Head
2738AccessoryWeld.Name = "AccessoryWeld"
2739AccessoryWeld.Parent = Handle
2740
2741AccessoryWeld_1.C0 = CFrame.new(0,0.218,-0.542,1,0,0,0,1,0,0,0,1)
2742AccessoryWeld_1.C1 = CFrame.new(0,0,-0.57,1,0,0,0,1,0,0,0,1)
2743AccessoryWeld_1.Part0 = Handle
2744AccessoryWeld_1.Part1 = Head
2745AccessoryWeld_1.Name = "AccessoryWeld"
2746AccessoryWeld_1.Parent = Handle
2747
2748ThumbnailCamera.CFrame = CFrame.new(-1.932,0.779,-0.145,-0.077,0.238,-0.968,0,0.971,0.239,0.997,0.018,-0.075)
2749ThumbnailCamera.Focus = CFrame.new(0.005,0.302,0.004,1,0,0,0,1,0,0,0,1)
2750ThumbnailCamera.Name = "ThumbnailCamera"
2751ThumbnailCamera.Parent = BearMask
2752
2753FoxEarsw.AttachmentPoint = CFrame.new(0,0.34,0.25,1,0,0,0,1,0,0,0,1)
2754FoxEarsw.AttachmentPos = Vector3.new(0,0.34,0.25)
2755FoxEarsw.Name = "FoxEarsw"
2756FoxEarsw.Parent = Pwnga
2757
2758Handle_1.Anchored = true
2759Handle_1.BottomSurface = Enum.SurfaceType.Smooth
2760Handle_1.CFrame = CFrame.new(-9.325,6.047,3.42,-0.002,-0.024,-1,0.026,0.999,-0.024,1,-0.026,-0.001)
2761Handle_1.CanCollide = false
2762Handle_1.Locked = true
2763Handle_1.Size = Vector3.new(1.52,0.76,1.52)
2764Handle_1.TopSurface = Enum.SurfaceType.Smooth
2765Handle_1.Name = "Handle"
2766Handle_1.Parent = FoxEarsw
2767
2768Mesh_2.MeshType = Enum.MeshType.FileMesh
2769Mesh_2.MeshId = "rbxassetid://787921134"
2770Mesh_2.TextureId = "rbxassetid://787921603"
2771Mesh_2.Scale = Vector3.new(0.855,0.855,0.855)
2772Mesh_2.Parent = Handle_1
2773
2774HatAttachment_1.Axis = Vector3.new(1,0,0)
2775HatAttachment_1.CFrame = CFrame.new()
2776HatAttachment_1.Orientation = Vector3.new(0,0,0)
2777HatAttachment_1.Rotation = Vector3.new(0,0,0)
2778HatAttachment_1.SecondaryAxis = Vector3.new(0,1,0)
2779HatAttachment_1.Name = "HatAttachment"
2780HatAttachment_1.Parent = Handle_1
2781
2782OriginalSize_18.Value = Vector3.new(1.6,0.8,1.6)
2783OriginalSize_18.Name = "OriginalSize"
2784OriginalSize_18.Parent = Handle_1
2785
2786AccessoryWeld_2.C0 = CFrame.new()
2787AccessoryWeld_2.C1 = CFrame.new(0,0.57,0,1,0,0,0,1,0,0,0,1)
2788AccessoryWeld_2.Part0 = Handle_1
2789AccessoryWeld_2.Part1 = Head
2790AccessoryWeld_2.Name = "AccessoryWeld"
2791AccessoryWeld_2.Parent = Handle_1
2792
2793ThumbnailCamera_1.CFrame = CFrame.new(-1.071,0.98,1.826,0.85,0.14,-0.508,0,0.964,0.266,0.527,-0.226,0.819)
2794ThumbnailCamera_1.Focus = CFrame.new(0.032,0.403,0.048,1,0,0,0,1,0,0,0,1)
2795ThumbnailCamera_1.Name = "ThumbnailCamera"
2796ThumbnailCamera_1.Parent = FoxEarsw
2797
2798BlueGirlHair.AttachmentPoint = CFrame.new(0,0.8,0,1,0,0,0,1,0,0,0,1)
2799BlueGirlHair.AttachmentPos = Vector3.new(0,0.8,0)
2800BlueGirlHair.Name = "Blue_GirlHair"
2801BlueGirlHair.Parent = Pwnga
2802
2803Handle_2.Anchored = true
2804Handle_2.BottomSurface = Enum.SurfaceType.Smooth
2805Handle_2.CFrame = CFrame.new(-9.304,5.192,3.443,-0.002,-0.024,-1,0.026,0.999,-0.024,1,-0.026,-0.001)
2806Handle_2.CanCollide = false
2807Handle_2.Locked = true
2808Handle_2.Size = Vector3.new(0.95,0.874,1.814)
2809Handle_2.TopSurface = Enum.SurfaceType.Smooth
2810Handle_2.Name = "Handle"
2811Handle_2.Parent = BlueGirlHair
2812
2813Mesh_3.MeshType = Enum.MeshType.FileMesh
2814Mesh_3.MeshId = "http://www.roblox.com/asset/?id=365591808"
2815Mesh_3.TextureId = "rbxassetid://878706173"
2816Mesh_3.Scale = Vector3.new(0.95,0.95,0.95)
2817Mesh_3.Parent = Handle_2
2818
2819HairAttachment_1.Axis = Vector3.new(1,0,0)
2820HairAttachment_1.CFrame = CFrame.new(0,0.855,0,1,0,0,0,1,0,0,0,1)
2821HairAttachment_1.Orientation = Vector3.new(0,0,0)
2822HairAttachment_1.Position = Vector3.new(0,0.855,0)
2823HairAttachment_1.Rotation = Vector3.new(0,0,0)
2824HairAttachment_1.SecondaryAxis = Vector3.new(0,1,0)
2825HairAttachment_1.Name = "HairAttachment"
2826HairAttachment_1.Parent = Handle_2
2827
2828OriginalSize_19.Value = Vector3.new(1,0.92,1.91)
2829OriginalSize_19.Name = "OriginalSize"
2830OriginalSize_19.Parent = Handle_2
2831
2832AccessoryWeld_3.C0 = CFrame.new(0,0.855,0,1,0,0,0,1,0,0,0,1)
2833AccessoryWeld_3.C1 = CFrame.new(0,0.57,0,1,0,0,0,1,0,0,0,1)
2834AccessoryWeld_3.Part0 = Handle_2
2835AccessoryWeld_3.Part1 = Head
2836AccessoryWeld_3.Name = "AccessoryWeld"
2837AccessoryWeld_3.Parent = Handle_2
2838
2839ThumbnailCamera_2.CFrame = CFrame.new(-2.524,-0.014,-1.226,0.73,0.046,-0.682,0,0.998,0.068,0.683,-0.05,0.729)
2840ThumbnailCamera_2.Focus = CFrame.new(-1.161,-0.15,-2.683,1,0,0,0,1,0,0,0,1)
2841ThumbnailCamera_2.Name = "ThumbnailCamera"
2842ThumbnailCamera_2.Parent = BlueGirlHair
2843
2844Model.Parent = Pwnga
2845
2846BodyColors_1.HeadColor = BrickColor.new("Institutional white")
2847BodyColors_1.HeadColor3 = Color3.new(0.973,0.973,0.973)
2848BodyColors_1.LeftArmColor = BrickColor.new("Institutional white")
2849BodyColors_1.LeftArmColor3 = Color3.new(0.973,0.973,0.973)
2850BodyColors_1.LeftLegColor = BrickColor.new("Institutional white")
2851BodyColors_1.LeftLegColor3 = Color3.new(0.973,0.973,0.973)
2852BodyColors_1.RightArmColor = BrickColor.new("Institutional white")
2853BodyColors_1.RightArmColor3 = Color3.new(0.973,0.973,0.973)
2854BodyColors_1.RightLegColor = BrickColor.new("Institutional white")
2855BodyColors_1.RightLegColor3 = Color3.new(0.973,0.973,0.973)
2856BodyColors_1.TorsoColor = BrickColor.new("Really black")
2857BodyColors_1.TorsoColor3 = Color3.new(0.067,0.067,0.067)
2858BodyColors_1.Parent = Model
2859
2860table.insert(functions,sandbox(Health_1,function()
2861--Responsible for regening a player's humanoid's health
2862
2863-- declarations
2864local Figure = script.Parent
2865local Head = Figure:WaitForChild("Head")
2866local Humanoid = Figure:WaitForChild("Humanoid")
2867local regening = false
2868
2869-- regeneration
2870function regenHealth()
2871 if regening then return end
2872 regening = true
2873
2874 while Humanoid.Health < Humanoid.MaxHealth do
2875 local s = wait(1)
2876 local health = Humanoid.Health
2877 if health > 0 and health < Humanoid.MaxHealth then
2878 local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
2879 health = health + newHealthDelta
2880 Humanoid.Health = math.min(health,Humanoid.MaxHealth)
2881 end
2882 end
2883
2884 if Humanoid.Health > Humanoid.MaxHealth then
2885 Humanoid.Health = Humanoid.MaxHealth
2886 end
2887
2888 regening = false
2889end
2890
2891Humanoid.HealthChanged:connect(regenHealth)
2892
2893end))
2894Health_1.Name = "Health"
2895Health_1.Parent = Model
2896
2897Humanoid_1.NameOcclusion = Enum.NameOcclusion.NoOcclusion
2898Humanoid_1.Parent = Model
2899
2900Animator_1.Parent = Humanoid_1
2901
2902PercyJacksonHalfBloodCap.AttachmentPoint = CFrame.new(0,-0.05,0.25,1,0,0,0,1,0,0,0,1)
2903PercyJacksonHalfBloodCap.AttachmentPos = Vector3.new(0,-0.05,0.25)
2904PercyJacksonHalfBloodCap.Name = "PercyJacksonHalfBloodCap"
2905PercyJacksonHalfBloodCap.Parent = Model
2906
2907Handle_3.Anchored = true
2908Handle_3.BottomSurface = Enum.SurfaceType.Smooth
2909Handle_3.CFrame = CFrame.new(-11.412,9.118,3.433,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
2910Handle_3.CanCollide = false
2911Handle_3.Size = Vector3.new(1.4,0.8,1.8)
2912Handle_3.TopSurface = Enum.SurfaceType.Smooth
2913Handle_3.Name = "Handle"
2914Handle_3.Parent = PercyJacksonHalfBloodCap
2915
2916Mesh_4.MeshType = Enum.MeshType.FileMesh
2917Mesh_4.MeshId = "http://www.roblox.com/asset/?id=122797995 "
2918Mesh_4.TextureId = "http://www.roblox.com/asset/?id=122798644 "
2919Mesh_4.Scale = Vector3.new(0.7,0.7,0.7)
2920Mesh_4.Parent = Handle_3
2921
2922ThumbnailCamera_3.CFrame = CFrame.new(-1.232,17.347,20.256,-0.914,0.011,-0.407,0,1,0.026,0.407,0.024,-0.913)
2923ThumbnailCamera_3.Focus = CFrame.new(-0.5,17.3,21.9,1,0,0,0,1,0,0,0,1)
2924ThumbnailCamera_3.Name = "ThumbnailCamera"
2925ThumbnailCamera_3.Parent = PercyJacksonHalfBloodCap
2926
2927table.insert(functions,sandbox(Sound_1,function()
2928---This server script creates the sounds and also exists so that it can be easily copied into an NPC and create sounds for that NPC.
2929--Remove the local script if you copy this into an NPC.
2930
2931function waitForChild(parent, childName)
2932 local child = parent:findFirstChild(childName)
2933 if child then return child end
2934 while true do
2935 child = parent.ChildAdded:wait()
2936 if child.Name==childName then return child end
2937 end
2938end
2939
2940function newSound(name, id)
2941 local sound = Instance.new("Sound")
2942 sound.SoundId = id
2943 sound.Name = name
2944 sound.archivable = false
2945 sound.Parent = script.Parent.Head
2946 return sound
2947end
2948
2949-- declarations
2950
2951local sGettingUp = newSound("GettingUp", "rbxasset://sounds/action_get_up.mp3")
2952local sDied = newSound("Died", "rbxasset://sounds/uuhhh.mp3")
2953local sFreeFalling = newSound("FreeFalling", "rbxasset://sounds/action_falling.mp3")
2954local sJumping = newSound("Jumping", "rbxasset://sounds/action_jump.mp3")
2955local sLanding = newSound("Landing", "rbxasset://sounds/action_jump_land.mp3")
2956local sSplash = newSound("Splash", "rbxasset://sounds/impact_water.mp3")
2957local sRunning = newSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3")
2958sRunning.Looped = true
2959local sSwimming = newSound("Swimming", "rbxasset://sounds/action_swim.mp3")
2960sSwimming.Looped = true
2961local sClimbing = newSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3")
2962sClimbing.Looped = true
2963
2964local Figure = script.Parent
2965local Head = waitForChild(Figure, "Head")
2966local Humanoid = waitForChild(Figure, "Humanoid")
2967local hasPlayer = game.Players:GetPlayerFromCharacter(script.Parent)
2968local filteringEnabled = game.Workspace.FilteringEnabled
2969
2970local prevState = "None"
2971
2972-- functions
2973
2974function onDied()
2975 stopLoopedSounds()
2976 sDied:Play()
2977end
2978
2979local fallCount = 0
2980local fallSpeed = 0
2981function onStateFall(state, sound)
2982 fallCount = fallCount + 1
2983 if state then
2984 sound.Volume = 0
2985 sound:Play()
2986 Spawn( function()
2987 local t = 0
2988 local thisFall = fallCount
2989 while t < 1.5 and fallCount == thisFall do
2990 local vol = math.max(t - 0.3 , 0)
2991 sound.Volume = vol
2992 wait(0.1)
2993 t = t + 0.1
2994 end
2995 end)
2996 else
2997 sound:Stop()
2998 end
2999 fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
3000end
3001
3002
3003function onStateNoStop(state, sound)
3004 if state then
3005 sound:Play()
3006 end
3007end
3008
3009
3010function onRunning(speed)
3011 sClimbing:Stop()
3012 sSwimming:Stop()
3013 if (prevState == "FreeFall" and fallSpeed > 0.1) then
3014 local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
3015 sLanding.Volume = vol
3016 sLanding:Play()
3017 fallSpeed = 0
3018 end
3019 if speed>0.5 then
3020 sRunning:Play()
3021 sRunning.Pitch = speed / 8.0
3022 else
3023 sRunning:Stop()
3024 end
3025 prevState = "Run"
3026end
3027
3028function onSwimming(speed)
3029 if (prevState ~= "Swim" and speed > 0.1) then
3030 local volume = math.min(1.0, speed / 350)
3031 sSplash.Volume = volume
3032 sSplash:Play()
3033 prevState = "Swim"
3034 end
3035 sClimbing:Stop()
3036 sRunning:Stop()
3037 sSwimming.Pitch = 1.6
3038 sSwimming:Play()
3039end
3040
3041function onClimbing(speed)
3042 sRunning:Stop()
3043 sSwimming:Stop()
3044 if speed>0.01 then
3045 sClimbing:Play()
3046 sClimbing.Pitch = speed / 5.5
3047 else
3048 sClimbing:Stop()
3049 end
3050 prevState = "Climb"
3051end
3052-- connect up
3053
3054function stopLoopedSounds()
3055 sRunning:Stop()
3056 sClimbing:Stop()
3057 sSwimming:Stop()
3058end
3059
3060if hasPlayer == nil then
3061 Humanoid.Died:connect(onDied)
3062 Humanoid.Running:connect(onRunning)
3063 Humanoid.Swimming:connect(onSwimming)
3064 Humanoid.Climbing:connect(onClimbing)
3065 Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
3066 Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
3067 Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
3068 Humanoid.FallingDown:connect(function(state) stopLoopedSounds() end)
3069 Humanoid.StateChanged:connect(function(old, new)
3070 if not (new.Name == "Dead" or
3071 new.Name == "Running" or
3072 new.Name == "RunningNoPhysics" or
3073 new.Name == "Swimming" or
3074 new.Name == "Jumping" or
3075 new.Name == "GettingUp" or
3076 new.Name == "Freefall" or
3077 new.Name == "FallingDown") then
3078 stopLoopedSounds()
3079 end
3080 end)
3081end
3082
3083end))
3084Sound_1.Name = "Sound"
3085Sound_1.Parent = Model
3086
3087table.insert(functions,sandbox(LocalSound_1,function()
3088--This local script will run only for the player whos character it is in. It's changes to the sounds will replicate as they are changes to the character.
3089-- util
3090
3091function waitForChild(parent, childName)
3092 local child = parent:findFirstChild(childName)
3093 if child then return child end
3094 while true do
3095 child = parent.ChildAdded:wait()
3096 if child.Name==childName then return child end
3097 end
3098end
3099
3100
3101-- declarations
3102
3103local Figure = script.Parent.Parent
3104local Head = waitForChild(Figure, "Head")
3105local Humanoid = waitForChild(Figure, "Humanoid")
3106
3107local sGettingUp = waitForChild(Head, "GettingUp")
3108local sDied = waitForChild(Head, "Died")
3109local sFreeFalling = waitForChild(Head, "FreeFalling")
3110local sJumping = waitForChild(Head, "Jumping")
3111local sLanding = waitForChild(Head, "Landing")
3112local sSplash = waitForChild(Head, "Splash")
3113local sRunning = waitForChild(Head, "Running")
3114sRunning.Looped = true
3115local sSwimming = waitForChild(Head, "Swimming")
3116sSwimming.Looped = true
3117local sClimbing =waitForChild(Head, "Climbing")
3118sClimbing.Looped = true
3119
3120local prevState = "None"
3121
3122-- functions
3123
3124function onDied()
3125 stopLoopedSounds()
3126 sDied:Play()
3127end
3128
3129local fallCount = 0
3130local fallSpeed = 0
3131function onStateFall(state, sound)
3132 fallCount = fallCount + 1
3133 if state then
3134 sound.Volume = 0
3135 sound:Play()
3136 Spawn( function()
3137 local t = 0
3138 local thisFall = fallCount
3139 while t < 1.5 and fallCount == thisFall do
3140 local vol = math.max(t - 0.3 , 0)
3141 sound.Volume = vol
3142 wait(0.1)
3143 t = t + 0.1
3144 end
3145 end)
3146 else
3147 sound:Stop()
3148 end
3149 fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
3150end
3151
3152
3153function onStateNoStop(state, sound)
3154 if state then
3155 sound:Play()
3156 end
3157end
3158
3159
3160function onRunning(speed)
3161 sClimbing:Stop()
3162 sSwimming:Stop()
3163 if (prevState == "FreeFall" and fallSpeed > 0.1) then
3164 local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
3165 sLanding.Volume = vol
3166 sLanding:Play()
3167 fallSpeed = 0
3168 end
3169 if speed>0.5 then
3170 sRunning:Play()
3171 sRunning.Pitch = speed / 8.0
3172 else
3173 sRunning:Stop()
3174 end
3175 prevState = "Run"
3176end
3177
3178function onSwimming(speed)
3179 if (prevState ~= "Swim" and speed > 0.1) then
3180 local volume = math.min(1.0, speed / 350)
3181 sSplash.Volume = volume
3182 sSplash:Play()
3183 prevState = "Swim"
3184 end
3185 sClimbing:Stop()
3186 sRunning:Stop()
3187 sSwimming.Pitch = 1.6
3188 sSwimming:Play()
3189end
3190
3191function onClimbing(speed)
3192 sRunning:Stop()
3193 sSwimming:Stop()
3194 if speed>0.01 then
3195 sClimbing:Play()
3196 sClimbing.Pitch = speed / 5.5
3197 else
3198 sClimbing:Stop()
3199 end
3200 prevState = "Climb"
3201end
3202-- connect up
3203
3204function stopLoopedSounds()
3205 sRunning:Stop()
3206 sClimbing:Stop()
3207 sSwimming:Stop()
3208end
3209
3210Humanoid.Died:connect(onDied)
3211Humanoid.Running:connect(onRunning)
3212Humanoid.Swimming:connect(onSwimming)
3213Humanoid.Climbing:connect(onClimbing)
3214Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
3215Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
3216Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
3217Humanoid.FallingDown:connect(function(state) stopLoopedSounds() end)
3218Humanoid.StateChanged:connect(function(old, new)
3219 if not (new.Name == "Dead" or
3220 new.Name == "Running" or
3221 new.Name == "RunningNoPhysics" or
3222 new.Name == "Swimming" or
3223 new.Name == "Jumping" or
3224 new.Name == "GettingUp" or
3225 new.Name == "Freefall" or
3226 new.Name == "FallingDown") then
3227 stopLoopedSounds()
3228 end
3229end)
3230
3231
3232end))
3233LocalSound_1.Name = "LocalSound"
3234LocalSound_1.Parent = Sound_1
3235
3236UltraFabulousHair.Name = "Ultra-Fabulous Hair"
3237UltraFabulousHair.Parent = Model
3238
3239Handle_4.Anchored = true
3240Handle_4.BottomSurface = Enum.SurfaceType.Smooth
3241Handle_4.CFrame = CFrame.new(-11.667,9.136,3.434,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
3242Handle_4.CanCollide = false
3243Handle_4.Size = Vector3.new(2,2,2)
3244Handle_4.TopSurface = Enum.SurfaceType.Smooth
3245Handle_4.Name = "Handle"
3246Handle_4.Parent = UltraFabulousHair
3247
3248Mesh_5.MeshType = Enum.MeshType.FileMesh
3249Mesh_5.MeshId = "http://www.roblox.com/asset/?id=16627529"
3250Mesh_5.TextureId = "http://www.roblox.com/asset/?id=16627494"
3251Mesh_5.Scale = Vector3.new(1.05,1.05,1.05)
3252Mesh_5.Parent = Handle_4
3253
3254ZootopiaBeastHeadphones.AttachmentPoint = CFrame.new(0,0.05,0.05,1,0,0,0,1,0,0,0,1)
3255ZootopiaBeastHeadphones.AttachmentPos = Vector3.new(0,0.05,0.05)
3256ZootopiaBeastHeadphones.Name = "Zootopia_BeastHeadphones"
3257ZootopiaBeastHeadphones.Parent = Model
3258
3259Handle_5.Anchored = true
3260Handle_5.BottomSurface = Enum.SurfaceType.Smooth
3261Handle_5.CFrame = CFrame.new(-11.632,9.075,3.434,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
3262Handle_5.CanCollide = false
3263Handle_5.Size = Vector3.new(1.25,1.13,1.14)
3264Handle_5.TopSurface = Enum.SurfaceType.Smooth
3265Handle_5.Name = "Handle"
3266Handle_5.Parent = ZootopiaBeastHeadphones
3267
3268Mesh_6.MeshType = Enum.MeshType.FileMesh
3269Mesh_6.MeshId = "http://www.roblox.com/asset/?id=361961000"
3270Mesh_6.TextureId = "http://www.roblox.com/asset/?id=361961290 "
3271Mesh_6.Parent = Handle_5
3272
3273ThumbnailCamera_4.CFrame = CFrame.new(64.192,6.219,-43.916,-0.548,0.044,-0.835,0,0.999,0.053,0.837,0.029,-0.547)
3274ThumbnailCamera_4.Focus = CFrame.new(65.863,6.113,-42.822,1,0,0,0,1,0,0,0,1)
3275ThumbnailCamera_4.Name = "ThumbnailCamera"
3276ThumbnailCamera_4.Parent = ZootopiaBeastHeadphones
3277
3278table.insert(functions,sandbox(Animate_1,function()
3279function waitForChild(parent, childName)
3280 local child = parent:findFirstChild(childName)
3281 if child then return child end
3282 while true do
3283 child = parent.ChildAdded:wait()
3284 if child.Name==childName then return child end
3285 end
3286end
3287
3288local Figure = script.Parent
3289local Torso = waitForChild(Figure, "Torso")
3290local RightShoulder = waitForChild(Torso, "Right Shoulder")
3291local LeftShoulder = waitForChild(Torso, "Left Shoulder")
3292local RightHip = waitForChild(Torso, "Right Hip")
3293local LeftHip = waitForChild(Torso, "Left Hip")
3294local Neck = waitForChild(Torso, "Neck")
3295local Humanoid = waitForChild(Figure, "Humanoid")
3296local pose = "Standing"
3297
3298local currentAnim = ""
3299local currentAnimInstance = nil
3300local currentAnimTrack = nil
3301local currentAnimKeyframeHandler = nil
3302local currentAnimSpeed = 1.0
3303local animTable = {}
3304local animNames = {
3305 idle = {
3306 { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
3307 { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
3308 },
3309 walk = {
3310 { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
3311 },
3312 run = {
3313 { id = "run.xml", weight = 10 }
3314 },
3315 jump = {
3316 { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
3317 },
3318 fall = {
3319 { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
3320 },
3321 climb = {
3322 { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
3323 },
3324 sit = {
3325 { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
3326 },
3327 toolnone = {
3328 { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
3329 },
3330 toolslash = {
3331 { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
3332-- { id = "slash.xml", weight = 10 }
3333 },
3334 toollunge = {
3335 { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
3336 },
3337 wave = {
3338 { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
3339 },
3340 point = {
3341 { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
3342 },
3343 dance1 = {
3344 { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
3345 { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
3346 { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
3347 },
3348 dance2 = {
3349 { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
3350 { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
3351 { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
3352 },
3353 dance3 = {
3354 { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
3355 { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
3356 { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
3357 },
3358 laugh = {
3359 { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
3360 },
3361 cheer = {
3362 { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
3363 },
3364}
3365local dances = {"dance1", "dance2", "dance3"}
3366
3367-- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
3368local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
3369
3370function configureAnimationSet(name, fileList)
3371 if (animTable[name] ~= nil) then
3372 for _, connection in pairs(animTable[name].connections) do
3373 connection:disconnect()
3374 end
3375 end
3376 animTable[name] = {}
3377 animTable[name].count = 0
3378 animTable[name].totalWeight = 0
3379 animTable[name].connections = {}
3380
3381 -- check for config values
3382 local config = script:FindFirstChild(name)
3383 if (config ~= nil) then
3384-- print("Loading anims " .. name)
3385 table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
3386 table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
3387 local idx = 1
3388 for _, childPart in pairs(config:GetChildren()) do
3389 if (childPart:IsA("Animation")) then
3390 table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
3391 animTable[name][idx] = {}
3392 animTable[name][idx].anim = childPart
3393 local weightObject = childPart:FindFirstChild("Weight")
3394 if (weightObject == nil) then
3395 animTable[name][idx].weight = 1
3396 else
3397 animTable[name][idx].weight = weightObject.Value
3398 end
3399 animTable[name].count = animTable[name].count + 1
3400 animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
3401 -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
3402 idx = idx + 1
3403 end
3404 end
3405 end
3406
3407 -- fallback to defaults
3408 if (animTable[name].count <= 0) then
3409 for idx, anim in pairs(fileList) do
3410 animTable[name][idx] = {}
3411 animTable[name][idx].anim = Instance.new("Animation")
3412 animTable[name][idx].anim.Name = name
3413 animTable[name][idx].anim.AnimationId = anim.id
3414 animTable[name][idx].weight = anim.weight
3415 animTable[name].count = animTable[name].count + 1
3416 animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
3417-- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
3418 end
3419 end
3420end
3421
3422-- Setup animation objects
3423function scriptChildModified(child)
3424 local fileList = animNames[child.Name]
3425 if (fileList ~= nil) then
3426 configureAnimationSet(child.Name, fileList)
3427 end
3428end
3429
3430script.ChildAdded:connect(scriptChildModified)
3431script.ChildRemoved:connect(scriptChildModified)
3432
3433
3434for name, fileList in pairs(animNames) do
3435 configureAnimationSet(name, fileList)
3436end
3437
3438-- ANIMATION
3439
3440-- declarations
3441local toolAnim = "None"
3442local toolAnimTime = 0
3443
3444local jumpAnimTime = 0
3445local jumpAnimDuration = 0.3
3446
3447local toolTransitionTime = 0.1
3448local fallTransitionTime = 0.3
3449local jumpMaxLimbVelocity = 0.75
3450
3451-- functions
3452
3453function stopAllAnimations()
3454 local oldAnim = currentAnim
3455
3456 -- return to idle if finishing an emote
3457 if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
3458 oldAnim = "idle"
3459 end
3460
3461 currentAnim = ""
3462 currentAnimInstance = nil
3463 if (currentAnimKeyframeHandler ~= nil) then
3464 currentAnimKeyframeHandler:disconnect()
3465 end
3466
3467 if (currentAnimTrack ~= nil) then
3468 currentAnimTrack:Stop()
3469 currentAnimTrack:Destroy()
3470 currentAnimTrack = nil
3471 end
3472 return oldAnim
3473end
3474
3475function setAnimationSpeed(speed)
3476 if speed ~= currentAnimSpeed then
3477 currentAnimSpeed = speed
3478 currentAnimTrack:AdjustSpeed(currentAnimSpeed)
3479 end
3480end
3481
3482function keyFrameReachedFunc(frameName)
3483 if (frameName == "End") then
3484
3485 local repeatAnim = currentAnim
3486 -- return to idle if finishing an emote
3487 if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
3488 repeatAnim = "idle"
3489 end
3490
3491 local animSpeed = currentAnimSpeed
3492 playAnimation(repeatAnim, 0.0, Humanoid)
3493 setAnimationSpeed(animSpeed)
3494 end
3495end
3496
3497-- Preload animations
3498function playAnimation(animName, transitionTime, humanoid)
3499
3500 local roll = math.random(1, animTable[animName].totalWeight)
3501 local origRoll = roll
3502 local idx = 1
3503 while (roll > animTable[animName][idx].weight) do
3504 roll = roll - animTable[animName][idx].weight
3505 idx = idx + 1
3506 end
3507-- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
3508 local anim = animTable[animName][idx].anim
3509
3510 -- switch animation
3511 if (anim ~= currentAnimInstance) then
3512
3513 if (currentAnimTrack ~= nil) then
3514 currentAnimTrack:Stop(transitionTime)
3515 currentAnimTrack:Destroy()
3516 end
3517
3518 currentAnimSpeed = 1.0
3519
3520 -- load it to the humanoid; get AnimationTrack
3521 currentAnimTrack = humanoid:LoadAnimation(anim)
3522
3523 -- play the animation
3524 currentAnimTrack:Play(transitionTime)
3525 currentAnim = animName
3526 currentAnimInstance = anim
3527
3528 -- set up keyframe name triggers
3529 if (currentAnimKeyframeHandler ~= nil) then
3530 currentAnimKeyframeHandler:disconnect()
3531 end
3532 currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
3533
3534 end
3535
3536end
3537
3538-------------------------------------------------------------------------------------------
3539-------------------------------------------------------------------------------------------
3540
3541local toolAnimName = ""
3542local toolAnimTrack = nil
3543local toolAnimInstance = nil
3544local currentToolAnimKeyframeHandler = nil
3545
3546function toolKeyFrameReachedFunc(frameName)
3547 if (frameName == "End") then
3548-- print("Keyframe : ".. frameName)
3549 playToolAnimation(toolAnimName, 0.0, Humanoid)
3550 end
3551end
3552
3553
3554function playToolAnimation(animName, transitionTime, humanoid)
3555
3556 local roll = math.random(1, animTable[animName].totalWeight)
3557 local origRoll = roll
3558 local idx = 1
3559 while (roll > animTable[animName][idx].weight) do
3560 roll = roll - animTable[animName][idx].weight
3561 idx = idx + 1
3562 end
3563-- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
3564 local anim = animTable[animName][idx].anim
3565
3566 if (toolAnimInstance ~= anim) then
3567
3568 if (toolAnimTrack ~= nil) then
3569 toolAnimTrack:Stop()
3570 toolAnimTrack:Destroy()
3571 transitionTime = 0
3572 end
3573
3574 -- load it to the humanoid; get AnimationTrack
3575 toolAnimTrack = humanoid:LoadAnimation(anim)
3576
3577 -- play the animation
3578 toolAnimTrack:Play(transitionTime)
3579 toolAnimName = animName
3580 toolAnimInstance = anim
3581
3582 currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
3583 end
3584end
3585
3586function stopToolAnimations()
3587 local oldAnim = toolAnimName
3588
3589 if (currentToolAnimKeyframeHandler ~= nil) then
3590 currentToolAnimKeyframeHandler:disconnect()
3591 end
3592
3593 toolAnimName = ""
3594 toolAnimInstance = nil
3595 if (toolAnimTrack ~= nil) then
3596 toolAnimTrack:Stop()
3597 toolAnimTrack:Destroy()
3598 toolAnimTrack = nil
3599 end
3600
3601
3602 return oldAnim
3603end
3604
3605-------------------------------------------------------------------------------------------
3606-------------------------------------------------------------------------------------------
3607
3608
3609function onRunning(speed)
3610 if speed>0.01 then
3611 playAnimation("walk", 0.1, Humanoid)
3612 if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
3613 setAnimationSpeed(speed / 14.5)
3614 end
3615 pose = "Running"
3616 else
3617 playAnimation("idle", 0.1, Humanoid)
3618 pose = "Standing"
3619 end
3620end
3621
3622function onDied()
3623 pose = "Dead"
3624end
3625
3626function onJumping()
3627 playAnimation("jump", 0.1, Humanoid)
3628 jumpAnimTime = jumpAnimDuration
3629 pose = "Jumping"
3630end
3631
3632function onClimbing(speed)
3633 playAnimation("climb", 0.1, Humanoid)
3634 setAnimationSpeed(speed / 12.0)
3635 pose = "Climbing"
3636end
3637
3638function onGettingUp()
3639 pose = "GettingUp"
3640end
3641
3642function onFreeFall()
3643 if (jumpAnimTime <= 0) then
3644 playAnimation("fall", fallTransitionTime, Humanoid)
3645 end
3646 pose = "FreeFall"
3647end
3648
3649function onFallingDown()
3650 pose = "FallingDown"
3651end
3652
3653function onSeated()
3654 pose = "Seated"
3655end
3656
3657function onPlatformStanding()
3658 pose = "PlatformStanding"
3659end
3660
3661function onSwimming(speed)
3662 if speed>0 then
3663 pose = "Running"
3664 else
3665 pose = "Standing"
3666 end
3667end
3668
3669function getTool()
3670 for _, kid in ipairs(Figure:GetChildren()) do
3671 if kid.className == "Tool" then return kid end
3672 end
3673 return nil
3674end
3675
3676function getToolAnim(tool)
3677 for _, c in ipairs(tool:GetChildren()) do
3678 if c.Name == "toolanim" and c.className == "StringValue" then
3679 return c
3680 end
3681 end
3682 return nil
3683end
3684
3685function animateTool()
3686
3687 if (toolAnim == "None") then
3688 playToolAnimation("toolnone", toolTransitionTime, Humanoid)
3689 return
3690 end
3691
3692 if (toolAnim == "Slash") then
3693 playToolAnimation("toolslash", 0, Humanoid)
3694 return
3695 end
3696
3697 if (toolAnim == "Lunge") then
3698 playToolAnimation("toollunge", 0, Humanoid)
3699 return
3700 end
3701end
3702
3703function moveSit()
3704 RightShoulder.MaxVelocity = 0.15
3705 LeftShoulder.MaxVelocity = 0.15
3706 RightShoulder:SetDesiredAngle(3.14 /2)
3707 LeftShoulder:SetDesiredAngle(-3.14 /2)
3708 RightHip:SetDesiredAngle(3.14 /2)
3709 LeftHip:SetDesiredAngle(-3.14 /2)
3710end
3711
3712local lastTick = 0
3713
3714function move(time)
3715 local amplitude = 1
3716 local frequency = 1
3717 local deltaTime = time - lastTick
3718 lastTick = time
3719
3720 local climbFudge = 0
3721 local setAngles = false
3722
3723 if (jumpAnimTime > 0) then
3724 jumpAnimTime = jumpAnimTime - deltaTime
3725 end
3726
3727 if (pose == "FreeFall" and jumpAnimTime <= 0) then
3728 playAnimation("fall", fallTransitionTime, Humanoid)
3729 elseif (pose == "Seated") then
3730 playAnimation("sit", 0.5, Humanoid)
3731 return
3732 elseif (pose == "Running") then
3733 playAnimation("walk", 0.1, Humanoid)
3734 elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
3735-- print("Wha " .. pose)
3736 stopAllAnimations()
3737 amplitude = 0.1
3738 frequency = 1
3739 setAngles = true
3740 end
3741
3742 if (setAngles) then
3743 desiredAngle = amplitude * math.sin(time * frequency)
3744
3745 RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
3746 LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
3747 RightHip:SetDesiredAngle(-desiredAngle)
3748 LeftHip:SetDesiredAngle(-desiredAngle)
3749 end
3750
3751 -- Tool Animation handling
3752 local tool = getTool()
3753 if tool and tool:FindFirstChild("Handle") then
3754
3755 animStringValueObject = getToolAnim(tool)
3756
3757 if animStringValueObject then
3758 toolAnim = animStringValueObject.Value
3759 -- message recieved, delete StringValue
3760 animStringValueObject.Parent = nil
3761 toolAnimTime = time + .3
3762 end
3763
3764 if time > toolAnimTime then
3765 toolAnimTime = 0
3766 toolAnim = "None"
3767 end
3768
3769 animateTool()
3770 else
3771 stopToolAnimations()
3772 toolAnim = "None"
3773 toolAnimInstance = nil
3774 toolAnimTime = 0
3775 end
3776end
3777
3778-- connect events
3779Humanoid.Died:connect(onDied)
3780Humanoid.Running:connect(onRunning)
3781Humanoid.Jumping:connect(onJumping)
3782Humanoid.Climbing:connect(onClimbing)
3783Humanoid.GettingUp:connect(onGettingUp)
3784Humanoid.FreeFalling:connect(onFreeFall)
3785Humanoid.FallingDown:connect(onFallingDown)
3786Humanoid.Seated:connect(onSeated)
3787Humanoid.PlatformStanding:connect(onPlatformStanding)
3788Humanoid.Swimming:connect(onSwimming)
3789
3790-- setup emote chat hook
3791game.Players.LocalPlayer.Chatted:connect(function(msg)
3792 local emote = ""
3793 if msg == "/e dance" then
3794 emote = dances[math.random(1, #dances)]
3795 elseif (string.sub(msg, 1, 3) == "/e ") then
3796 emote = string.sub(msg, 4)
3797 elseif (string.sub(msg, 1, 7) == "/emote ") then
3798 emote = string.sub(msg, 8)
3799 end
3800
3801 if (pose == "Standing" and emoteNames[emote] ~= nil) then
3802 playAnimation(emote, 0.1, Humanoid)
3803 end
3804
3805end)
3806
3807
3808-- main program
3809
3810local runService = game:service("RunService");
3811
3812-- initialize to idle
3813playAnimation("idle", 0.1, Humanoid)
3814pose = "Standing"
3815
3816while Figure.Parent~=nil do
3817 local _, time = wait(0.1)
3818 move(time)
3819end
3820
3821
3822
3823end))
3824Animate_1.Name = "Animate"
3825Animate_1.Parent = Model
3826
3827idle_1.Name = "idle"
3828idle_1.Parent = Animate_1
3829
3830Animation1_4.AnimationId = "http://www.roblox.com/asset/?id=180435571"
3831Animation1_4.Name = "Animation1"
3832Animation1_4.Parent = idle_1
3833
3834Weight_12.Value = 9
3835Weight_12.Name = "Weight"
3836Weight_12.Parent = Animation1_4
3837
3838Animation2_4.AnimationId = "http://www.roblox.com/asset/?id=180435792"
3839Animation2_4.Name = "Animation2"
3840Animation2_4.Parent = idle_1
3841
3842Weight_13.Value = 1
3843Weight_13.Name = "Weight"
3844Weight_13.Parent = Animation2_4
3845
3846walk_1.Name = "walk"
3847walk_1.Parent = Animate_1
3848
3849WalkAnim_1.AnimationId = "http://www.roblox.com/asset/?id=180426354"
3850WalkAnim_1.Name = "WalkAnim"
3851WalkAnim_1.Parent = walk_1
3852
3853run_1.Name = "run"
3854run_1.Parent = Animate_1
3855
3856RunAnim_1.AnimationId = "http://www.roblox.com/asset/?id=180426354"
3857RunAnim_1.Name = "RunAnim"
3858RunAnim_1.Parent = run_1
3859
3860jump_1.Name = "jump"
3861jump_1.Parent = Animate_1
3862
3863JumpAnim_1.AnimationId = "http://www.roblox.com/asset/?id=125750702"
3864JumpAnim_1.Name = "JumpAnim"
3865JumpAnim_1.Parent = jump_1
3866
3867climb_1.Name = "climb"
3868climb_1.Parent = Animate_1
3869
3870ClimbAnim_1.AnimationId = "http://www.roblox.com/asset/?id=180436334"
3871ClimbAnim_1.Name = "ClimbAnim"
3872ClimbAnim_1.Parent = climb_1
3873
3874toolnone_1.Name = "toolnone"
3875toolnone_1.Parent = Animate_1
3876
3877ToolNoneAnim_1.AnimationId = "http://www.roblox.com/asset/?id=182393478"
3878ToolNoneAnim_1.Name = "ToolNoneAnim"
3879ToolNoneAnim_1.Parent = toolnone_1
3880
3881fall_1.Name = "fall"
3882fall_1.Parent = Animate_1
3883
3884FallAnim_1.AnimationId = "http://www.roblox.com/asset/?id=180436148"
3885FallAnim_1.Name = "FallAnim"
3886FallAnim_1.Parent = fall_1
3887
3888sit_1.Name = "sit"
3889sit_1.Parent = Animate_1
3890
3891SitAnim_1.AnimationId = "http://www.roblox.com/asset/?id=178130996"
3892SitAnim_1.Name = "SitAnim"
3893SitAnim_1.Parent = sit_1
3894
3895Head_1.Anchored = true
3896Head_1.CFrame = CFrame.new(-11.8,8.654,3.434,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
3897Head_1.Color = Color3.new(0.973,0.973,0.973)
3898Head_1.Size = Vector3.new(2,1,1)
3899Head_1.TopSurface = Enum.SurfaceType.Smooth
3900Head_1.Name = "Head"
3901Head_1.Parent = Model
3902
3903Mesh_7.Scale = Vector3.new(1.25,1.25,1.25)
3904Mesh_7.Parent = Head_1
3905
3906HeadWeld.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3907HeadWeld.Part0 = Head_1
3908HeadWeld.Part1 = Handle_4
3909HeadWeld.Name = "HeadWeld"
3910HeadWeld.Parent = Head_1
3911
3912HeadWeld_1.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3913HeadWeld_1.C1 = CFrame.new(0,-0.05,0.25,1,0,0,0,1,0,0,0,1)
3914HeadWeld_1.Part0 = Head_1
3915HeadWeld_1.Part1 = Handle_3
3916HeadWeld_1.Name = "HeadWeld"
3917HeadWeld_1.Parent = Head_1
3918
3919face.Texture = "http://www.roblox.com/asset/?id=13038247"
3920face.Name = "face"
3921face.Parent = Head_1
3922
3923HeadWeld_2.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3924HeadWeld_2.C1 = CFrame.new(0,0.05,0.05,1,0,0,0,1,0,0,0,1)
3925HeadWeld_2.Part0 = Head_1
3926HeadWeld_2.Part1 = Handle_5
3927HeadWeld_2.Name = "HeadWeld"
3928HeadWeld_2.Parent = Head_1
3929
3930HeadWeld_3.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3931HeadWeld_3.C1 = CFrame.new(0,-0.05,0.25,1,0,0,0,1,0,0,0,1)
3932HeadWeld_3.Part0 = Head_1
3933HeadWeld_3.Part1 = Handle_3
3934HeadWeld_3.Name = "HeadWeld"
3935HeadWeld_3.Parent = Head_1
3936
3937HeadWeld_4.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3938HeadWeld_4.Part0 = Head_1
3939HeadWeld_4.Part1 = Handle_4
3940HeadWeld_4.Name = "HeadWeld"
3941HeadWeld_4.Parent = Head_1
3942
3943HeadWeld_5.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3944HeadWeld_5.C1 = CFrame.new(0,0.05,0.05,1,0,0,0,1,0,0,0,1)
3945HeadWeld_5.Part0 = Head_1
3946HeadWeld_5.Part1 = Handle_5
3947HeadWeld_5.Name = "HeadWeld"
3948HeadWeld_5.Parent = Head_1
3949
3950HeadWeld_6.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3951HeadWeld_6.C1 = CFrame.new(0,-0.05,0.25,1,0,0,0,1,0,0,0,1)
3952HeadWeld_6.Part0 = Head_1
3953HeadWeld_6.Part1 = Handle_3
3954HeadWeld_6.Name = "HeadWeld"
3955HeadWeld_6.Parent = Head_1
3956
3957HeadWeld_7.C0 = CFrame.new(0,0.5,0,1,0,0,0,1,0,0,0,1)
3958HeadWeld_7.C1 = CFrame.new(0,0.05,0.05,1,0,0,0,1,0,0,0,1)
3959HeadWeld_7.Part0 = Head_1
3960HeadWeld_7.Part1 = Handle_5
3961HeadWeld_7.Name = "HeadWeld"
3962HeadWeld_7.Parent = Head_1
3963
3964HumanoidRootPart_1.Anchored = true
3965HumanoidRootPart_1.BottomSurface = Enum.SurfaceType.Smooth
3966HumanoidRootPart_1.CFrame = CFrame.new(-12.198,7.208,3.434,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
3967HumanoidRootPart_1.CanCollide = false
3968HumanoidRootPart_1.Color = Color3.new(0.051,0.412,0.675)
3969HumanoidRootPart_1.LeftParamA = 0
3970HumanoidRootPart_1.LeftParamB = 0
3971HumanoidRootPart_1.RightParamA = 0
3972HumanoidRootPart_1.RightParamB = 0
3973HumanoidRootPart_1.Size = Vector3.new(2,2,1)
3974HumanoidRootPart_1.TopSurface = Enum.SurfaceType.Smooth
3975HumanoidRootPart_1.Transparency = 1
3976HumanoidRootPart_1.Name = "HumanoidRootPart"
3977HumanoidRootPart_1.Parent = Model
3978
3979RootJoint.MaxVelocity = 0.1
3980RootJoint.C0 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
3981RootJoint.C1 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
3982RootJoint.Part0 = HumanoidRootPart_1
3983RootJoint.Part1 = Torso
3984RootJoint.Name = "RootJoint"
3985RootJoint.Parent = HumanoidRootPart_1
3986
3987LeftArm.Anchored = true
3988LeftArm.CFrame = CFrame.new(-12.201,7.208,1.934,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
3989LeftArm.CanCollide = false
3990LeftArm.Color = Color3.new(0.973,0.973,0.973)
3991LeftArm.Size = Vector3.new(1,2,1)
3992LeftArm.Name = "Left Arm"
3993LeftArm.Parent = Model
3994
3995LeftLeg.Anchored = true
3996LeftLeg.BottomSurface = Enum.SurfaceType.Smooth
3997LeftLeg.CFrame = CFrame.new(-13.269,5.379,2.935,0.002,0.572,-0.821,-0.001,0.821,0.572,1,0,0.002)
3998LeftLeg.CanCollide = false
3999LeftLeg.Color = Color3.new(0.973,0.973,0.973)
4000LeftLeg.Size = Vector3.new(1,2,1)
4001LeftLeg.Name = "Left Leg"
4002LeftLeg.Parent = Model
4003
4004RightArm.Anchored = true
4005RightArm.CFrame = CFrame.new(-12.196,7.208,4.934,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
4006RightArm.CanCollide = false
4007RightArm.Color = Color3.new(0.973,0.973,0.973)
4008RightArm.Size = Vector3.new(1,2,1)
4009RightArm.Name = "Right Arm"
4010RightArm.Parent = Model
4011
4012RightLeg.Anchored = true
4013RightLeg.BottomSurface = Enum.SurfaceType.Smooth
4014RightLeg.CFrame = CFrame.new(-13.268,5.379,3.935,0.002,0.572,-0.821,-0.001,0.821,0.572,1,0,0.002)
4015RightLeg.CanCollide = false
4016RightLeg.Color = Color3.new(0.973,0.973,0.973)
4017RightLeg.Size = Vector3.new(1,2,1)
4018RightLeg.Name = "Right Leg"
4019RightLeg.Parent = Model
4020
4021Torso.Anchored = true
4022Torso.CFrame = CFrame.new(-12.198,7.208,3.434,0.002,0.266,-0.964,0,0.964,0.266,1,0,0.002)
4023Torso.Color = Color3.new(0.067,0.067,0.067)
4024Torso.LeftParamA = 0
4025Torso.LeftParamB = 0
4026Torso.LeftSurface = Enum.SurfaceType.Weld
4027Torso.RightParamA = 0
4028Torso.RightParamB = 0
4029Torso.RightSurface = Enum.SurfaceType.Weld
4030Torso.Size = Vector3.new(2,2,1)
4031Torso.Name = "Torso"
4032Torso.Parent = Model
4033
4034roblox.Name = "roblox"
4035roblox.Parent = Torso
4036
4037RightShoulder_1.MaxVelocity = 0.1
4038RightShoulder_1.C0 = CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,0,0)
4039RightShoulder_1.C1 = CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0)
4040RightShoulder_1.Part0 = Torso
4041RightShoulder_1.Part1 = RightArm
4042RightShoulder_1.Name = "Right Shoulder"
4043RightShoulder_1.Parent = Torso
4044
4045LeftShoulder.MaxVelocity = 0.1
4046LeftShoulder.C0 = CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0)
4047LeftShoulder.C1 = CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0)
4048LeftShoulder.Part0 = Torso
4049LeftShoulder.Part1 = LeftArm
4050LeftShoulder.Name = "Left Shoulder"
4051LeftShoulder.Parent = Torso
4052
4053Neck.MaxVelocity = 0.1
4054Neck.C0 = CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)
4055Neck.C1 = CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
4056Neck.Part0 = Torso
4057Neck.Part1 = Head_1
4058Neck.Name = "Neck"
4059Neck.Parent = Torso
4060
4061Model_1.Parent = Pwnga
4062
4063Pee.Grip = CFrame.new(-0.263,-0.237,0.356,0,1,0,-1,0,0,0,0,1)
4064Pee.GripPos = Vector3.new(-0.263,-0.237,0.356)
4065Pee.GripRight = Vector3.new(0,-1,0)
4066Pee.GripUp = Vector3.new(1,0,0)
4067Pee.Name = "Pee"
4068Pee.Parent = Model_1
4069
4070table.insert(functions,sandbox(Script,function()
4071Pee = script.Parent
4072Handle = Pee:WaitForChild("Handle")
4073Open = Handle:WaitForChild("Open")
4074
4075Pee.Equipped:Connect(function()
4076 print("The Tool was Equipped")
4077 Pee.CanBeDropped = true
4078end)
4079Pee.Activated:Connect(function()
4080 print("The Tool was Activated")
4081end)
4082Pee.Unequipped:Connect(function()
4083 print("The Tool was Unequipped")
4084 Pee.CanBeDropped = false
4085end)
4086Pee.Deactivated:Connect(function()
4087 print("The Tool was Deactivated")
4088end)
4089
4090
4091
4092end))
4093Script.Parent = Pee
4094
4095Handle_6.Shape = Enum.PartType.Cylinder
4096Handle_6.Anchored = true
4097Handle_6.BottomSurface = Enum.SurfaceType.Smooth
4098Handle_6.CFrame = CFrame.new(-12.159,5.381,3.503,0.016,0.955,0.297,1,-0.009,-0.026,-0.023,0.297,-0.955)
4099Handle_6.Color = Color3.new(1,1,0.498)
4100Handle_6.Material = Enum.Material.Glass
4101Handle_6.Size = Vector3.new(0.476,0.301,0.263)
4102Handle_6.TopSurface = Enum.SurfaceType.Smooth
4103Handle_6.Name = "Handle"
4104Handle_6.Parent = Pee
4105
4106Open.Shape = Enum.PartType.Cylinder
4107Open.Anchored = true
4108Open.BottomSurface = Enum.SurfaceType.Smooth
4109Open.CFrame = CFrame.new(-12.146,6.192,3.485,0.016,0.955,0.297,1,-0.009,-0.026,-0.023,0.297,-0.955)
4110Open.Color = Color3.new(0.416,0.224,0.035)
4111Open.Material = Enum.Material.Wood
4112Open.Size = Vector3.new(0.073,0.46,0.343)
4113Open.TopSurface = Enum.SurfaceType.Smooth
4114Open.Name = "Open"
4115Open.Parent = Handle_6
4116
4117Part.Shape = Enum.PartType.Ball
4118Part.Anchored = true
4119Part.BottomSurface = Enum.SurfaceType.Smooth
4120Part.CFrame = CFrame.new(-12.163,5.142,3.509,-0.955,0.016,0.297,0.009,1,-0.026,-0.297,-0.023,-0.955)
4121Part.Color = Color3.new(1,1,0.498)
4122Part.Material = Enum.Material.Cobblestone
4123Part.Size = Vector3.new(0.263,0.263,0.263)
4124Part.TopSurface = Enum.SurfaceType.Smooth
4125Part.Parent = Handle_6
4126
4127Weld.C1 = CFrame.new(-0.238,0,0,0,1,0,-1,0,0,0,0,1)
4128Weld.Part0 = Part
4129Weld.Part1 = Handle_6
4130Weld.Name = "Weld"
4131Weld.Parent = Part
4132
4133Part_1.Shape = Enum.PartType.Ball
4134Part_1.Anchored = true
4135Part_1.BottomSurface = Enum.SurfaceType.Smooth
4136Part_1.CFrame = CFrame.new(-12.163,5.1,3.509,-0.955,0.016,0.297,0.009,1,-0.026,-0.297,-0.023,-0.955)
4137Part_1.Color = Color3.new(0.792,0.796,0.82)
4138Part_1.Material = Enum.Material.Glass
4139Part_1.Reflectance = 1
4140Part_1.Size = Vector3.new(0.317,0.317,0.317)
4141Part_1.TopSurface = Enum.SurfaceType.Smooth
4142Part_1.Transparency = 0.5
4143Part_1.Parent = Handle_6
4144
4145Part_2.Shape = Enum.PartType.Cylinder
4146Part_2.Anchored = true
4147Part_2.BottomSurface = Enum.SurfaceType.Smooth
4148Part_2.CFrame = CFrame.new(-12.155,5.641,3.497,0.016,0.999,-0.048,1,-0.017,-0.022,-0.023,-0.047,-0.999)
4149Part_2.Color = Color3.new(0.804,0.804,0.804)
4150Part_2.Material = Enum.Material.Sand
4151Part_2.Reflectance = 1
4152Part_2.Size = Vector3.new(1.075,0.317,0.317)
4153Part_2.TopSurface = Enum.SurfaceType.Smooth
4154Part_2.Parent = Handle_6
4155
4156table.insert(functions,sandbox(Weld_1,function()
4157tool = script.Parent
4158while not tool:FindFirstChild("WeldProfile") do wait() end
4159profile = tool.WeldProfile
4160function reweld()
4161 for k, v in pairs(profile:GetChildren()) do
4162 local b = v.Value
4163 b:BreakJoints()
4164 local w = Instance.new("ManualWeld")
4165 w.Name = "HandleWeld"
4166 w.Part0 = b
4167 w.Part1 = profile.Value
4168 w.C0 = v.C0.Value
4169 w.C1 = v.C1.Value
4170 w.Parent = game.JointsService
4171 end
4172end
4173tool.AncestryChanged:connect(reweld)
4174reweld()
4175
4176end))
4177Weld_1.Name = "Weld"
4178Weld_1.Parent = Handle_6
4179
4180WeldProfile.Value = Handle_6
4181WeldProfile.Name = "WeldProfile"
4182WeldProfile.Parent = Handle_6
4183
4184Profile1.Value = Part_2
4185Profile1.Name = "Profile1"
4186Profile1.Parent = WeldProfile
4187
4188C0.Value = CFrame.new(0,0,0,0,1,0,-1,0,0,0,0,1)
4189C0.Name = "C0"
4190C0.Parent = Profile1
4191
4192C1.Value = CFrame.new(0,0,0,0,1,0,-1,0,0,0,0,1)
4193C1.Name = "C1"
4194C1.Parent = Profile1
4195
4196Profile2.Value = Part_1
4197Profile2.Name = "Profile2"
4198Profile2.Parent = WeldProfile
4199
4200C0_1.Name = "C0"
4201C0_1.Parent = Profile2
4202
4203C1_1.Value = CFrame.new(-0.886,0,0,0,1,0,-1,0,0,0,0,1)
4204C1_1.Name = "C1"
4205C1_1.Parent = Profile2
4206
4207Profile3.Value = Part
4208Profile3.Name = "Profile3"
4209Profile3.Parent = WeldProfile
4210
4211C0_2.Name = "C0"
4212C0_2.Parent = Profile3
4213
4214C1_2.Value = CFrame.new(-0.751,0,0,0,1,0,-1,0,0,0,0,1)
4215C1_2.Name = "C1"
4216C1_2.Parent = Profile3
4217
4218Profile4.Value = Open
4219Profile4.Name = "Profile4"
4220Profile4.Parent = WeldProfile
4221
4222C0_3.Value = CFrame.new(0,0,0,0,1,0,-1,0,0,0,0,1)
4223C0_3.Name = "C0"
4224C0_3.Parent = Profile4
4225
4226C1_3.Value = CFrame.new(0.86,0,0,0,1,0,-1,0,0,0,0,1)
4227C1_3.Name = "C1"
4228C1_3.Parent = Profile4
4229
4230table.insert(functions,sandbox(WeldBackup,function()
4231tool = script.Parent
4232while not tool:FindFirstChild("WeldProfile") do wait() end
4233profile = tool.WeldProfile
4234function reweld()
4235 for k, v in pairs(profile:GetChildren()) do
4236 local b = v.Value
4237 b:BreakJoints()
4238 local w = Instance.new("ManualWeld")
4239 w.Name = "HandleWeld"
4240 w.Part0 = b
4241 w.Part1 = profile.Value
4242 w.C0 = v.C0.Value
4243 w.C1 = v.C1.Value
4244 w.Parent = game.JointsService
4245 end
4246end
4247tool.AncestryChanged:connect(reweld)
4248reweld()
4249
4250end))
4251WeldBackup.Name = "WeldBackup"
4252WeldBackup.Parent = Handle_6
4253
4254IzzAtOMG.PrimaryPart = HumanoidRootPart_2
4255IzzAtOMG.Name = "IzzAtOMG"
4256IzzAtOMG.Parent = Pwnga
4257
4258Head_2.Anchored = true
4259Head_2.CFrame = CFrame.new(-18.8,4.484,-5.366,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4260Head_2.Color = Color3.new(1,0.8,0.6)
4261Head_2.Size = Vector3.new(2,1,1)
4262Head_2.TopSurface = Enum.SurfaceType.Smooth
4263Head_2.Name = "Head"
4264Head_2.Parent = IzzAtOMG
4265
4266Mesh_8.Scale = Vector3.new(1.25,1.25,1.25)
4267Mesh_8.Parent = Head_2
4268
4269HatAttachment_2.CFrame = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
4270HatAttachment_2.Position = Vector3.new(0,0.6,0)
4271HatAttachment_2.Name = "HatAttachment"
4272HatAttachment_2.Parent = Head_2
4273
4274HairAttachment_2.CFrame = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
4275HairAttachment_2.Position = Vector3.new(0,0.6,0)
4276HairAttachment_2.Name = "HairAttachment"
4277HairAttachment_2.Parent = Head_2
4278
4279FaceFrontAttachment_2.CFrame = CFrame.new(0,0,-0.6,1,0,0,0,1,0,0,0,1)
4280FaceFrontAttachment_2.Position = Vector3.new(0,0,-0.6)
4281FaceFrontAttachment_2.Name = "FaceFrontAttachment"
4282FaceFrontAttachment_2.Parent = Head_2
4283
4284FaceCenterAttachment_1.Name = "FaceCenterAttachment"
4285FaceCenterAttachment_1.Parent = Head_2
4286
4287face_1.Texture = "http://www.roblox.com/asset/?id=7699086"
4288face_1.Name = "face"
4289face_1.Parent = Head_2
4290
4291HumanoidRootPart_2.Anchored = true
4292HumanoidRootPart_2.BottomSurface = Enum.SurfaceType.Smooth
4293HumanoidRootPart_2.CFrame = CFrame.new(-18.8,2.984,-5.366,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4294HumanoidRootPart_2.CanCollide = false
4295HumanoidRootPart_2.LeftParamA = 0
4296HumanoidRootPart_2.LeftParamB = 0
4297HumanoidRootPart_2.RightParamA = 0
4298HumanoidRootPart_2.RightParamB = 0
4299HumanoidRootPart_2.Size = Vector3.new(2,2,1)
4300HumanoidRootPart_2.TopSurface = Enum.SurfaceType.Smooth
4301HumanoidRootPart_2.Transparency = 1
4302HumanoidRootPart_2.Name = "HumanoidRootPart"
4303HumanoidRootPart_2.Parent = IzzAtOMG
4304
4305RootJoint_1.MaxVelocity = 0.1
4306RootJoint_1.C0 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
4307RootJoint_1.C1 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
4308RootJoint_1.Part0 = HumanoidRootPart_2
4309RootJoint_1.Part1 = Torso_1
4310RootJoint_1.Name = "RootJoint"
4311RootJoint_1.Parent = HumanoidRootPart_2
4312
4313LeftArm_1.Anchored = true
4314LeftArm_1.CFrame = CFrame.new(-17.318,2.984,-5.598,-0.889,-0.431,-0.155,-0.436,0.9,0,0.139,0.067,-0.988)
4315LeftArm_1.CanCollide = false
4316LeftArm_1.Color = Color3.new(1,0.8,0.6)
4317LeftArm_1.Size = Vector3.new(1,2,1)
4318LeftArm_1.Name = "Left Arm"
4319LeftArm_1.Parent = IzzAtOMG
4320
4321LeftShoulderAttachment_1.CFrame = CFrame.new(0,1,0,1,0,0,0,1,0,0,0,1)
4322LeftShoulderAttachment_1.Position = Vector3.new(0,1,0)
4323LeftShoulderAttachment_1.Name = "LeftShoulderAttachment"
4324LeftShoulderAttachment_1.Parent = LeftArm_1
4325
4326LeftLeg_1.Anchored = true
4327LeftLeg_1.BottomSurface = Enum.SurfaceType.Smooth
4328LeftLeg_1.CFrame = CFrame.new(-18.306,0.984,-5.443,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4329LeftLeg_1.CanCollide = false
4330LeftLeg_1.Color = Color3.new(1,0.8,0.6)
4331LeftLeg_1.Size = Vector3.new(1,2,1)
4332LeftLeg_1.Name = "Left Leg"
4333LeftLeg_1.Parent = IzzAtOMG
4334
4335RightArm_1.Anchored = true
4336RightArm_1.CFrame = CFrame.new(-20.282,2.984,-5.134,-0.873,0.462,-0.155,0.468,0.884,0,0.137,-0.072,-0.988)
4337RightArm_1.CanCollide = false
4338RightArm_1.Color = Color3.new(1,0.8,0.6)
4339RightArm_1.Size = Vector3.new(1,2,1)
4340RightArm_1.Name = "Right Arm"
4341RightArm_1.Parent = IzzAtOMG
4342
4343RightShoulderAttachment_1.CFrame = CFrame.new(0,1,0,1,0,0,0,1,0,0,0,1)
4344RightShoulderAttachment_1.Position = Vector3.new(0,1,0)
4345RightShoulderAttachment_1.Name = "RightShoulderAttachment"
4346RightShoulderAttachment_1.Parent = RightArm_1
4347
4348RightLeg_1.Anchored = true
4349RightLeg_1.BottomSurface = Enum.SurfaceType.Smooth
4350RightLeg_1.CFrame = CFrame.new(-19.294,0.984,-5.288,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4351RightLeg_1.CanCollide = false
4352RightLeg_1.Color = Color3.new(1,0.8,0.6)
4353RightLeg_1.Size = Vector3.new(1,2,1)
4354RightLeg_1.Name = "Right Leg"
4355RightLeg_1.Parent = IzzAtOMG
4356
4357Torso_1.Anchored = true
4358Torso_1.CFrame = CFrame.new(-18.8,2.984,-5.366,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4359Torso_1.Color = Color3.new(1,0.8,0.6)
4360Torso_1.LeftParamA = 0
4361Torso_1.LeftParamB = 0
4362Torso_1.LeftSurface = Enum.SurfaceType.Weld
4363Torso_1.RightParamA = 0
4364Torso_1.RightParamB = 0
4365Torso_1.RightSurface = Enum.SurfaceType.Weld
4366Torso_1.Size = Vector3.new(2,2,1)
4367Torso_1.Name = "Torso"
4368Torso_1.Parent = IzzAtOMG
4369
4370roblox_1.Name = "roblox"
4371roblox_1.Parent = Torso_1
4372
4373RightHip.MaxVelocity = 0.1
4374RightHip.C0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
4375RightHip.C1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
4376RightHip.Part0 = Torso_1
4377RightHip.Part1 = RightLeg_1
4378RightHip.Name = "Right Hip"
4379RightHip.Parent = Torso_1
4380
4381LeftHip.MaxVelocity = 0.1
4382LeftHip.C0 = CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0)
4383LeftHip.C1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
4384LeftHip.Part0 = Torso_1
4385LeftHip.Part1 = LeftLeg_1
4386LeftHip.Name = "Left Hip"
4387LeftHip.Parent = Torso_1
4388
4389WaistFrontAttachment_1.CFrame = CFrame.new(0,-1,-0.5,1,0,0,0,1,0,0,0,1)
4390WaistFrontAttachment_1.Position = Vector3.new(0,-1,-0.5)
4391WaistFrontAttachment_1.Name = "WaistFrontAttachment"
4392WaistFrontAttachment_1.Parent = Torso_1
4393
4394WaistCenterAttachment_1.CFrame = CFrame.new(0,-1,0,1,0,0,0,1,0,0,0,1)
4395WaistCenterAttachment_1.Position = Vector3.new(0,-1,0)
4396WaistCenterAttachment_1.Name = "WaistCenterAttachment"
4397WaistCenterAttachment_1.Parent = Torso_1
4398
4399WaistBackAttachment_1.CFrame = CFrame.new(0,-1,0.5,1,0,0,0,1,0,0,0,1)
4400WaistBackAttachment_1.Position = Vector3.new(0,-1,0.5)
4401WaistBackAttachment_1.Name = "WaistBackAttachment"
4402WaistBackAttachment_1.Parent = Torso_1
4403
4404RightCollarAttachment_1.CFrame = CFrame.new(1,1,0,1,0,0,0,1,0,0,0,1)
4405RightCollarAttachment_1.Position = Vector3.new(1,1,0)
4406RightCollarAttachment_1.Name = "RightCollarAttachment"
4407RightCollarAttachment_1.Parent = Torso_1
4408
4409NeckAttachment_1.CFrame = CFrame.new(0,1,0,1,0,0,0,1,0,0,0,1)
4410NeckAttachment_1.Position = Vector3.new(0,1,0)
4411NeckAttachment_1.Name = "NeckAttachment"
4412NeckAttachment_1.Parent = Torso_1
4413
4414LeftCollarAttachment_1.CFrame = CFrame.new(-1,1,0,1,0,0,0,1,0,0,0,1)
4415LeftCollarAttachment_1.Position = Vector3.new(-1,1,0)
4416LeftCollarAttachment_1.Name = "LeftCollarAttachment"
4417LeftCollarAttachment_1.Parent = Torso_1
4418
4419BodyFrontAttachment_1.CFrame = CFrame.new(0,0,-0.5,1,0,0,0,1,0,0,0,1)
4420BodyFrontAttachment_1.Position = Vector3.new(0,0,-0.5)
4421BodyFrontAttachment_1.Name = "BodyFrontAttachment"
4422BodyFrontAttachment_1.Parent = Torso_1
4423
4424BodyBackAttachment_1.CFrame = CFrame.new(0,0,0.5,1,0,0,0,1,0,0,0,1)
4425BodyBackAttachment_1.Position = Vector3.new(0,0,0.5)
4426BodyBackAttachment_1.Name = "BodyBackAttachment"
4427BodyBackAttachment_1.Parent = Torso_1
4428
4429Neck_1.MaxVelocity = 0.1
4430Neck_1.C0 = CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)
4431Neck_1.C1 = CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
4432Neck_1.Part0 = Torso_1
4433Neck_1.Part1 = Head_2
4434Neck_1.Name = "Neck"
4435Neck_1.Parent = Torso_1
4436
4437Humanoid_2.Parent = IzzAtOMG
4438
4439CheesyDiver.AttachmentPoint = CFrame.new(0,0.34,0.25,1,0,0,0,1,0,0,0,1)
4440CheesyDiver.AttachmentPos = Vector3.new(0,0.34,0.25)
4441CheesyDiver.Name = "CheesyDiver"
4442CheesyDiver.Parent = IzzAtOMG
4443
4444Handle_7.Anchored = true
4445Handle_7.BottomSurface = Enum.SurfaceType.Smooth
4446Handle_7.CFrame = CFrame.new(-18.8,4.834,-5.366,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4447Handle_7.CanCollide = false
4448Handle_7.Locked = true
4449Handle_7.Size = Vector3.new(1.6,0.8,1.6)
4450Handle_7.TopSurface = Enum.SurfaceType.Smooth
4451Handle_7.Name = "Handle"
4452Handle_7.Parent = CheesyDiver
4453
4454Mesh_9.MeshType = Enum.MeshType.FileMesh
4455Mesh_9.MeshId = "rbxassetid://788143324"
4456Mesh_9.TextureId = "rbxassetid://788143789"
4457Mesh_9.Scale = Vector3.new(0.46,0.43,0.46)
4458Mesh_9.Parent = Handle_7
4459
4460HatAttachment_3.Axis = Vector3.new(1,0,0)
4461HatAttachment_3.CFrame = CFrame.new(0,0.25,0,1,0,0,0,1,0,0,0,1)
4462HatAttachment_3.Orientation = Vector3.new(0,0,0)
4463HatAttachment_3.Position = Vector3.new(0,0.25,0)
4464HatAttachment_3.Rotation = Vector3.new(0,0,0)
4465HatAttachment_3.SecondaryAxis = Vector3.new(0,1,0)
4466HatAttachment_3.Name = "HatAttachment"
4467HatAttachment_3.Parent = Handle_7
4468
4469OriginalSize_20.Value = Vector3.new(1.6,0.8,1.6)
4470OriginalSize_20.Name = "OriginalSize"
4471OriginalSize_20.Parent = Handle_7
4472
4473AccessoryWeld_4.C0 = CFrame.new(0,0.25,0,1,0,0,0,1,0,0,0,1)
4474AccessoryWeld_4.C1 = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
4475AccessoryWeld_4.Part0 = Handle_7
4476AccessoryWeld_4.Part1 = Head_2
4477AccessoryWeld_4.Name = "AccessoryWeld"
4478AccessoryWeld_4.Parent = Handle_7
4479
4480ThumbnailCamera_5.CFrame = CFrame.new(1.069,1.034,2.561,0.903,-0.077,0.422,0,0.984,0.179,-0.429,-0.162,0.889)
4481ThumbnailCamera_5.Focus = CFrame.new(0.225,0.676,0.783,1,0,0,0,1,0,0,0,1)
4482ThumbnailCamera_5.Name = "ThumbnailCamera"
4483ThumbnailCamera_5.Parent = CheesyDiver
4484
4485YondusFin.AttachmentPoint = CFrame.new(0,0.98,0.55,1,0,0,0,1,0,0,0,1)
4486YondusFin.AttachmentPos = Vector3.new(0,0.98,0.55)
4487YondusFin.Name = "Yondu'sFin"
4488YondusFin.Parent = IzzAtOMG
4489
4490Handle_8.Anchored = true
4491Handle_8.BottomSurface = Enum.SurfaceType.Smooth
4492Handle_8.CFrame = CFrame.new(-18.801,5.214,-5.376,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4493Handle_8.CanCollide = false
4494Handle_8.Locked = true
4495Handle_8.Size = Vector3.new(3,2,1)
4496Handle_8.TopSurface = Enum.SurfaceType.Smooth
4497Handle_8.Name = "Handle"
4498Handle_8.Parent = YondusFin
4499
4500Mesh_10.MeshType = Enum.MeshType.FileMesh
4501Mesh_10.MeshId = "rbxassetid://726930420"
4502Mesh_10.TextureId = "rbxassetid://726930691"
4503Mesh_10.Scale = Vector3.new(0.5,0.5,0.5)
4504Mesh_10.Parent = Handle_8
4505
4506HatAttachment_4.Axis = Vector3.new(1,0,0)
4507HatAttachment_4.CFrame = CFrame.new(0,-0.13,-0.01,1,0,0,0,1,0,0,0,1)
4508HatAttachment_4.Orientation = Vector3.new(0,0,0)
4509HatAttachment_4.Position = Vector3.new(0,-0.13,-0.01)
4510HatAttachment_4.Rotation = Vector3.new(0,0,0)
4511HatAttachment_4.SecondaryAxis = Vector3.new(0,1,0)
4512HatAttachment_4.Name = "HatAttachment"
4513HatAttachment_4.Parent = Handle_8
4514
4515OriginalSize_21.Value = Vector3.new(3,2,1)
4516OriginalSize_21.Name = "OriginalSize"
4517OriginalSize_21.Parent = Handle_8
4518
4519AccessoryWeld_5.C0 = CFrame.new(0,-0.13,-0.01,1,0,0,0,1,0,0,0,1)
4520AccessoryWeld_5.C1 = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
4521AccessoryWeld_5.Part0 = Handle_8
4522AccessoryWeld_5.Part1 = Head_2
4523AccessoryWeld_5.Name = "AccessoryWeld"
4524AccessoryWeld_5.Parent = Handle_8
4525
4526ThumbnailCamera_6.CFrame = CFrame.new(-0.638,1.609,1.863,0.968,0.053,-0.243,0,0.977,0.211,0.249,-0.205,0.947)
4527ThumbnailCamera_6.Focus = CFrame.new(-0.152,1.187,-0.03,1,0,0,0,1,0,0,0,1)
4528ThumbnailCamera_6.Name = "ThumbnailCamera"
4529ThumbnailCamera_6.Parent = YondusFin
4530
4531BrownCharmerHair.AttachmentPoint = CFrame.new(0,0.075,0.05,1,0,0,0,1,0,0,0,1)
4532BrownCharmerHair.AttachmentPos = Vector3.new(0,0.075,0.05)
4533BrownCharmerHair.Name = "BrownCharmerHair"
4534BrownCharmerHair.Parent = IzzAtOMG
4535
4536Handle_9.Anchored = true
4537Handle_9.BottomSurface = Enum.SurfaceType.Smooth
4538Handle_9.CFrame = CFrame.new(-18.792,4.909,-5.317,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4539Handle_9.CanCollide = false
4540Handle_9.Locked = true
4541Handle_9.Size = Vector3.new(1.2,1,1.6)
4542Handle_9.TopSurface = Enum.SurfaceType.Smooth
4543Handle_9.Name = "Handle"
4544Handle_9.Parent = BrownCharmerHair
4545
4546Mesh_11.MeshType = Enum.MeshType.FileMesh
4547Mesh_11.MeshId = "http://www.roblox.com/asset/?id=74878559"
4548Mesh_11.TextureId = "http://www.roblox.com/asset/?id=382682502 "
4549Mesh_11.Scale = Vector3.new(1.05,1,1.05)
4550Mesh_11.Parent = Handle_9
4551
4552HairAttachment_3.Axis = Vector3.new(1,0,0)
4553HairAttachment_3.CFrame = CFrame.new(0,0.175,0.05,1,0,0,0,1,0,0,0,1)
4554HairAttachment_3.Orientation = Vector3.new(0,0,0)
4555HairAttachment_3.Position = Vector3.new(0,0.175,0.05)
4556HairAttachment_3.Rotation = Vector3.new(0,0,0)
4557HairAttachment_3.SecondaryAxis = Vector3.new(0,1,0)
4558HairAttachment_3.Name = "HairAttachment"
4559HairAttachment_3.Parent = Handle_9
4560
4561AccessoryWeld_6.C0 = CFrame.new(0,0.175,0.05,1,0,0,0,1,0,0,0,1)
4562AccessoryWeld_6.C1 = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
4563AccessoryWeld_6.Part0 = Handle_9
4564AccessoryWeld_6.Part1 = Head_2
4565AccessoryWeld_6.Name = "AccessoryWeld"
4566AccessoryWeld_6.Parent = Handle_9
4567
4568ThumbnailCamera_7.CFrame = CFrame.new(0.674,0.735,1.417,0.905,-0.063,0.421,0,0.989,0.147,-0.426,-0.133,0.895)
4569ThumbnailCamera_7.Focus = CFrame.new(0,0.5,-0.015,1,0,0,0,1,0,0,0,1)
4570ThumbnailCamera_7.Name = "ThumbnailCamera"
4571ThumbnailCamera_7.Parent = BrownCharmerHair
4572
4573Eyepatch.AttachmentPoint = CFrame.new(0,0.34,0.25,1,0,0,0,1,0,0,0,1)
4574Eyepatch.AttachmentPos = Vector3.new(0,0.34,0.25)
4575Eyepatch.Name = "Eyepatch"
4576Eyepatch.Parent = IzzAtOMG
4577
4578Handle_10.Anchored = true
4579Handle_10.BottomSurface = Enum.SurfaceType.Smooth
4580Handle_10.CFrame = CFrame.new(-18.812,4.734,-5.313,-0.988,0,-0.155,0,1,0,0.155,0,-0.988)
4581Handle_10.CanCollide = false
4582Handle_10.Locked = true
4583Handle_10.Size = Vector3.new(1.6,0.8,1.6)
4584Handle_10.TopSurface = Enum.SurfaceType.Smooth
4585Handle_10.Name = "Handle"
4586Handle_10.Parent = Eyepatch
4587
4588Mesh_12.MeshType = Enum.MeshType.FileMesh
4589Mesh_12.MeshId = "rbxassetid://790784494"
4590Mesh_12.TextureId = "rbxassetid://790784961"
4591Mesh_12.Scale = Vector3.new(1.35,1.35,1.35)
4592Mesh_12.Parent = Handle_10
4593
4594FaceFrontAttachment_3.CFrame = CFrame.new(-0.02,-0.25,-0.55,1,0,0,0,1,0,0,0,1)
4595FaceFrontAttachment_3.Position = Vector3.new(-0.02,-0.25,-0.55)
4596FaceFrontAttachment_3.Name = "FaceFrontAttachment"
4597FaceFrontAttachment_3.Parent = Handle_10
4598
4599OriginalSize_22.Value = Vector3.new(1.6,0.8,1.6)
4600OriginalSize_22.Name = "OriginalSize"
4601OriginalSize_22.Parent = Handle_10
4602
4603AccessoryWeld_7.C0 = CFrame.new(-0.02,-0.25,-0.55,1,0,0,0,1,0,0,0,1)
4604AccessoryWeld_7.C1 = CFrame.new(0,0,-0.6,1,0,0,0,1,0,0,0,1)
4605AccessoryWeld_7.Part0 = Handle_10
4606AccessoryWeld_7.Part1 = Head_2
4607AccessoryWeld_7.Name = "AccessoryWeld"
4608AccessoryWeld_7.Parent = Handle_10
4609
4610ThumbnailCamera_8.CFrame = CFrame.new(-2.363,1.111,1.409,0.543,0.272,-0.794,0,0.946,0.324,0.84,-0.176,0.514)
4611ThumbnailCamera_8.Focus = CFrame.new(-0.774,0.463,0.382,1,0,0,0,1,0,0,0,1)
4612ThumbnailCamera_8.Name = "ThumbnailCamera"
4613ThumbnailCamera_8.Parent = Eyepatch
4614
4615BodyColors_2.HeadColor = BrickColor.new("Pastel brown")
4616BodyColors_2.HeadColor3 = Color3.new(1,0.8,0.6)
4617BodyColors_2.LeftArmColor = BrickColor.new("Pastel brown")
4618BodyColors_2.LeftArmColor3 = Color3.new(1,0.8,0.6)
4619BodyColors_2.LeftLegColor = BrickColor.new("Pastel brown")
4620BodyColors_2.LeftLegColor3 = Color3.new(1,0.8,0.6)
4621BodyColors_2.RightArmColor = BrickColor.new("Pastel brown")
4622BodyColors_2.RightArmColor3 = Color3.new(1,0.8,0.6)
4623BodyColors_2.RightLegColor = BrickColor.new("Pastel brown")
4624BodyColors_2.RightLegColor3 = Color3.new(1,0.8,0.6)
4625BodyColors_2.TorsoColor = BrickColor.new("Pastel brown")
4626BodyColors_2.TorsoColor3 = Color3.new(1,0.8,0.6)
4627BodyColors_2.Parent = IzzAtOMG
4628
4629Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=2991745457"
4630Shirt.Name = "Shirt"
4631Shirt.Parent = IzzAtOMG
4632
4633Pants.PantsTemplate = "http://www.roblox.com/asset/?id=2991749111"
4634Pants.Name = "Pants"
4635Pants.Parent = IzzAtOMG
4636
4637Part_3.Shape = Enum.PartType.Cylinder
4638Part_3.Anchored = true
4639Part_3.BottomSurface = Enum.SurfaceType.Smooth
4640Part_3.CFrame = CFrame.new(-17.058,2,-2.363,0,1,0,-1,0,0,0,0,1)
4641Part_3.Color = Color3.new(0.416,0.224,0.035)
4642Part_3.Material = Enum.Material.Wood
4643Part_3.Size = Vector3.new(4,1,1)
4644Part_3.TopSurface = Enum.SurfaceType.Smooth
4645Part_3.Parent = Pwnga
4646
4647Part_4.Shape = Enum.PartType.Cylinder
4648Part_4.Anchored = true
4649Part_4.BottomSurface = Enum.SurfaceType.Smooth
4650Part_4.CFrame = CFrame.new(-17.058,2,11.716,0,1,0,-1,0,0,0,0,1)
4651Part_4.Color = Color3.new(0.416,0.224,0.035)
4652Part_4.Material = Enum.Material.Wood
4653Part_4.Size = Vector3.new(4,1,1)
4654Part_4.TopSurface = Enum.SurfaceType.Smooth
4655Part_4.Parent = Pwnga
4656
4657Part_5.Shape = Enum.PartType.Cylinder
4658Part_5.Anchored = true
4659Part_5.BottomSurface = Enum.SurfaceType.Smooth
4660Part_5.CFrame = CFrame.new(-17.058,2,11.716,0,1,0,-1,0,0,0,0,1)
4661Part_5.Color = Color3.new(0.416,0.224,0.035)
4662Part_5.Material = Enum.Material.Wood
4663Part_5.Size = Vector3.new(4,1,1)
4664Part_5.TopSurface = Enum.SurfaceType.Smooth
4665Part_5.Parent = Pwnga
4666
4667Part_6.Shape = Enum.PartType.Cylinder
4668Part_6.Anchored = true
4669Part_6.BottomSurface = Enum.SurfaceType.Smooth
4670Part_6.CFrame = CFrame.new(-4.095,2,11.716,0,1,0,-1,0,0,0,0,1)
4671Part_6.Color = Color3.new(0.416,0.224,0.035)
4672Part_6.Material = Enum.Material.Wood
4673Part_6.Size = Vector3.new(4,1,1)
4674Part_6.TopSurface = Enum.SurfaceType.Smooth
4675Part_6.Parent = Pwnga
4676
4677Part_7.Shape = Enum.PartType.Cylinder
4678Part_7.Anchored = true
4679Part_7.BottomSurface = Enum.SurfaceType.Smooth
4680Part_7.CFrame = CFrame.new(-4.808,2,-1.613,0,1,0,-1,0,0,0,0,1)
4681Part_7.Color = Color3.new(0.416,0.224,0.035)
4682Part_7.Material = Enum.Material.Wood
4683Part_7.Size = Vector3.new(4,1,1)
4684Part_7.TopSurface = Enum.SurfaceType.Smooth
4685Part_7.Parent = Pwnga
4686
4687Part_8.Anchored = true
4688Part_8.BottomSurface = Enum.SurfaceType.Smooth
4689Part_8.CFrame = CFrame.new(-10.565,4.225,3.675,1,0,0,0,1,0,0,0,1)
4690Part_8.Color = Color3.new(1,0,0)
4691Part_8.Material = Enum.Material.Wood
4692Part_8.Size = Vector3.new(13.75,0.51,13.55)
4693Part_8.TopSurface = Enum.SurfaceType.Smooth
4694Part_8.Parent = Pwnga
4695
4696Part_9.Anchored = true
4697Part_9.BottomSurface = Enum.SurfaceType.Smooth
4698Part_9.CFrame = CFrame.new(-10.565,7.01,-2.365,1,0,0,0,1,0,0,0,1)
4699Part_9.Color = Color3.new(1,0,0)
4700Part_9.Material = Enum.Material.Wood
4701Part_9.Size = Vector3.new(13.75,6.08,1.47)
4702Part_9.TopSurface = Enum.SurfaceType.Smooth
4703Part_9.Parent = Pwnga
4704
4705Part_10.Anchored = true
4706Part_10.BottomSurface = Enum.SurfaceType.Smooth
4707Part_10.CFrame = CFrame.new(-10.565,4.54,4.325,1,0,0,0,1,0,0,0,1)
4708Part_10.Color = Color3.new(1,1,0)
4709Part_10.Material = Enum.Material.Sand
4710Part_10.Size = Vector3.new(13.75,0.08,12.25)
4711Part_10.TopSurface = Enum.SurfaceType.Smooth
4712Part_10.Parent = Pwnga
4713
4714Part_11.Shape = Enum.PartType.Ball
4715Part_11.Anchored = true
4716Part_11.BottomSurface = Enum.SurfaceType.Smooth
4717Part_11.CFrame = CFrame.new(-12.259,6.081,3.824,0.964,0.266,0.002,-0.266,0.964,0,-0.002,0,1)
4718Part_11.Color = Color3.new(1,1,1)
4719Part_11.Material = Enum.Material.Sand
4720Part_11.Size = Vector3.new(0.54,0.54,0.54)
4721Part_11.TopSurface = Enum.SurfaceType.Smooth
4722Part_11.Parent = Pwnga
4723
4724Part_12.Shape = Enum.PartType.Ball
4725Part_12.Anchored = true
4726Part_12.BottomSurface = Enum.SurfaceType.Smooth
4727Part_12.CFrame = CFrame.new(-12.26,6.081,3.151,0.964,0.266,0.002,-0.266,0.964,0,-0.002,0,1)
4728Part_12.Color = Color3.new(1,1,1)
4729Part_12.Material = Enum.Material.Sand
4730Part_12.Size = Vector3.new(0.54,0.54,0.54)
4731Part_12.TopSurface = Enum.SurfaceType.Smooth
4732Part_12.Parent = Pwnga
4733
4734Wedge.Anchored = true
4735Wedge.BottomSurface = Enum.SurfaceType.Smooth
4736Wedge.CFrame = CFrame.new(-10.502,4.255,11.328,-1,0,0,0,1,0,0,0,-1)
4737Wedge.Color = Color3.new(1,0,0)
4738Wedge.Material = Enum.Material.Wood
4739Wedge.Size = Vector3.new(13.83,0.51,2)
4740Wedge.Parent = Pwnga
4741
4742
4743for i,v in ipairs(functions) do
4744 spawn(function()
4745 pcall(v)
4746 end)
4747end
4748for i,v in ipairs(mas:GetChildren()) do
4749 v.Parent = workspace
4750end
4751mas:Destroy()