Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- If you can't unstand people spamming g/c then i add the thing into your character now
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Attachment2 = Instance.new("Attachment")
- Attachment3 = Instance.new("Attachment")
- Attachment4 = Instance.new("Attachment")
- Attachment5 = Instance.new("Attachment")
- SpecialMesh6 = Instance.new("SpecialMesh")
- Weld7 = Instance.new("Weld")
- Decal8 = Instance.new("Decal")
- Part9 = Instance.new("Part")
- Motor6D10 = Instance.new("Motor6D")
- Part11 = Instance.new("Part")
- Attachment12 = Instance.new("Attachment")
- Attachment13 = Instance.new("Attachment")
- Attachment14 = Instance.new("Attachment")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Attachment17 = Instance.new("Attachment")
- Part18 = Instance.new("Part")
- Part19 = Instance.new("Part")
- Attachment20 = Instance.new("Attachment")
- Attachment21 = Instance.new("Attachment")
- Attachment22 = Instance.new("Attachment")
- Attachment23 = Instance.new("Attachment")
- Attachment24 = Instance.new("Attachment")
- Attachment25 = Instance.new("Attachment")
- Attachment26 = Instance.new("Attachment")
- Motor6D27 = Instance.new("Motor6D")
- Motor6D28 = Instance.new("Motor6D")
- Motor6D29 = Instance.new("Motor6D")
- Motor6D30 = Instance.new("Motor6D")
- Motor6D31 = Instance.new("Motor6D")
- Humanoid32 = Instance.new("Humanoid")
- WedgePart33 = Instance.new("WedgePart")
- WedgePart34 = Instance.new("WedgePart")
- Model35 = Instance.new("Model")
- Accessory36 = Instance.new("Accessory")
- Part37 = Instance.new("Part")
- SpecialMesh38 = Instance.new("SpecialMesh")
- Part39 = Instance.new("Part")
- Attachment40 = Instance.new("Attachment")
- Part41 = Instance.new("Part")
- Attachment42 = Instance.new("Attachment")
- ManualWeld43 = Instance.new("ManualWeld")
- Part44 = Instance.new("Part")
- Attachment45 = Instance.new("Attachment")
- WedgePart46 = Instance.new("WedgePart")
- WedgePart47 = Instance.new("WedgePart")
- WedgePart48 = Instance.new("WedgePart")
- WedgePart49 = Instance.new("WedgePart")
- WedgePart50 = Instance.new("WedgePart")
- WedgePart51 = Instance.new("WedgePart")
- WedgePart52 = Instance.new("WedgePart")
- WedgePart53 = Instance.new("WedgePart")
- Script54 = Instance.new("Script")
- StringValue55 = Instance.new("StringValue")
- Animation56 = Instance.new("Animation")
- NumberValue57 = Instance.new("NumberValue")
- Animation58 = Instance.new("Animation")
- NumberValue59 = Instance.new("NumberValue")
- StringValue60 = Instance.new("StringValue")
- Animation61 = Instance.new("Animation")
- StringValue62 = Instance.new("StringValue")
- Animation63 = Instance.new("Animation")
- StringValue64 = Instance.new("StringValue")
- Animation65 = Instance.new("Animation")
- StringValue66 = Instance.new("StringValue")
- Animation67 = Instance.new("Animation")
- StringValue68 = Instance.new("StringValue")
- Animation69 = Instance.new("Animation")
- StringValue70 = Instance.new("StringValue")
- Animation71 = Instance.new("Animation")
- StringValue72 = Instance.new("StringValue")
- Animation73 = Instance.new("Animation")
- Model0.Name = ""
- Model0.Parent = mas
- Model0.PrimaryPart = Part9
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Pastel light blue")
- Part1.Rotation = Vector3.new(-180, 0, -180)
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(3.40799999, 1.704, 1.704)
- Part1.CFrame = CFrame.new(-20.7302055, 7.6680212, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.686275, 0.866667, 1)
- Part1.Position = Vector3.new(-20.7302055, 7.6680212, 4.89356422)
- Part1.Orientation = Vector3.new(0, 180, 0)
- Part1.Color = Color3.new(0.686275, 0.866667, 1)
- Attachment2.Name = "HatAttachment"
- Attachment2.Parent = Part1
- Attachment2.CFrame = CFrame.new(0, 1.0223999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment2.Position = Vector3.new(0, 1.0223999, 0)
- Attachment3.Name = "HairAttachment"
- Attachment3.Parent = Part1
- Attachment3.CFrame = CFrame.new(0, 1.0223999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment3.Position = Vector3.new(0, 1.0223999, 0)
- Attachment4.Name = "FaceCenterAttachment"
- Attachment4.Parent = Part1
- Attachment5.Name = "FaceFrontAttachment"
- Attachment5.Parent = Part1
- Attachment5.CFrame = CFrame.new(0, 0, -1.0223999, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment5.Position = Vector3.new(0, 0, -1.0223999)
- SpecialMesh6.Parent = Part1
- SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
- Weld7.Name = "HeadWeld"
- Weld7.Parent = Part1
- Weld7.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld7.Part0 = Part1
- Weld7.Part1 = Part37
- Decal8.Parent = Part1
- Decal8.Texture = "http://www.roblox.com/asset/?id=431054853"
- Part9.Name = "HumanoidRootPart"
- Part9.Parent = Model0
- Part9.Transparency = 1
- Part9.Rotation = Vector3.new(-180, 0, -180)
- Part9.Anchored = true
- Part9.CanCollide = false
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.Size = Vector3.new(3.40799999, 3.40799999, 1.704)
- Part9.CFrame = CFrame.new(-20.7302055, 5.11202145, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Position = Vector3.new(-20.7302055, 5.11202145, 4.89356422)
- Part9.Orientation = Vector3.new(0, 180, 0)
- Motor6D10.Name = "RootJoint"
- Motor6D10.Parent = Part9
- Motor6D10.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D10.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- Motor6D10.Part0 = Part9
- Motor6D10.Part1 = Part19
- Motor6D10.MaxVelocity = 0.10000000149012
- Part11.Name = "Left Arm"
- Part11.Parent = Model0
- Part11.BrickColor = BrickColor.new("Pastel light blue")
- Part11.Rotation = Vector3.new(-180, 0, -180)
- Part11.CanCollide = false
- Part11.FormFactor = Enum.FormFactor.Symmetric
- Part11.Size = Vector3.new(1.704, 3.40799999, 1.704)
- Part11.CFrame = CFrame.new(-18.1742058, 5.11202145, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part11.Color = Color3.new(0.686275, 0.866667, 1)
- Part11.Position = Vector3.new(-18.1742058, 5.11202145, 4.89356422)
- Part11.Orientation = Vector3.new(0, 180, 0)
- Part11.Color = Color3.new(0.686275, 0.866667, 1)
- Attachment12.Name = "LeftShoulderAttachment"
- Attachment12.Parent = Part11
- Attachment12.CFrame = CFrame.new(0, 1.704, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment12.Position = Vector3.new(0, 1.704, 0)
- Attachment13.Parent = Part11
- Attachment13.Rotation = Vector3.new(-0, -0, -90)
- Attachment13.CFrame = CFrame.new(-0.27264002, -1.704, -0.357839972, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Attachment13.Position = Vector3.new(-0.27264002, -1.704, -0.357839972)
- Attachment13.Axis = Vector3.new(0, -1, 0)
- Attachment13.Orientation = Vector3.new(-0, -0, -90)
- Attachment14.Parent = Part11
- Attachment14.Rotation = Vector3.new(-0, -0, -90)
- Attachment14.CFrame = CFrame.new(-0.170399979, -1.704, 0.408959866, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Attachment14.Position = Vector3.new(-0.170399979, -1.704, 0.408959866)
- Attachment14.Axis = Vector3.new(0, -1, 0)
- Attachment14.Orientation = Vector3.new(-0, -0, -90)
- Part15.Name = "Left Leg"
- Part15.Parent = Model0
- Part15.BrickColor = BrickColor.new("Pastel light blue")
- Part15.Rotation = Vector3.new(-180, 0, -180)
- Part15.CanCollide = false
- Part15.FormFactor = Enum.FormFactor.Symmetric
- Part15.Size = Vector3.new(1.704, 3.40799999, 1.704)
- Part15.CFrame = CFrame.new(-19.8782063, 1.70402145, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.Color = Color3.new(0.686275, 0.866667, 1)
- Part15.Position = Vector3.new(-19.8782063, 1.70402145, 4.89356422)
- Part15.Orientation = Vector3.new(0, 180, 0)
- Part15.Color = Color3.new(0.686275, 0.866667, 1)
- Part16.Name = "Right Arm"
- Part16.Parent = Model0
- Part16.BrickColor = BrickColor.new("Pastel light blue")
- Part16.Rotation = Vector3.new(-180, 0, -180)
- Part16.CanCollide = false
- Part16.FormFactor = Enum.FormFactor.Symmetric
- Part16.Size = Vector3.new(1.704, 3.40799999, 1.704)
- Part16.CFrame = CFrame.new(-23.2862053, 5.11202145, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part16.Color = Color3.new(0.686275, 0.866667, 1)
- Part16.Position = Vector3.new(-23.2862053, 5.11202145, 4.89356422)
- Part16.Orientation = Vector3.new(0, 180, 0)
- Part16.Color = Color3.new(0.686275, 0.866667, 1)
- Attachment17.Name = "RightShoulderAttachment"
- Attachment17.Parent = Part16
- Attachment17.CFrame = CFrame.new(0, 1.704, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment17.Position = Vector3.new(0, 1.704, 0)
- Part18.Name = "Right Leg"
- Part18.Parent = Model0
- Part18.BrickColor = BrickColor.new("Pastel light blue")
- Part18.Rotation = Vector3.new(-180, 0, -180)
- Part18.CanCollide = false
- Part18.FormFactor = Enum.FormFactor.Symmetric
- Part18.Size = Vector3.new(1.704, 3.40799999, 1.704)
- Part18.CFrame = CFrame.new(-21.5822048, 1.70402145, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.Color = Color3.new(0.686275, 0.866667, 1)
- Part18.Position = Vector3.new(-21.5822048, 1.70402145, 4.89356422)
- Part18.Orientation = Vector3.new(0, 180, 0)
- Part18.Color = Color3.new(0.686275, 0.866667, 1)
- Part19.Name = "Torso"
- Part19.Parent = Model0
- Part19.BrickColor = BrickColor.new("Cyan")
- Part19.Rotation = Vector3.new(-180, 0, -180)
- Part19.FormFactor = Enum.FormFactor.Symmetric
- Part19.Size = Vector3.new(3.40799999, 3.40799999, 1.704)
- Part19.CFrame = CFrame.new(-20.7302055, 5.11202145, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part19.LeftSurface = Enum.SurfaceType.Weld
- Part19.RightSurface = Enum.SurfaceType.Weld
- Part19.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Part19.Position = Vector3.new(-20.7302055, 5.11202145, 4.89356422)
- Part19.Orientation = Vector3.new(0, 180, 0)
- Part19.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Attachment20.Name = "WaistFrontAttachment"
- Attachment20.Parent = Part19
- Attachment20.CFrame = CFrame.new(0, -1.704, -0.851999998, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment20.Position = Vector3.new(0, -1.704, -0.851999998)
- Attachment21.Name = "WaistCenterAttachment"
- Attachment21.Parent = Part19
- Attachment21.CFrame = CFrame.new(0, -1.704, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment21.Position = Vector3.new(0, -1.704, 0)
- Attachment22.Name = "WaistBackAttachment"
- Attachment22.Parent = Part19
- Attachment22.CFrame = CFrame.new(0, -1.704, 0.851999998, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment22.Position = Vector3.new(0, -1.704, 0.851999998)
- Attachment23.Name = "RightCollarAttachment"
- Attachment23.Parent = Part19
- Attachment23.CFrame = CFrame.new(1.704, 1.704, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment23.Position = Vector3.new(1.704, 1.704, 0)
- Attachment24.Name = "NeckAttachment"
- Attachment24.Parent = Part19
- Attachment24.CFrame = CFrame.new(0, 1.704, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment24.Position = Vector3.new(0, 1.704, 0)
- Attachment25.Name = "LeftCollarAttachment"
- Attachment25.Parent = Part19
- Attachment25.CFrame = CFrame.new(-1.704, 1.704, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment25.Position = Vector3.new(-1.704, 1.704, 0)
- Attachment26.Name = "BodyBackAttachment"
- Attachment26.Parent = Part19
- Attachment26.CFrame = CFrame.new(0, 0, 0.851999998, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment26.Position = Vector3.new(0, 0, 0.851999998)
- Motor6D27.Name = "Right Shoulder"
- Motor6D27.Parent = Part19
- Motor6D27.C0 = CFrame.new(1.704, 0.851999998, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D27.C1 = CFrame.new(-0.851999998, 0.851999998, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor6D27.Part0 = Part19
- Motor6D27.Part1 = Part16
- Motor6D27.MaxVelocity = 0.10000000149012
- Motor6D28.Name = "Right Hip"
- Motor6D28.Parent = Part19
- Motor6D28.C0 = CFrame.new(1.704, -1.704, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D28.C1 = CFrame.new(0.851999998, 1.704, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor6D28.Part0 = Part19
- Motor6D28.Part1 = Part18
- Motor6D28.MaxVelocity = 0.10000000149012
- Motor6D29.Name = "Neck"
- Motor6D29.Parent = Part19
- Motor6D29.C0 = CFrame.new(0, 1.704, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D29.C1 = CFrame.new(0, -0.851999998, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D29.Part0 = Part19
- Motor6D29.Part1 = Part1
- Motor6D29.MaxVelocity = 0.10000000149012
- Motor6D30.Name = "Left Shoulder"
- Motor6D30.Parent = Part19
- Motor6D30.C0 = CFrame.new(-1.704, 0.851999998, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D30.C1 = CFrame.new(0.851999998, 0.851999998, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D30.Part0 = Part19
- Motor6D30.Part1 = Part11
- Motor6D30.MaxVelocity = 0.10000000149012
- Motor6D31.Name = "Left Hip"
- Motor6D31.Parent = Part19
- Motor6D31.C0 = CFrame.new(-1.704, -1.704, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D31.C1 = CFrame.new(-0.851999998, 1.704, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D31.Part0 = Part19
- Motor6D31.Part1 = Part15
- Motor6D31.MaxVelocity = 0.10000000149012
- Humanoid32.Parent = Model0
- Humanoid32.RightLeg = Part18
- Humanoid32.LeftLeg = Part15
- Humanoid32.Torso = Part9
- WedgePart33.Parent = Model0
- WedgePart33.Material = Enum.Material.Ice
- WedgePart33.BrickColor = BrickColor.new("Cyan")
- WedgePart33.Transparency = 0.5
- WedgePart33.Rotation = Vector3.new(0, -90, 0)
- WedgePart33.Size = Vector3.new(0.289681047, 1.704, 0.255599916)
- WedgePart33.CFrame = CFrame.new(-17.1773643, 6.06626129, 5.44735575, -4.44091412e-15, 2.9802397e-08, -1, 3.17639753e-22, 1, 2.9802397e-08, 1, 1.58819864e-22, 7.10546293e-15)
- WedgePart33.BackSurface = Enum.SurfaceType.Weld
- WedgePart33.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart33.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart33.Position = Vector3.new(-17.1773643, 6.06626129, 5.44735575)
- WedgePart33.Orientation = Vector3.new(0, -90, 0)
- WedgePart33.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart34.Parent = Model0
- WedgePart34.Material = Enum.Material.Ice
- WedgePart34.BrickColor = BrickColor.new("Cyan")
- WedgePart34.Transparency = 0.5
- WedgePart34.Rotation = Vector3.new(-46.5499992, 0, 180)
- WedgePart34.Size = Vector3.new(0.289681047, 0.323759854, 0.306719929)
- WedgePart34.CFrame = CFrame.new(-17.5522442, 6.90121841, 4.99727345, -0.99999994, -0, 0, 0, -0.687744856, 0.725952506, 0, 0.725952506, 0.687744856)
- WedgePart34.BottomSurface = Enum.SurfaceType.Weld
- WedgePart34.TopSurface = Enum.SurfaceType.Weld
- WedgePart34.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart34.Position = Vector3.new(-17.5522442, 6.90121841, 4.99727345)
- WedgePart34.Orientation = Vector3.new(-46.5499992, 0, 180)
- WedgePart34.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Model35.Name = "AnimSaves"
- Model35.Parent = Model0
- Accessory36.Parent = Model0
- Part37.Name = "Handle"
- Part37.Parent = Accessory36
- Part37.Rotation = Vector3.new(-180, 0, -180)
- Part37.CanCollide = false
- Part37.FormFactor = Enum.FormFactor.Custom
- Part37.Size = Vector3.new(2.59999943, 2.07999945, 2)
- Part37.CFrame = CFrame.new(-20.7302055, 8.1680212, 4.89356422, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.Position = Vector3.new(-20.7302055, 8.1680212, 4.89356422)
- Part37.Orientation = Vector3.new(0, 180, 0)
- SpecialMesh38.Parent = Part37
- SpecialMesh38.MeshId = "rbxassetid://88878197"
- SpecialMesh38.Offset = Vector3.new(0, 1.10000002, 0)
- SpecialMesh38.Scale = Vector3.new(2, 2, 2)
- SpecialMesh38.TextureId = "rbxassetid://120045146"
- SpecialMesh38.MeshType = Enum.MeshType.FileMesh
- SpecialMesh38.Scale = Vector3.new(2, 2, 2)
- Part39.Parent = Model0
- Part39.Material = Enum.Material.Ice
- Part39.BrickColor = BrickColor.new("Cyan")
- Part39.Transparency = 0.5
- Part39.Rotation = Vector3.new(-90, 0, -90)
- Part39.Size = Vector3.new(0.0852000043, 1.41432023, 1.7892009)
- Part39.CFrame = CFrame.new(-18.2508831, 5.8873415, 5.82223988, -5.3290972e-15, 1, 0, 3.17639753e-22, 0, 1, 1, -5.32909678e-15, 3.17639728e-22)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.LeftSurface = Enum.SurfaceType.Weld
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Part39.Position = Vector3.new(-18.2508831, 5.8873415, 5.82223988)
- Part39.Orientation = Vector3.new(-90, -90, 0)
- Part39.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Attachment40.Parent = Part39
- Attachment40.Rotation = Vector3.new(-180, 0, -180)
- Attachment40.CFrame = CFrame.new(-0.0425999984, -0.0228116158, 0.261833906, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Attachment40.Position = Vector3.new(-0.0425999984, -0.0228116158, 0.261833906)
- Attachment40.Axis = Vector3.new(-1, 0, 0)
- Attachment40.Orientation = Vector3.new(-0, 180, 0)
- Part41.Parent = Model0
- Part41.Material = Enum.Material.Ice
- Part41.BrickColor = BrickColor.new("Cyan")
- Part41.Transparency = 0.5
- Part41.Size = Vector3.new(0.0852000043, 1.17576003, 1.7892009)
- Part41.CFrame = CFrame.new(-17.2625637, 4.45598173, 4.85095596, 1, -2.82122187e-37, -6.21728028e-15, -2.82122187e-37, 1, 3.70579716e-22, -6.21727943e-15, 3.70579691e-22, 1)
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.LeftSurface = Enum.SurfaceType.Weld
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Part41.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Part41.Position = Vector3.new(-17.2625637, 4.45598173, 4.85095596)
- Part41.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Attachment42.Parent = Part41
- Attachment42.Rotation = Vector3.new(-180, 0, -180)
- Attachment42.CFrame = CFrame.new(-0.0425999984, -0.0189638659, 0.261833906, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Attachment42.Position = Vector3.new(-0.0425999984, -0.0189638659, 0.261833906)
- Attachment42.Axis = Vector3.new(-1, 0, 0)
- Attachment42.Orientation = Vector3.new(-0, 180, 0)
- ManualWeld43.Name = "Part-to-Wedge Strong Joint"
- ManualWeld43.Parent = Part41
- ManualWeld43.C0 = CFrame.new(-0.0426000021, 0.587880015, 0.894600451, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- ManualWeld43.C1 = CFrame.new(0.707160354, -0.852001607, 0.30671972, -8.88182867e-16, 1, 0, -2.9802397e-08, 0, 1, 1, 1.77636573e-15, 2.9802397e-08)
- ManualWeld43.Part0 = Part41
- ManualWeld43.Part1 = WedgePart51
- Part44.Name = "Ruin"
- Part44.Parent = Model0
- Part44.Material = Enum.Material.Ice
- Part44.BrickColor = BrickColor.new("Cyan")
- Part44.Transparency = 0.40000000596046
- Part44.Size = Vector3.new(1.73808074, 3.28871751, 1.84031987)
- Part44.CFrame = CFrame.new(-18.1742039, 5.25685978, 4.85948324, 1, 0, -5.3290972e-15, 0, 1, 3.17639753e-22, -5.32909678e-15, 3.17639728e-22, 1)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Part44.Position = Vector3.new(-18.1742039, 5.25685978, 4.85948324)
- Part44.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Attachment45.Parent = Part44
- Attachment45.CFrame = CFrame.new(0.86904043, -1.17576015, 0.323759913, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment45.Position = Vector3.new(0.86904043, -1.17576015, 0.323759913)
- WedgePart46.Parent = Model0
- WedgePart46.Material = Enum.Material.Ice
- WedgePart46.BrickColor = BrickColor.new("Cyan")
- WedgePart46.Transparency = 0.5
- WedgePart46.Rotation = Vector3.new(-46.5499992, 0, 180)
- WedgePart46.Size = Vector3.new(0.289681047, 0.323759854, 0.306719929)
- WedgePart46.CFrame = CFrame.new(-17.5522442, 6.90121841, 4.12823296, -0.99999994, -0, 0, 0, -0.687744856, 0.725952506, 0, 0.725952506, 0.687744856)
- WedgePart46.BottomSurface = Enum.SurfaceType.Weld
- WedgePart46.TopSurface = Enum.SurfaceType.Weld
- WedgePart46.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart46.Position = Vector3.new(-17.5522442, 6.90121841, 4.12823296)
- WedgePart46.Orientation = Vector3.new(-46.5499992, 0, 180)
- WedgePart46.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart47.Parent = Model0
- WedgePart47.Material = Enum.Material.Ice
- WedgePart47.BrickColor = BrickColor.new("Cyan")
- WedgePart47.Transparency = 0.5
- WedgePart47.Rotation = Vector3.new(0, 0, 180)
- WedgePart47.Size = Vector3.new(0.289681047, 2.02775979, 0.306719929)
- WedgePart47.CFrame = CFrame.new(-17.6544857, 2.39413834, 5.35366297, -1, -2.5340236e-19, -1.33227424e-14, 3.52652718e-36, -1, 1.90202845e-05, 1.33227424e-14, 1.90202845e-05, 1)
- WedgePart47.BottomSurface = Enum.SurfaceType.Weld
- WedgePart47.TopSurface = Enum.SurfaceType.Weld
- WedgePart47.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart47.Position = Vector3.new(-17.6544857, 2.39413834, 5.35366297)
- WedgePart47.Orientation = Vector3.new(0, 0, 180)
- WedgePart47.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart48.Parent = Model0
- WedgePart48.Material = Enum.Material.Ice
- WedgePart48.BrickColor = BrickColor.new("Cyan")
- WedgePart48.Transparency = 0.5
- WedgePart48.Rotation = Vector3.new(-46.5499992, 0, 180)
- WedgePart48.Size = Vector3.new(0.289681047, 0.323759854, 0.306719929)
- WedgePart48.CFrame = CFrame.new(-18.6598434, 6.90121841, 4.74167252, -0.99999994, -0, 0, 0, -0.687744856, 0.725952506, 0, 0.725952506, 0.687744856)
- WedgePart48.BottomSurface = Enum.SurfaceType.Weld
- WedgePart48.TopSurface = Enum.SurfaceType.Weld
- WedgePart48.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart48.Position = Vector3.new(-18.6598434, 6.90121841, 4.74167252)
- WedgePart48.Orientation = Vector3.new(-46.5499992, 0, 180)
- WedgePart48.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart49.Parent = Model0
- WedgePart49.Material = Enum.Material.Ice
- WedgePart49.BrickColor = BrickColor.new("Cyan")
- WedgePart49.Transparency = 0.5
- WedgePart49.Rotation = Vector3.new(-0.109999999, 0, 180)
- WedgePart49.Size = Vector3.new(0.289681047, 1.22687972, 0.306719929)
- WedgePart49.CFrame = CFrame.new(-18.4894753, 2.79451036, 5.11464548, -1, -2.45937919e-17, -1.33227195e-14, 3.52652718e-36, -0.999998331, 0.00184600067, 1.33227424e-14, 0.00184600067, 0.999998331)
- WedgePart49.BottomSurface = Enum.SurfaceType.Weld
- WedgePart49.TopSurface = Enum.SurfaceType.Weld
- WedgePart49.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart49.Position = Vector3.new(-18.4894753, 2.79451036, 5.11464548)
- WedgePart49.Orientation = Vector3.new(-0.109999999, 0, 180)
- WedgePart49.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart50.Parent = Model0
- WedgePart50.Material = Enum.Material.Ice
- WedgePart50.BrickColor = BrickColor.new("Cyan")
- WedgePart50.Transparency = 0.5
- WedgePart50.Rotation = Vector3.new(0, 0, 180)
- WedgePart50.Size = Vector3.new(0.289681047, 0.647519708, 0.306719929)
- WedgePart50.CFrame = CFrame.new(-18.3020058, 3.08425856, 5.55813026, -1, -2.5340236e-19, -1.33227424e-14, 3.52652718e-36, -1, 1.90202845e-05, 1.33227424e-14, 1.90202845e-05, 1)
- WedgePart50.BottomSurface = Enum.SurfaceType.Weld
- WedgePart50.TopSurface = Enum.SurfaceType.Weld
- WedgePart50.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart50.Position = Vector3.new(-18.3020058, 3.08425856, 5.55813026)
- WedgePart50.Orientation = Vector3.new(0, 0, 180)
- WedgePart50.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart51.Parent = Model0
- WedgePart51.Material = Enum.Material.Ice
- WedgePart51.BrickColor = BrickColor.new("Cyan")
- WedgePart51.Transparency = 0.5
- WedgePart51.Rotation = Vector3.new(0, -90, 0)
- WedgePart51.Size = Vector3.new(0.289681047, 1.704, 0.613440275)
- WedgePart51.CFrame = CFrame.new(-16.9984436, 5.89586353, 5.03839588, -4.44091412e-15, 2.9802397e-08, -1, 3.17639753e-22, 1, 2.9802397e-08, 1, 1.58819864e-22, 7.10546293e-15)
- WedgePart51.BackSurface = Enum.SurfaceType.Weld
- WedgePart51.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart51.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart51.Position = Vector3.new(-16.9984436, 5.89586353, 5.03839588)
- WedgePart51.Orientation = Vector3.new(0, -90, 0)
- WedgePart51.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart52.Parent = Model0
- WedgePart52.Material = Enum.Material.Ice
- WedgePart52.BrickColor = BrickColor.new("Cyan")
- WedgePart52.Transparency = 0.5
- WedgePart52.Rotation = Vector3.new(0, 0, 180)
- WedgePart52.Size = Vector3.new(0.289681047, 1.49951947, 0.306719929)
- WedgePart52.CFrame = CFrame.new(-18.1827259, 2.65825844, 4.63797855, -1, -2.5340236e-19, -1.33227424e-14, 3.52652718e-36, -1, 1.90202845e-05, 1.33227424e-14, 1.90202845e-05, 1)
- WedgePart52.BottomSurface = Enum.SurfaceType.Weld
- WedgePart52.TopSurface = Enum.SurfaceType.Weld
- WedgePart52.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart52.Position = Vector3.new(-18.1827259, 2.65825844, 4.63797855)
- WedgePart52.Orientation = Vector3.new(0, 0, 180)
- WedgePart52.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart53.Parent = Model0
- WedgePart53.Material = Enum.Material.Ice
- WedgePart53.BrickColor = BrickColor.new("Cyan")
- WedgePart53.Transparency = 0.5
- WedgePart53.Rotation = Vector3.new(0, -90, 0)
- WedgePart53.Size = Vector3.new(0.289681047, 1.704, 0.903119862)
- WedgePart53.CFrame = CFrame.new(-16.8536034, 6.03219891, 4.61239576, -3.55273147e-15, 2.9802397e-08, -1, 2.6469979e-22, 1, 2.9802397e-08, 1, 1.32349883e-22, 6.21727985e-15)
- WedgePart53.BackSurface = Enum.SurfaceType.Weld
- WedgePart53.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart53.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- WedgePart53.Position = Vector3.new(-16.8536034, 6.03219891, 4.61239576)
- WedgePart53.Orientation = Vector3.new(0, -90, 0)
- WedgePart53.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- Script54.Name = "Animate"
- Script54.Parent = Model0
- table.insert(cors,sandbox(Script54,function()
- local Figure = script.Parent
- local Torso = Figure:WaitForChild("Torso")
- local RightShoulder = Torso:WaitForChild("Right Shoulder")
- local LeftShoulder = Torso:WaitForChild("Left Shoulder")
- local RightHip = Torso:WaitForChild("Right Hip")
- local LeftHip = Torso:WaitForChild("Left Hip")
- local Neck = Torso:WaitForChild("Neck")
- local Humanoid = Figure:WaitForChild("Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimInstance = nil
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 1.0
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
- },
- run = {
- { id = "run.xml", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
- },
- dance1 = {
- { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
- },
- }
- local dances = {"dance1", "dance2", "dance3"}
- -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
- local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- function configureAnimationSet(name, fileList)
- if (animTable[name] ~= nil) then
- for _, connection in pairs(animTable[name].connections) do
- connection:disconnect()
- end
- end
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- animTable[name].connections = {}
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
- table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- if (childPart:IsA("Animation")) then
- table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
- animTable[name][idx] = {}
- animTable[name][idx].anim = childPart
- local weightObject = childPart:FindFirstChild("Weight")
- if (weightObject == nil) then
- animTable[name][idx].weight = 1
- else
- animTable[name][idx].weight = weightObject.Value
- end
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
- -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
- idx = idx + 1
- end
- end
- end
- -- fallback to defaults
- if (animTable[name].count <= 0) then
- for idx, anim in pairs(fileList) do
- animTable[name][idx] = {}
- animTable[name][idx].anim = Instance.new("Animation")
- animTable[name][idx].anim.Name = name
- animTable[name][idx].anim.AnimationId = anim.id
- animTable[name][idx].weight = anim.weight
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
- -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
- end
- end
- end
- -- Setup animation objects
- function scriptChildModified(child)
- local fileList = animNames[child.Name]
- if (fileList ~= nil) then
- configureAnimationSet(child.Name, fileList)
- end
- end
- script.ChildAdded:connect(scriptChildModified)
- script.ChildRemoved:connect(scriptChildModified)
- for name, fileList in pairs(animNames) do
- configureAnimationSet(name, fileList)
- end
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.3
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.3
- local jumpMaxLimbVelocity = 0.75
- -- functions
- function stopAllAnimations()
- local oldAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
- oldAnim = "idle"
- end
- currentAnim = ""
- currentAnimInstance = nil
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function setAnimationSpeed(speed)
- if speed ~= currentAnimSpeed then
- currentAnimSpeed = speed
- currentAnimTrack:AdjustSpeed(currentAnimSpeed)
- end
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- local repeatAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
- repeatAnim = "idle"
- end
- local animSpeed = currentAnimSpeed
- playAnimation(repeatAnim, 0.0, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- switch animation
- if (anim ~= currentAnimInstance) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- currentAnimTrack.Priority = Enum.AnimationPriority.Core
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- currentAnimInstance = anim
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local toolAnimInstance = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- playToolAnimation(toolAnimName, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid, priority)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- if (toolAnimInstance ~= anim) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- if priority then
- toolAnimTrack.Priority = priority
- end
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- toolAnimInstance = anim
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- toolAnimInstance = nil
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed > 0.01 then
- playAnimation("walk", 0.1, Humanoid)
- if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
- setAnimationSpeed(speed / 14.5)
- end
- pose = "Running"
- else
- if emoteNames[currentAnim] == nil then
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / 12.0)
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- if (jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- end
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function onSwimming(speed)
- if speed > 0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- playAnimation("sit", 0.5, Humanoid)
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- -- print("Wha " .. pose)
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- local desiredAngle = amplitude * math.sin(time * frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool and tool:FindFirstChild("Handle") then
- local animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- stopToolAnimations()
- toolAnim = "None"
- toolAnimInstance = nil
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- main program
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent ~= nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue55.Name = "idle"
- StringValue55.Parent = Script54
- Animation56.Name = "Animation1"
- Animation56.Parent = StringValue55
- Animation56.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue57.Name = "Weight"
- NumberValue57.Parent = Animation56
- NumberValue57.Value = 9
- Animation58.Name = "Animation2"
- Animation58.Parent = StringValue55
- Animation58.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue59.Name = "Weight"
- NumberValue59.Parent = Animation58
- NumberValue59.Value = 1
- StringValue60.Name = "walk"
- StringValue60.Parent = Script54
- Animation61.Name = "WalkAnim"
- Animation61.Parent = StringValue60
- Animation61.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue62.Name = "run"
- StringValue62.Parent = Script54
- Animation63.Name = "RunAnim"
- Animation63.Parent = StringValue62
- Animation63.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue64.Name = "jump"
- StringValue64.Parent = Script54
- Animation65.Name = "JumpAnim"
- Animation65.Parent = StringValue64
- Animation65.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue66.Name = "climb"
- StringValue66.Parent = Script54
- Animation67.Name = "ClimbAnim"
- Animation67.Parent = StringValue66
- Animation67.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue68.Name = "toolnone"
- StringValue68.Parent = Script54
- Animation69.Name = "ToolNoneAnim"
- Animation69.Parent = StringValue68
- Animation69.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue70.Name = "fall"
- StringValue70.Parent = Script54
- Animation71.Name = "FallAnim"
- Animation71.Parent = StringValue70
- Animation71.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue72.Name = "sit"
- StringValue72.Parent = Script54
- Animation73.Name = "SitAnim"
- Animation73.Parent = StringValue72
- Animation73.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement