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