Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --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")
- Model1 = Instance.new("Model")
- Model2 = Instance.new("Model")
- MeshPart3 = Instance.new("MeshPart")
- Model4 = Instance.new("Model")
- MeshPart5 = Instance.new("MeshPart")
- Model6 = Instance.new("Model")
- MeshPart7 = Instance.new("MeshPart")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Model12 = Instance.new("Model")
- MeshPart13 = Instance.new("MeshPart")
- Model14 = Instance.new("Model")
- MeshPart15 = Instance.new("MeshPart")
- Model16 = Instance.new("Model")
- MeshPart17 = Instance.new("MeshPart")
- Model18 = Instance.new("Model")
- MeshPart19 = Instance.new("MeshPart")
- Model20 = Instance.new("Model")
- MeshPart21 = Instance.new("MeshPart")
- Model22 = Instance.new("Model")
- MeshPart23 = Instance.new("MeshPart")
- Model24 = Instance.new("Model")
- MeshPart25 = Instance.new("MeshPart")
- Model26 = Instance.new("Model")
- MeshPart27 = Instance.new("MeshPart")
- Model28 = Instance.new("Model")
- MeshPart29 = Instance.new("MeshPart")
- Model30 = Instance.new("Model")
- MeshPart31 = Instance.new("MeshPart")
- Model32 = Instance.new("Model")
- MeshPart33 = Instance.new("MeshPart")
- Model34 = Instance.new("Model")
- Part35 = Instance.new("Part")
- SpecialMesh36 = Instance.new("SpecialMesh")
- Part37 = Instance.new("Part")
- Script38 = Instance.new("Script")
- Script39 = Instance.new("Script")
- Script40 = Instance.new("Script")
- Script41 = Instance.new("Script")
- Script42 = Instance.new("Script")
- Script43 = Instance.new("Script")
- Script44 = Instance.new("Script")
- Script45 = Instance.new("Script")
- Script46 = Instance.new("Script")
- Script47 = Instance.new("Script")
- Script48 = Instance.new("Script")
- Script49 = Instance.new("Script")
- Script50 = Instance.new("Script")
- Script51 = Instance.new("Script")
- Script52 = Instance.new("Script")
- Script53 = Instance.new("Script")
- Script54 = Instance.new("Script")
- Script55 = Instance.new("Script")
- Script56 = Instance.new("Script")
- Script57 = Instance.new("Script")
- LocalScript58 = Instance.new("LocalScript")
- StringValue59 = Instance.new("StringValue")
- Animation60 = Instance.new("Animation")
- StringValue61 = Instance.new("StringValue")
- Animation62 = Instance.new("Animation")
- StringValue63 = Instance.new("StringValue")
- Animation64 = Instance.new("Animation")
- NumberValue65 = Instance.new("NumberValue")
- Animation66 = Instance.new("Animation")
- NumberValue67 = Instance.new("NumberValue")
- Animation68 = Instance.new("Animation")
- NumberValue69 = Instance.new("NumberValue")
- StringValue70 = Instance.new("StringValue")
- Animation71 = Instance.new("Animation")
- StringValue72 = Instance.new("StringValue")
- Animation73 = Instance.new("Animation")
- StringValue74 = Instance.new("StringValue")
- Animation75 = Instance.new("Animation")
- StringValue76 = Instance.new("StringValue")
- Animation77 = Instance.new("Animation")
- StringValue78 = Instance.new("StringValue")
- Animation79 = Instance.new("Animation")
- Model0.Name = "Stewf"
- Model0.Parent = mas
- Model1.Name = "Your one and only r15 morph"
- Model1.Parent = Model0
- Model2.Name = "LeftLeg3"
- Model2.Parent = Model1
- Model2.PrimaryPart = MeshPart3
- MeshPart3.Name = "Middle"
- MeshPart3.Parent = Model2
- MeshPart3.CFrame = CFrame.new(-60.8763847, 0.150030002, 28.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart3.Orientation = Vector3.new(0, -90, 0)
- MeshPart3.Position = Vector3.new(-60.8763847, 0.150030002, 28.7452698)
- MeshPart3.Rotation = Vector3.new(0, -90, 0)
- MeshPart3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart3.Transparency = 1
- MeshPart3.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart3.Size = Vector3.new(1, 0.300000191, 1)
- MeshPart3.Anchored = true
- MeshPart3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart3.BrickColor = BrickColor.new("Institutional white")
- MeshPart3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart3.Material = Enum.Material.SmoothPlastic
- MeshPart3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart3.brickColor = BrickColor.new("Institutional white")
- Model4.Name = "LeftArm3"
- Model4.Parent = Model1
- Model4.PrimaryPart = MeshPart5
- MeshPart5.Name = "Middle"
- MeshPart5.Parent = Model4
- MeshPart5.CFrame = CFrame.new(-60.8763847, 2.15002489, 27.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart5.Orientation = Vector3.new(0, -90, 0)
- MeshPart5.Position = Vector3.new(-60.8763847, 2.15002489, 27.7452698)
- MeshPart5.Rotation = Vector3.new(0, -90, 0)
- MeshPart5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart5.Transparency = 1
- MeshPart5.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart5.Size = Vector3.new(0.999999762, 0.299999982, 0.999999881)
- MeshPart5.Anchored = true
- MeshPart5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart5.BrickColor = BrickColor.new("Institutional white")
- MeshPart5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart5.Material = Enum.Material.SmoothPlastic
- MeshPart5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart5.brickColor = BrickColor.new("Institutional white")
- Model6.Name = "Chest1"
- Model6.Parent = Model1
- Model6.PrimaryPart = MeshPart7
- MeshPart7.Name = "Middle"
- MeshPart7.Parent = Model6
- MeshPart7.CFrame = CFrame.new(-60.8763809, 3.20002294, 29.2452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart7.Orientation = Vector3.new(0, -90, 0)
- MeshPart7.Position = Vector3.new(-60.8763809, 3.20002294, 29.2452698)
- MeshPart7.Rotation = Vector3.new(0, -90, 0)
- MeshPart7.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart7.Transparency = 1
- MeshPart7.Size = Vector3.new(2, 1.60000014, 1.00000036)
- MeshPart7.Anchored = true
- MeshPart7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart7.BrickColor = BrickColor.new("Institutional white")
- MeshPart7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart7.Material = Enum.Material.SmoothPlastic
- MeshPart7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart7.brickColor = BrickColor.new("Institutional white")
- Part8.Parent = Model6
- Part8.CFrame = CFrame.new(-59.2442131, 2.01070118, 29.2899857, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(-59.2442131, 2.01070118, 29.2899857)
- Part8.Color = Color3.new(1, 0.8, 0.6)
- Part8.Size = Vector3.new(1.47229397, 0.420655429, 0.420655429)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Pastel brown")
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Pastel brown")
- Part8.Shape = Enum.PartType.Cylinder
- Part9.Parent = Model6
- Part9.CFrame = CFrame.new(-60.0415649, 2.01070261, 28.9744949, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1)
- Part9.Orientation = Vector3.new(0, 0, -90)
- Part9.Position = Vector3.new(-60.0415649, 2.01070261, 28.9744949)
- Part9.Rotation = Vector3.new(0, 0, -90)
- Part9.Color = Color3.new(1, 0.8, 0.6)
- Part9.Size = Vector3.new(0.841310859, 0.841310859, 0.841310859)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Pastel brown")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Pastel brown")
- Part9.Shape = Enum.PartType.Ball
- Part10.Parent = Model6
- Part10.CFrame = CFrame.new(-58.5080643, 2.01070046, 29.2899857, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1)
- Part10.Orientation = Vector3.new(0, 0, -90)
- Part10.Position = Vector3.new(-58.5080643, 2.01070046, 29.2899857)
- Part10.Rotation = Vector3.new(0, 0, -90)
- Part10.Color = Color3.new(1, 0.580392, 0.580392)
- Part10.Size = Vector3.new(0.420655429, 0.420655429, 0.420655429)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Salmon")
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Salmon")
- Part10.Shape = Enum.PartType.Ball
- Part11.Parent = Model6
- Part11.CFrame = CFrame.new(-60.0415649, 2.01070261, 29.6054764, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1)
- Part11.Orientation = Vector3.new(0, 0, -90)
- Part11.Position = Vector3.new(-60.0415649, 2.01070261, 29.6054764)
- Part11.Rotation = Vector3.new(0, 0, -90)
- Part11.Color = Color3.new(1, 0.8, 0.6)
- Part11.Size = Vector3.new(0.841310859, 0.841310859, 0.841310859)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Pastel brown")
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Pastel brown")
- Part11.Shape = Enum.PartType.Ball
- Model12.Name = "RightLeg1"
- Model12.Parent = Model1
- Model12.PrimaryPart = MeshPart13
- MeshPart13.Name = "Middle"
- MeshPart13.Parent = Model12
- MeshPart13.CFrame = CFrame.new(-60.8763847, 1.50002599, 29.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart13.Orientation = Vector3.new(0, -90, 0)
- MeshPart13.Position = Vector3.new(-60.8763847, 1.50002599, 29.7452698)
- MeshPart13.Rotation = Vector3.new(0, -90, 0)
- MeshPart13.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart13.Transparency = 1
- MeshPart13.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart13.Size = Vector3.new(1.00000048, 1.49999976, 0.999999881)
- MeshPart13.Anchored = true
- MeshPart13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart13.BrickColor = BrickColor.new("Institutional white")
- MeshPart13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart13.Material = Enum.Material.SmoothPlastic
- MeshPart13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart13.brickColor = BrickColor.new("Institutional white")
- Model14.Name = "RightArm1"
- Model14.Parent = Model1
- Model14.PrimaryPart = MeshPart15
- MeshPart15.Name = "Middle"
- MeshPart15.Parent = Model14
- MeshPart15.CFrame = CFrame.new(-60.8763809, 3.30002904, 30.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart15.Orientation = Vector3.new(0, -90, 0)
- MeshPart15.Position = Vector3.new(-60.8763809, 3.30002904, 30.7452698)
- MeshPart15.Rotation = Vector3.new(0, -90, 0)
- MeshPart15.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart15.Transparency = 1
- MeshPart15.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart15.Size = Vector3.new(0.999999642, 1.40000033, 0.99999994)
- MeshPart15.Anchored = true
- MeshPart15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart15.BrickColor = BrickColor.new("Institutional white")
- MeshPart15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart15.Material = Enum.Material.SmoothPlastic
- MeshPart15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart15.brickColor = BrickColor.new("Institutional white")
- Model16.Name = "RightLeg2"
- Model16.Parent = Model1
- Model16.PrimaryPart = MeshPart17
- MeshPart17.Name = "Middle"
- MeshPart17.Parent = Model16
- MeshPart17.CFrame = CFrame.new(-60.8763847, 0.950026989, 29.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart17.Orientation = Vector3.new(0, -90, 0)
- MeshPart17.Position = Vector3.new(-60.8763847, 0.950026989, 29.7452698)
- MeshPart17.Rotation = Vector3.new(0, -90, 0)
- MeshPart17.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart17.Transparency = 1
- MeshPart17.Size = Vector3.new(0.99999994, 1.50000036, 1.00000012)
- MeshPart17.Anchored = true
- MeshPart17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart17.BrickColor = BrickColor.new("Institutional white")
- MeshPart17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart17.Material = Enum.Material.SmoothPlastic
- MeshPart17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart17.brickColor = BrickColor.new("Institutional white")
- Model18.Name = "RightArm2"
- Model18.Parent = Model1
- Model18.PrimaryPart = MeshPart19
- MeshPart19.Name = "Middle"
- MeshPart19.Parent = Model18
- MeshPart19.CFrame = CFrame.new(-60.8763809, 2.85002089, 30.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart19.Orientation = Vector3.new(0, -90, 0)
- MeshPart19.Position = Vector3.new(-60.8763809, 2.85002089, 30.7452698)
- MeshPart19.Rotation = Vector3.new(0, -90, 0)
- MeshPart19.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart19.Transparency = 1
- MeshPart19.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart19.Size = Vector3.new(0.999999762, 1.20000029, 1)
- MeshPart19.Anchored = true
- MeshPart19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart19.BrickColor = BrickColor.new("Institutional white")
- MeshPart19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart19.Material = Enum.Material.SmoothPlastic
- MeshPart19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart19.brickColor = BrickColor.new("Institutional white")
- Model20.Name = "RightArm3"
- Model20.Parent = Model1
- Model20.PrimaryPart = MeshPart21
- MeshPart21.Name = "Middle"
- MeshPart21.Parent = Model20
- MeshPart21.CFrame = CFrame.new(-60.8763809, 2.15002489, 30.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart21.Orientation = Vector3.new(0, -90, 0)
- MeshPart21.Position = Vector3.new(-60.8763809, 2.15002489, 30.7452698)
- MeshPart21.Rotation = Vector3.new(0, -90, 0)
- MeshPart21.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart21.Transparency = 1
- MeshPart21.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart21.Size = Vector3.new(0.999999881, 0.299999982, 0.999999881)
- MeshPart21.Anchored = true
- MeshPart21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart21.BrickColor = BrickColor.new("Institutional white")
- MeshPart21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart21.Material = Enum.Material.SmoothPlastic
- MeshPart21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart21.brickColor = BrickColor.new("Institutional white")
- Model22.Name = "RightLeg3"
- Model22.Parent = Model1
- Model22.PrimaryPart = MeshPart23
- MeshPart23.Name = "Middle"
- MeshPart23.Parent = Model22
- MeshPart23.CFrame = CFrame.new(-60.8763847, 0.150030002, 29.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart23.Orientation = Vector3.new(0, -90, 0)
- MeshPart23.Position = Vector3.new(-60.8763847, 0.150030002, 29.7452698)
- MeshPart23.Rotation = Vector3.new(0, -90, 0)
- MeshPart23.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart23.Transparency = 1
- MeshPart23.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart23.Size = Vector3.new(0.99999994, 0.300000191, 1)
- MeshPart23.Anchored = true
- MeshPart23.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart23.BrickColor = BrickColor.new("Institutional white")
- MeshPart23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart23.Material = Enum.Material.SmoothPlastic
- MeshPart23.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart23.brickColor = BrickColor.new("Institutional white")
- Model24.Name = "Chest2"
- Model24.Parent = Model1
- Model24.PrimaryPart = MeshPart25
- MeshPart25.Name = "Middle"
- MeshPart25.Parent = Model24
- MeshPart25.CFrame = CFrame.new(-60.8763809, 2.25002503, 29.2452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart25.Orientation = Vector3.new(0, -90, 0)
- MeshPart25.Position = Vector3.new(-60.8763809, 2.25002503, 29.2452698)
- MeshPart25.Rotation = Vector3.new(0, -90, 0)
- MeshPart25.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart25.Transparency = 1
- MeshPart25.Size = Vector3.new(1.99999976, 0.5, 1.00000012)
- MeshPart25.Anchored = true
- MeshPart25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart25.BrickColor = BrickColor.new("Institutional white")
- MeshPart25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart25.Material = Enum.Material.SmoothPlastic
- MeshPart25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart25.brickColor = BrickColor.new("Institutional white")
- Model26.Name = "LeftLeg1"
- Model26.Parent = Model1
- Model26.PrimaryPart = MeshPart27
- MeshPart27.Name = "Middle"
- MeshPart27.Parent = Model26
- MeshPart27.CFrame = CFrame.new(-60.8763847, 1.50002599, 28.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart27.Orientation = Vector3.new(0, -90, 0)
- MeshPart27.Position = Vector3.new(-60.8763847, 1.50002599, 28.7452698)
- MeshPart27.Rotation = Vector3.new(0, -90, 0)
- MeshPart27.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart27.Transparency = 1
- MeshPart27.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart27.Size = Vector3.new(1.00000036, 1.49999976, 0.999999881)
- MeshPart27.Anchored = true
- MeshPart27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart27.BrickColor = BrickColor.new("Institutional white")
- MeshPart27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart27.Material = Enum.Material.SmoothPlastic
- MeshPart27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart27.brickColor = BrickColor.new("Institutional white")
- Model28.Name = "LeftArm1"
- Model28.Parent = Model1
- Model28.PrimaryPart = MeshPart29
- MeshPart29.Name = "Middle"
- MeshPart29.Parent = Model28
- MeshPart29.CFrame = CFrame.new(-60.8763847, 3.30002904, 27.7452545, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart29.Orientation = Vector3.new(0, -90, 0)
- MeshPart29.Position = Vector3.new(-60.8763847, 3.30002904, 27.7452545)
- MeshPart29.Rotation = Vector3.new(0, -90, 0)
- MeshPart29.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart29.Transparency = 1
- MeshPart29.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart29.Size = Vector3.new(0.999999762, 1.40000033, 0.99999994)
- MeshPart29.Anchored = true
- MeshPart29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart29.BrickColor = BrickColor.new("Institutional white")
- MeshPart29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart29.Material = Enum.Material.SmoothPlastic
- MeshPart29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart29.brickColor = BrickColor.new("Institutional white")
- Model30.Name = "LeftLeg2"
- Model30.Parent = Model1
- Model30.PrimaryPart = MeshPart31
- MeshPart31.Name = "Middle"
- MeshPart31.Parent = Model30
- MeshPart31.CFrame = CFrame.new(-60.8763847, 0.950026989, 28.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart31.Orientation = Vector3.new(0, -90, 0)
- MeshPart31.Position = Vector3.new(-60.8763847, 0.950026989, 28.7452698)
- MeshPart31.Rotation = Vector3.new(0, -90, 0)
- MeshPart31.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart31.Transparency = 1
- MeshPart31.Size = Vector3.new(0.99999994, 1.50000036, 1.00000012)
- MeshPart31.Anchored = true
- MeshPart31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart31.BrickColor = BrickColor.new("Institutional white")
- MeshPart31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart31.Material = Enum.Material.SmoothPlastic
- MeshPart31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart31.brickColor = BrickColor.new("Institutional white")
- Model32.Name = "LeftArm2"
- Model32.Parent = Model1
- Model32.PrimaryPart = MeshPart33
- MeshPart33.Name = "Middle"
- MeshPart33.Parent = Model32
- MeshPart33.CFrame = CFrame.new(-60.8763809, 2.85002089, 27.7452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- MeshPart33.Orientation = Vector3.new(0, -90, 0)
- MeshPart33.Position = Vector3.new(-60.8763809, 2.85002089, 27.7452698)
- MeshPart33.Rotation = Vector3.new(0, -90, 0)
- MeshPart33.Color = Color3.new(0.972549, 0.972549, 0.972549)
- MeshPart33.Transparency = 1
- MeshPart33.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- MeshPart33.Size = Vector3.new(0.999999762, 1.20000029, 1)
- MeshPart33.Anchored = true
- MeshPart33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart33.BrickColor = BrickColor.new("Institutional white")
- MeshPart33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart33.Material = Enum.Material.SmoothPlastic
- MeshPart33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart33.brickColor = BrickColor.new("Institutional white")
- Model34.Name = "Hair"
- Model34.Parent = Model1
- Model34.PrimaryPart = Part35
- Part35.Name = "Middle"
- Part35.Parent = Model34
- Part35.CFrame = CFrame.new(-60.8766403, 4.50002193, 29.2452698, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- Part35.Orientation = Vector3.new(0, -90, 0)
- Part35.Position = Vector3.new(-60.8766403, 4.50002193, 29.2452698)
- Part35.Rotation = Vector3.new(0, -90, 0)
- Part35.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part35.Transparency = 1
- Part35.Velocity = Vector3.new(-1.40129846e-45, 0, 1.40129846e-45)
- Part35.Size = Vector3.new(2, 1, 1)
- Part35.Anchored = true
- Part35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.BrickColor = BrickColor.new("Institutional white")
- Part35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.Material = Enum.Material.SmoothPlastic
- Part35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.brickColor = BrickColor.new("Institutional white")
- SpecialMesh36.Parent = Part35
- SpecialMesh36.Scale = Vector3.new(1.25, 1.25, 1.25)
- Part37.Name = "Head"
- Part37.Parent = Model1
- Part37.CFrame = CFrame.new(-57.5766258, 0.100013003, 29.2452698, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Part37.Orientation = Vector3.new(0, 90, 0)
- Part37.Position = Vector3.new(-57.5766258, 0.100013003, 29.2452698)
- Part37.Rotation = Vector3.new(0, 90, 0)
- Part37.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part37.Size = Vector3.new(4, 0.200000003, 4)
- Part37.Anchored = true
- Part37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part37.BrickColor = BrickColor.new("Bright red")
- Part37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part37.Material = Enum.Material.Neon
- Part37.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part37.brickColor = BrickColor.new("Bright red")
- Script38.Name = "RightLeg3"
- Script38.Parent = Part37
- Script39.Name = "RightLeg2"
- Script39.Parent = Part37
- Script40.Name = "Clothing"
- Script40.Parent = Part37
- Script41.Name = "PantRemover"
- Script41.Parent = Part37
- Script42.Name = "ShirtRemover"
- Script42.Parent = Part37
- Script43.Name = "Chest1"
- Script43.Parent = Part37
- Script44.Name = "Chest2"
- Script44.Parent = Part37
- Script45.Name = "Hair"
- Script45.Parent = Part37
- Script46.Name = "Credits"
- Script46.Parent = Part37
- Script47.Name = "LeftArm1"
- Script47.Parent = Part37
- Script48.Name = "LeftArm2"
- Script48.Parent = Part37
- Script49.Name = "LeftArm3"
- Script49.Parent = Part37
- Script50.Name = "LeftLeg1"
- Script50.Parent = Part37
- Script51.Name = "LeftLeg2"
- Script51.Parent = Part37
- Script52.Name = "LeftLeg3"
- Script52.Parent = Part37
- Script53.Name = "RightArm1"
- Script53.Parent = Part37
- Script54.Name = "RightArm2"
- Script54.Parent = Part37
- Script55.Name = "RightArm3"
- Script55.Parent = Part37
- Script56.Name = "RightLeg1"
- Script56.Parent = Part37
- Script57.Name = "R15 Port"
- Script57.Parent = Model0
- table.insert(cors,sandbox(Script57,function()
- --NOTE: This version uses a hack to create a second part for shirt textures
- -- Mesh behavior may change to where this hack will become un-needed
- -- Let me know if you want me to create a toggle for this
- game.Players.PlayerAdded:connect(function(Player)
- wait()
- local function CharacterAdded(Character)
- if Character then
- local R15Model = Instance.new("Model")
- R15Model.Name = "R15Model"
- R15Model.Parent = Character
- local function CreateLimb(Name,Color,Size,Transparency,ConnectToLimb,MotorName,C0,C1,MeshId)
- local Part = Instance.new("Part")
- Part.FormFactor = "Custom"
- Part.Size = Size
- Part.BrickColor = Color
- Part.CanCollide = false
- Part.Name = Name
- Part.Transparency = (Transparency == 0.001 and 0 or Transparency)
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- local Motor = Instance.new("Motor6D")
- Motor.C0 = C0
- Motor.C1 = C1
- Motor.Part0 = ConnectToLimb
- Motor.Part1 = Part
- Motor.Name = MotorName
- Motor.MaxVelocity = 0.1
- Motor.Parent = ConnectToLimb
- if MeshId then
- local Mesh = Instance.new("SpecialMesh")
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = MeshId
- Mesh.Scale = Vector3.new(0.99,0.99,0.99)
- Mesh.Parent = Part
- end
- if MeshId and Transparency == 0.001 then
- local ShirtTexturePart = Instance.new("Part")
- ShirtTexturePart.FormFactor = "Custom"
- ShirtTexturePart.Size = Size
- ShirtTexturePart.BrickColor = Color
- ShirtTexturePart.CanCollide = false
- ShirtTexturePart.Name = "ShirtTexturePart"
- ShirtTexturePart.Transparency = Transparency
- ShirtTexturePart.TopSurface = "Smooth"
- ShirtTexturePart.BottomSurface = "Smooth"
- local Mesh = Instance.new("SpecialMesh")
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = MeshId
- Mesh.Parent = ShirtTexturePart
- local Weld = Instance.new("Weld")
- Weld.Part0 = Part
- Weld.Part1 = ShirtTexturePart
- Weld.Parent = ShirtTexturePart
- ShirtTexturePart.Parent = Part
- end
- Part.Parent = R15Model
- return Part
- end
- local HumanoidRootPart = CreateLimb("HumanoidRootPart",BrickColor.new("Medium stone grey"),Vector3.new(1,1,1),1,Character.HumanoidRootPart,"RootConnector",CFrame.new(),CFrame.new(0,0.7,0))
- local LowerTorso = CreateLimb("LowerTorso",BrickColor.new("Bright blue"),Vector3.new(1,1,1),0.001,HumanoidRootPart,"Root",CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941715")
- local UpperTorso = CreateLimb("UpperTorso",BrickColor.new("Bright blue"),Vector3.new(1,1,1),0.001,LowerTorso,"Waist",CFrame.new(0, 0.404105991, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941468")
- local Head = CreateLimb("Head",BrickColor.new("Bright yellow"),Vector3.new(1,1,1),0,UpperTorso,"Neck",CFrame.new(0, 1.26949596, 0.0428609997, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.635110021, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941905")
- local LeftUpperArm = CreateLimb("LeftUpperArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.672, 1),0.001,UpperTorso,"LeftShoulder",CFrame.new(-1.50177097, 0.924546003, 0, 1, 0, -0, 0, 0.999044001, 0.0437170006, 0, -0.0437170006, 0.999044001),CFrame.new(0, 0.336115986, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387938468")
- local LeftLowerArm = CreateLimb("LeftLowerArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.703, 1),0.001,LeftUpperArm,"LeftElbow",CFrame.new(0, -0.336115986, 0, 1, 0, 0, 0, 0.999044001, -0.0437170006, 0, 0.0437170006, 0.999044001),CFrame.new(0, 0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387938971")
- local LeftHand = CreateLimb("LeftHand",BrickColor.new("Bright yellow"),Vector3.new(1, 0.352, 1),0.001,LeftLowerArm,"LeftWrist",CFrame.new(0, -0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.175756007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939233")
- local RightUpperArm = CreateLimb("RightUpperArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.671, 1),0.001,UpperTorso,"RightShoulder",CFrame.new(1.50049305, 0.923726022, 0, 1, 0, -0, 0, 0.999041617, 0.0437709838, 0, -0.0437709838, 0.999041617),CFrame.new(0, 0.335705996, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940113")
- local RightLowerArm = CreateLimb("RightLowerArm",BrickColor.new("Bright yellow"),Vector3.new(1, 0.703, 1),0.001,RightUpperArm,"RightElbow",CFrame.new(0, -0.335705996, 0, 1, 0, 0, 0, 0.999041617, -0.0437709838, 0, 0.0437709838, 0.999041617),CFrame.new(0, 0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940356")
- local RightHand = CreateLimb("RightHand",BrickColor.new("Bright yellow"),Vector3.new(1, 0.352, 1),0.001,RightLowerArm,"RightWrist",CFrame.new(0, -0.351512015, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.175756007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940548")
- local LeftUpperLeg = CreateLimb("LeftUpperLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.775, 1),0.001,LowerTorso,"LeftHip",CFrame.new(-0.457044005, -0.498115987, 0, 1, 0, -0, 0, 1, 0.000100999998, 0, -0.000100999998, 1),CFrame.new(0, 0.387418985, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939645")
- local LeftLowerLeg = CreateLimb("LeftLowerLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.829, 1),0.001,LeftUpperLeg,"LeftKnee",CFrame.new(0, -0.387418985, 0, 1, 9.95820074e-007, 9.13360125e-008, -9.99999997e-007, 0.995820105, 0.0913360119, 0, -0.0913360119, 0.995820105),CFrame.new(0, 0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939489")
- local LeftFoot = CreateLimb("LeftFoot",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.415, 1),0.001,LeftLowerLeg,"LeftAnkle",CFrame.new(0, -0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.207286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387939912")
- local RightUpperLeg = CreateLimb("RightUpperLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.775, 1),0.001,LowerTorso,"RightHip",CFrame.new(0.451141, -0.498115987, 0, 1, 0, -0, 0, 1, 0.000100999998, 0, -0.000100999998, 1),CFrame.new(0, 0.387418985, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940976")
- local RightLowerLeg = CreateLimb("RightLowerLeg",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.829, 1),0.001,RightUpperLeg,"RightKnee",CFrame.new(0, -0.387418985, 0, 1, 0, -0, 0, 0.995820105, 0.0913360119, 0, -0.0913360119, 0.995820105),CFrame.new(0, 0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387940802")
- local RightFoot = CreateLimb("RightFoot",BrickColor.new("Br. yellowish green"),Vector3.new(1, 0.415, 1),0.001,RightLowerLeg,"RightAnkle",CFrame.new(0, -0.414570987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.207286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),"rbxassetid://387941196")
- --if Character:WaitForChild("Head"):WaitForChild("Mesh").MeshId ~= "" then
- -- Head.MeshId = Character.Head.Mesh.MeshId
- --end
- spawn(function() Character:WaitForChild("Animate").Disabled = false end)
- script.NewAnimate:Clone().Parent = Character
- local function Clear(Name,Alternative,ColorParts)
- local Part = Character:WaitForChild(Name)
- Part.Transparency = (Name == "Head" and 0.99 or 1)
- local function ChildAdded(Ins)
- delay(0.05,function()
- if Ins.Name == "face" then
- if Alternative:FindFirstChild("face") then Alternative:FindFirstChild("face"):Destroy() end
- Ins.Parent = Alternative
- elseif Ins:IsA("Motor6D") and string.sub(Ins.Name,1,5) ~= "Fake_" then
- Ins.Name = "Fake_"..Ins.Name
- elseif Ins.Name == "HeadWeld" then
- delay(0.05,function()
- Ins.Parent = Head
- Ins.Part0 = Head
- Ins.C1 = CFrame.new(0,0,0.05) * Ins.C1
- end)
- elseif not Ins:IsA("Weld") then
- Ins:Destroy()
- end
- end)
- end
- for _,Sub in pairs(Part:GetChildren()) do
- ChildAdded(Sub)
- end
- Part.ChildAdded:connect(ChildAdded)
- local function Color()
- for _,Sub in pairs(ColorParts) do
- Sub.BrickColor = Part.BrickColor
- local TexturePart = Sub:FindFirstChild("ShirtTexturePart")
- if TexturePart then
- TexturePart.BrickColor = Part.BrickColor
- end
- end
- end
- Color()
- Part.Changed:connect(Color)
- end
- Clear("HumanoidRootPart",HumanoidRootPart,{HumanoidRootPart})
- Clear("Head",Head,{Head})
- Clear("Torso",nil,{LowerTorso,UpperTorso})
- Clear("Left Arm",nil,{LeftLowerArm,LeftUpperArm,LeftHand})
- Clear("Right Arm",nil,{RightLowerArm,RightUpperArm,RightHand})
- Clear("Left Leg",nil,{LeftLowerLeg,LeftUpperLeg,LeftFoot})
- Clear("Right Leg",nil,{RightLowerLeg,RightUpperLeg,RightFoot})
- local ShirtUsed = false
- local function ChildAdded(Ins)
- if Ins:IsA("Hat") and string.sub(Ins.Name,1,7) ~= "Scaled_" then
- delay(0.05,function()
- local Mesh = Ins:WaitForChild("Handle"):WaitForChild("Mesh")
- Ins.AttachmentPos = Ins.AttachmentPos
- Mesh.Scale = Mesh.Scale
- Ins.Name = "Scaled_"..Ins.Name
- end)
- elseif Ins:IsA("Shirt") then
- ShirtUsed = true
- LowerTorso.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- UpperTorso.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- LeftLowerArm.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- LeftUpperArm.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- LeftHand.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- RightLowerArm.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- RightUpperArm.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- RightHand.ShirtTexturePart.Mesh.TextureId = Ins.ShirtTemplate
- elseif Ins:IsA("Pants") then
- LeftUpperLeg.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- LeftLowerLeg.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- LeftFoot.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- RightUpperLeg.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- RightLowerLeg.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- RightFoot.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- if LowerTorso.ShirtTexturePart.Mesh.TextureId == "" then
- LowerTorso.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- UpperTorso.ShirtTexturePart.Mesh.TextureId = Ins.PantsTemplate
- end
- end
- end
- for _,Sub in pairs(Character:GetChildren()) do
- ChildAdded(Sub)
- end
- Character.ChildAdded:connect(ChildAdded)
- end
- end
- CharacterAdded(Player.Character)
- Player.CharacterAdded:connect(CharacterAdded)
- end)
- end))
- LocalScript58.Name = "NewAnimate"
- LocalScript58.Parent = Script57
- table.insert(cors,sandbox(LocalScript58,function()
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = script.Parent
- local Humanoid = waitForChild(Figure, "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 = "rbxasset://R15021216/idle_stretch.xml", weight = 1 },
- { id = "rbxasset://R15021216/idle_look.xml", weight = 1 },
- { id = "rbxasset://R15021216/idle.xml", weight = 9 }
- },
- walk = {
- { id = "rbxasset://R15021216/run.xml", weight = 10 }
- },
- run = {
- { id = "rbxasset://R15021216/run.xml", weight = 10 }
- },
- jump = {
- { id = "rbxasset://R15021216/jump.xml", weight = 10 }
- },
- fall = {
- { id = "rbxasset://R15021216/falling.xml", weight = 10 }
- },
- climb = {
- { id = "rbxasset://R15021216/climb.xml", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=393915321", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=393915542", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=393915542", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=393915542", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=393915710", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=393915866", weight = 10 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=393916260", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=393916456", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=393916635", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=393916791", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=393916989", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=393917195", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=393917375", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=393917556", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=393917721", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=393916166", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=393916016", weight = 10 }
- },
- }
- -- 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, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- math.randomseed(tick())
- 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.31
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.2
- -- 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
- -- print("Keyframe : ".. frameName)
- 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.15, 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)
- -- 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)
- 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)
- -- 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
- local scale = 15.0
- playAnimation("walk", 0.1, Humanoid)
- setAnimationSpeed(speed / scale)
- pose = "Running"
- else
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- local scale = 2.0
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / scale)
- 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)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid)
- 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
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool then
- 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)
- -- setup emote chat hook
- Game.Players.LocalPlayer.Chatted:connect(function(msg)
- local emote = ""
- if (string.sub(msg, 1, 3) == "/e ") then
- emote = string.sub(msg, 4)
- elseif (string.sub(msg, 1, 7) == "/emote ") then
- emote = string.sub(msg, 8)
- end
- if (pose == "Standing" and emoteNames[emote] ~= nil) then
- playAnimation(emote, 0.1, Humanoid)
- end
- -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
- end)
- -- main program
- local runService = game:service("RunService");
- -- print("bottom")
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue59.Name = "climb"
- StringValue59.Parent = LocalScript58
- Animation60.Name = "ClimbAnim"
- Animation60.Parent = StringValue59
- Animation60.AnimationId = "http://www.roblox.com/asset/?id=387946868"
- StringValue61.Name = "fall"
- StringValue61.Parent = LocalScript58
- Animation62.Name = "FallAnim"
- Animation62.Parent = StringValue61
- Animation62.AnimationId = "http://www.roblox.com/asset/?id=387948187"
- StringValue63.Name = "idle"
- StringValue63.Parent = LocalScript58
- Animation64.Name = "Animation1"
- Animation64.Parent = StringValue63
- Animation64.AnimationId = "http://www.roblox.com/asset/?id=387947158"
- NumberValue65.Name = "Weight"
- NumberValue65.Parent = Animation64
- NumberValue65.Value = 9
- Animation66.Name = "Animation2"
- Animation66.Parent = StringValue63
- Animation66.AnimationId = "http://www.roblox.com/asset/?id=387947464"
- NumberValue67.Name = "Weight"
- NumberValue67.Parent = Animation66
- NumberValue67.Value = 1
- Animation68.Name = "Animation3"
- Animation68.Parent = StringValue63
- Animation68.AnimationId = "http://www.roblox.com/asset/?id=387947796"
- NumberValue69.Name = "Weight"
- NumberValue69.Parent = Animation68
- NumberValue69.Value = 1
- StringValue70.Name = "jump"
- StringValue70.Parent = LocalScript58
- Animation71.Name = "JumpAnim"
- Animation71.Parent = StringValue70
- Animation71.AnimationId = "http://www.roblox.com/asset/?id=387946624"
- StringValue72.Name = "run"
- StringValue72.Parent = LocalScript58
- Animation73.Name = "RunAnim"
- Animation73.Parent = StringValue72
- Animation73.AnimationId = "http://www.roblox.com/asset/?id=387947975"
- StringValue74.Name = "sit"
- StringValue74.Parent = LocalScript58
- Animation75.Name = "SitAnim"
- Animation75.Parent = StringValue74
- Animation75.AnimationId = "http://www.roblox.com/asset/?id=393915321"
- StringValue76.Name = "toolnone"
- StringValue76.Parent = LocalScript58
- Animation77.Name = "ToolNoneAnim"
- Animation77.Parent = StringValue76
- Animation77.AnimationId = "http://www.roblox.com/asset/?id=393915542"
- StringValue78.Name = "walk"
- StringValue78.Parent = LocalScript58
- Animation79.Name = "WalkAnim"
- Animation79.Parent = StringValue78
- Animation79.AnimationId = "http://www.roblox.com/asset/?id=387947975"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- 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