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")
- Part1 = Instance.new("Part")
- Attachment2 = Instance.new("Attachment")
- Attachment3 = Instance.new("Attachment")
- Attachment4 = Instance.new("Attachment")
- Attachment5 = Instance.new("Attachment")
- SpecialMesh6 = Instance.new("SpecialMesh")
- Decal7 = Instance.new("Decal")
- Part8 = Instance.new("Part")
- Decal9 = Instance.new("Decal")
- Attachment10 = Instance.new("Attachment")
- Attachment11 = Instance.new("Attachment")
- Attachment12 = Instance.new("Attachment")
- Attachment13 = Instance.new("Attachment")
- Attachment14 = Instance.new("Attachment")
- Attachment15 = Instance.new("Attachment")
- Attachment16 = Instance.new("Attachment")
- Attachment17 = Instance.new("Attachment")
- Weld18 = Instance.new("Weld")
- Weld19 = Instance.new("Weld")
- Part20 = Instance.new("Part")
- Attachment21 = Instance.new("Attachment")
- Attachment22 = Instance.new("Attachment")
- Weld23 = Instance.new("Weld")
- Part24 = Instance.new("Part")
- Attachment25 = Instance.new("Attachment")
- Attachment26 = Instance.new("Attachment")
- Weld27 = Instance.new("Weld")
- Part28 = Instance.new("Part")
- Attachment29 = Instance.new("Attachment")
- Weld30 = Instance.new("Weld")
- Part31 = Instance.new("Part")
- Attachment32 = Instance.new("Attachment")
- Weld33 = Instance.new("Weld")
- Humanoid34 = Instance.new("Humanoid")
- Part35 = Instance.new("Part")
- Attachment36 = Instance.new("Attachment")
- Shirt37 = Instance.new("Shirt")
- LocalScript38 = Instance.new("LocalScript")
- StringValue39 = Instance.new("StringValue")
- Animation40 = Instance.new("Animation")
- NumberValue41 = Instance.new("NumberValue")
- Animation42 = Instance.new("Animation")
- NumberValue43 = Instance.new("NumberValue")
- StringValue44 = Instance.new("StringValue")
- Animation45 = Instance.new("Animation")
- StringValue46 = Instance.new("StringValue")
- Animation47 = Instance.new("Animation")
- StringValue48 = Instance.new("StringValue")
- Animation49 = Instance.new("Animation")
- StringValue50 = Instance.new("StringValue")
- Animation51 = Instance.new("Animation")
- StringValue52 = Instance.new("StringValue")
- Animation53 = Instance.new("Animation")
- StringValue54 = Instance.new("StringValue")
- Animation55 = Instance.new("Animation")
- StringValue56 = Instance.new("StringValue")
- Animation57 = Instance.new("Animation")
- CharacterMesh58 = Instance.new("CharacterMesh")
- BodyColors59 = Instance.new("BodyColors")
- CharacterMesh60 = Instance.new("CharacterMesh")
- Accessory61 = Instance.new("Accessory")
- Part62 = Instance.new("Part")
- SpecialMesh63 = Instance.new("SpecialMesh")
- Attachment64 = Instance.new("Attachment")
- Vector3Value65 = Instance.new("Vector3Value")
- Pants66 = Instance.new("Pants")
- CharacterMesh67 = Instance.new("CharacterMesh")
- CharacterMesh68 = Instance.new("CharacterMesh")
- CharacterMesh69 = Instance.new("CharacterMesh")
- Part70 = Instance.new("Part")
- Part71 = Instance.new("Part")
- Part72 = Instance.new("Part")
- Part73 = Instance.new("Part")
- Part74 = Instance.new("Part")
- Script75 = Instance.new("Script")
- LocalScript76 = Instance.new("LocalScript")
- ObjectValue77 = Instance.new("ObjectValue")
- Model0.Name = " "
- Model0.Parent = mas
- Model0.PrimaryPart = Part1
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("White")
- Part1.Rotation = Vector3.new(-92.659996, -88.9000015, -92.6800003)
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.CFrame = CFrame.new(-32.7889519, 4.50256634, -62.3428764, -0.000896211946, 0.0191786997, -0.999815643, -0.000249215751, 0.99981606, 0.0191789325, 0.999999642, 0.000266358227, -0.000891267613)
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part1.Position = Vector3.new(-32.7889519, 4.50256634, -62.3428764)
- Part1.Orientation = Vector3.new(-1.10000002, -90.0499954, -0.00999999978)
- Part1.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Attachment2.Name = "HairAttachment"
- Attachment2.Parent = Part1
- Attachment2.CFrame = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment2.Position = Vector3.new(0, 0.600000024, 0)
- Attachment3.Name = "HatAttachment"
- Attachment3.Parent = Part1
- Attachment3.CFrame = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment3.Position = Vector3.new(0, 0.600000024, 0)
- Attachment4.Name = "FaceFrontAttachment"
- Attachment4.Parent = Part1
- Attachment4.CFrame = CFrame.new(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment4.Position = Vector3.new(0, 0, -0.600000024)
- Attachment5.Name = "FaceCenterAttachment"
- Attachment5.Parent = Part1
- SpecialMesh6.Parent = Part1
- SpecialMesh6.MeshId = "http://www.roblox.com/asset/?id=83001675"
- SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh6.MeshType = Enum.MeshType.FileMesh
- SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal7.Name = "face"
- Decal7.Parent = Part1
- Decal7.Texture = "http://www.roblox.com/asset/?id=144080495 "
- Part8.Name = "Torso"
- Part8.Parent = Model0
- Part8.BrickColor = BrickColor.new("Light stone grey")
- Part8.Rotation = Vector3.new(-92.659996, -88.9000015, -92.6800003)
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.Size = Vector3.new(2, 2, 1)
- Part8.CFrame = CFrame.new(-32.8177185, 3.00284195, -62.343277, -0.000896211946, 0.0191786997, -0.999815643, -0.000249215751, 0.99981606, 0.0191789325, 0.999999642, 0.000266358227, -0.000891267613)
- Part8.LeftSurface = Enum.SurfaceType.Weld
- Part8.RightSurface = Enum.SurfaceType.Weld
- Part8.Color = Color3.new(0.898039, 0.894118, 0.87451)
- Part8.Position = Vector3.new(-32.8177185, 3.00284195, -62.343277)
- Part8.Orientation = Vector3.new(-1.10000002, -90.0499954, -0.00999999978)
- Part8.Color = Color3.new(0.898039, 0.894118, 0.87451)
- Decal9.Name = "roblox"
- Decal9.Parent = Part8
- Attachment10.Name = "NeckAttachment"
- Attachment10.Parent = Part8
- Attachment10.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment10.Position = Vector3.new(0, 1, 0)
- Attachment11.Name = "BodyFrontAttachment"
- Attachment11.Parent = Part8
- Attachment11.CFrame = CFrame.new(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment11.Position = Vector3.new(0, 0, -0.5)
- Attachment12.Name = "BodyBackAttachment"
- Attachment12.Parent = Part8
- Attachment12.CFrame = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment12.Position = Vector3.new(0, 0, 0.5)
- Attachment13.Name = "LeftCollarAttachment"
- Attachment13.Parent = Part8
- Attachment13.CFrame = CFrame.new(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment13.Position = Vector3.new(-1, 1, 0)
- Attachment14.Name = "RightCollarAttachment"
- Attachment14.Parent = Part8
- Attachment14.CFrame = CFrame.new(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment14.Position = Vector3.new(1, 1, 0)
- Attachment15.Name = "WaistFrontAttachment"
- Attachment15.Parent = Part8
- Attachment15.CFrame = CFrame.new(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment15.Position = Vector3.new(0, -1, -0.5)
- Attachment16.Name = "WaistCenterAttachment"
- Attachment16.Parent = Part8
- Attachment16.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment16.Position = Vector3.new(0, -1, 0)
- Attachment17.Name = "WaistBackAttachment"
- Attachment17.Parent = Part8
- Attachment17.CFrame = CFrame.new(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment17.Position = Vector3.new(0, -1, 0.5)
- Weld18.Name = "Neck"
- Weld18.Parent = Part8
- Weld18.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld18.Part0 = Part8
- Weld18.Part1 = Part1
- Weld19.Parent = Part8
- Weld19.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld19.Part0 = Part8
- Weld19.Part1 = Part74
- Part20.Name = "Left Arm"
- Part20.Parent = Model0
- Part20.BrickColor = BrickColor.new("White")
- Part20.Rotation = Vector3.new(-88.8799973, -89.7599945, -88.8899994)
- Part20.CanCollide = false
- Part20.FormFactor = Enum.FormFactor.Symmetric
- Part20.Size = Vector3.new(1, 2, 1)
- Part20.CFrame = CFrame.new(-32.8089905, 3.00308895, -63.8432312, 8.19999914e-05, 0.00424200017, -0.999991, -0.000180000003, 0.999991, 0.00424198527, 1, 0.000179650538, 8.27628319e-05)
- Part20.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part20.Position = Vector3.new(-32.8089905, 3.00308895, -63.8432312)
- Part20.Orientation = Vector3.new(-0.239999995, -90, -0.00999999978)
- Part20.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Attachment21.Name = "LeftShoulderAttachment"
- Attachment21.Parent = Part20
- Attachment21.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment21.Position = Vector3.new(0, 1, 0)
- Attachment22.Name = "LeftGripAttachment"
- Attachment22.Parent = Part20
- Attachment22.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment22.Position = Vector3.new(0, -1, 0)
- Weld23.Parent = Part20
- Weld23.C0 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld23.Part0 = Part20
- Weld23.Part1 = Part71
- Part24.Name = "Right Arm"
- Part24.Parent = Model0
- Part24.BrickColor = BrickColor.new("White")
- Part24.Rotation = Vector3.new(57.6599998, -89.9799957, 57.6499977)
- Part24.CanCollide = false
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.Size = Vector3.new(1, 2, 1)
- Part24.CFrame = CFrame.new(-32.8094177, 3.00234795, -60.8432312, 0.000162442448, -0.000256485306, -0.99999994, -0.000184689823, 1, -0.000256515108, 1, 0.0001847315, 0.00016239511)
- Part24.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part24.Position = Vector3.new(-32.8094177, 3.00234795, -60.8432312)
- Part24.Orientation = Vector3.new(0.00999999978, -89.9899979, -0.00999999978)
- Part24.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Attachment25.Name = "RightShoulderAttachment"
- Attachment25.Parent = Part24
- Attachment25.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment25.Position = Vector3.new(0, 1, 0)
- Attachment26.Name = "RightGripAttachment"
- Attachment26.Parent = Part24
- Attachment26.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment26.Position = Vector3.new(0, -1, 0)
- Weld27.Parent = Part24
- Weld27.C0 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld27.Part0 = Part24
- Weld27.Part1 = Part70
- Part28.Name = "Left Leg"
- Part28.Parent = Model0
- Part28.BrickColor = BrickColor.new("Medium blue")
- Part28.Rotation = Vector3.new(79.3600006, -89.6399994, 79.3600006)
- Part28.CanCollide = false
- Part28.FormFactor = Enum.FormFactor.Symmetric
- Part28.Size = Vector3.new(1, 2, 1)
- Part28.CFrame = CFrame.new(-32.8302917, 1.003093, -62.8435822, 0.00115803222, -0.00616325252, -0.99998033, -2.37580807e-05, 0.999980986, -0.00616328325, 0.999999404, 3.08949129e-05, 0.00115786388)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.Color = Color3.new(0.431373, 0.6, 0.792157)
- Part28.Position = Vector3.new(-32.8302917, 1.003093, -62.8435822)
- Part28.Orientation = Vector3.new(0.349999994, -89.9300003, 0)
- Part28.Color = Color3.new(0.431373, 0.6, 0.792157)
- Attachment29.Name = "LeftFootAttachment"
- Attachment29.Parent = Part28
- Attachment29.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment29.Position = Vector3.new(0, -1, 0)
- Weld30.Parent = Part28
- Weld30.C0 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld30.Part0 = Part28
- Weld30.Part1 = Part73
- Part31.Name = "Right Leg"
- Part31.Parent = Model0
- Part31.BrickColor = BrickColor.new("Medium blue")
- Part31.Rotation = Vector3.new(-99.75, -89.7399979, -99.6999969)
- Part31.CanCollide = false
- Part31.FormFactor = Enum.FormFactor.Symmetric
- Part31.Size = Vector3.new(1, 2, 1)
- Part31.CFrame = CFrame.new(-32.8418884, 1.002846, -61.8426437, -0.000776336063, 0.00454139849, -0.99998939, 0.000924410648, 0.999989271, 0.00454068044, 0.999999285, -0.000920875755, -0.00078052585)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.Color = Color3.new(0.431373, 0.6, 0.792157)
- Part31.Position = Vector3.new(-32.8418884, 1.002846, -61.8426437)
- Part31.Orientation = Vector3.new(-0.25999999, -90.0400009, 0.049999997)
- Part31.Color = Color3.new(0.431373, 0.6, 0.792157)
- Attachment32.Name = "RightFootAttachment"
- Attachment32.Parent = Part31
- Attachment32.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment32.Position = Vector3.new(0, -1, 0)
- Weld33.Parent = Part31
- Weld33.C0 = CFrame.new(0, -0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld33.Part0 = Part31
- Weld33.Part1 = Part72
- Humanoid34.Name = "Humanoid2"
- Humanoid34.Parent = Model0
- Humanoid34.RightLeg = Part31
- Humanoid34.LeftLeg = Part28
- Humanoid34.Torso = Part35
- Humanoid34.Health = 0
- Humanoid34.MaxHealth = 0
- Part35.Name = "HumanoidRootPart"
- Part35.Parent = Model0
- Part35.Transparency = 1
- Part35.Rotation = Vector3.new(-1.36000001, -89.9499969, -1.33999991)
- Part35.RotVelocity = Vector3.new(4.23053552e-06, 1.68939623e-05, -1.860458e-05)
- Part35.Velocity = Vector3.new(5.48453863e-06, -0.000462770462, 4.08444612e-06)
- Part35.FormFactor = Enum.FormFactor.Symmetric
- Part35.Size = Vector3.new(2, 2, 1)
- Part35.CFrame = CFrame.new(-31.8220825, 1.00064802, -62.3431854, 0.000939510879, 2.20215879e-05, -0.999999583, 0.000282525667, 0.99999994, 2.22870149e-05, 0.999999523, -0.000282546447, 0.000939504534)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.Position = Vector3.new(-31.8220825, 1.00064802, -62.3431854)
- Part35.Orientation = Vector3.new(0, -89.9499969, 0.0199999996)
- Attachment36.Name = "RootAttachment"
- Attachment36.Parent = Part35
- Shirt37.Name = "Shirt"
- Shirt37.Parent = Model0
- Shirt37.ShirtTemplate = "http://www.roblox.com/asset/?id=144076357"
- LocalScript38.Name = "Animate"
- LocalScript38.Parent = Model0
- table.insert(cors,sandbox(LocalScript38,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)
- -- setup emote chat hook
- game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
- local emote = ""
- if msg == "/e dance" then
- emote = dances[math.random(1, #dances)]
- elseif (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
- end)
- -- 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))
- StringValue39.Name = "idle"
- StringValue39.Parent = LocalScript38
- Animation40.Name = "Animation1"
- Animation40.Parent = StringValue39
- Animation40.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue41.Name = "Weight"
- NumberValue41.Parent = Animation40
- NumberValue41.Value = 9
- Animation42.Name = "Animation2"
- Animation42.Parent = StringValue39
- Animation42.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue43.Name = "Weight"
- NumberValue43.Parent = Animation42
- NumberValue43.Value = 1
- StringValue44.Name = "walk"
- StringValue44.Parent = LocalScript38
- Animation45.Name = "WalkAnim"
- Animation45.Parent = StringValue44
- Animation45.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue46.Name = "run"
- StringValue46.Parent = LocalScript38
- Animation47.Name = "RunAnim"
- Animation47.Parent = StringValue46
- Animation47.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue48.Name = "jump"
- StringValue48.Parent = LocalScript38
- Animation49.Name = "JumpAnim"
- Animation49.Parent = StringValue48
- Animation49.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue50.Name = "climb"
- StringValue50.Parent = LocalScript38
- Animation51.Name = "ClimbAnim"
- Animation51.Parent = StringValue50
- Animation51.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue52.Name = "toolnone"
- StringValue52.Parent = LocalScript38
- Animation53.Name = "ToolNoneAnim"
- Animation53.Parent = StringValue52
- Animation53.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue54.Name = "fall"
- StringValue54.Parent = LocalScript38
- Animation55.Name = "FallAnim"
- Animation55.Parent = StringValue54
- Animation55.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue56.Name = "sit"
- StringValue56.Parent = LocalScript38
- Animation57.Name = "SitAnim"
- Animation57.Parent = StringValue56
- Animation57.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- CharacterMesh58.Parent = Model0
- CharacterMesh58.MeshId = 81487640
- CharacterMesh58.BodyPart = Enum.BodyPart.LeftLeg
- BodyColors59.Parent = Model0
- BodyColors59.HeadColor = BrickColor.new("White")
- BodyColors59.LeftArmColor = BrickColor.new("White")
- BodyColors59.LeftLegColor = BrickColor.new("Medium blue")
- BodyColors59.RightArmColor = BrickColor.new("White")
- BodyColors59.RightLegColor = BrickColor.new("Medium blue")
- BodyColors59.TorsoColor = BrickColor.new("Light stone grey")
- CharacterMesh60.Parent = Model0
- CharacterMesh60.MeshId = 82907945
- CharacterMesh60.BodyPart = Enum.BodyPart.Torso
- Accessory61.Name = "Pal Hair"
- Accessory61.Parent = Model0
- Accessory61.AttachmentPos = Vector3.new(0, 0.25, 0.25)
- Part62.Name = "Handle"
- Part62.Parent = Accessory61
- Part62.Rotation = Vector3.new(-92.659996, -88.9000015, -92.6800003)
- Part62.CanCollide = false
- Part62.Locked = true
- Part62.FormFactor = Enum.FormFactor.Symmetric
- Part62.Size = Vector3.new(1, 1, 2)
- Part62.CFrame = CFrame.new(-32.5344772, 4.7477169, -62.3425903, -0.000896211772, 0.0191786997, -0.999815643, -0.000249207893, 0.99981606, 0.0191789325, 0.999999642, 0.000266350369, -0.000891267613)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.Position = Vector3.new(-32.5344772, 4.7477169, -62.3425903)
- Part62.Orientation = Vector3.new(-1.10000002, -90.0499954, -0.00999999978)
- SpecialMesh63.Parent = Part62
- SpecialMesh63.MeshId = "http://www.roblox.com/asset/?id=83293901"
- SpecialMesh63.Scale = Vector3.new(1, 1.04999995, 1)
- SpecialMesh63.TextureId = "http://www.roblox.com/asset/?id=83284747"
- SpecialMesh63.VertexColor = Vector3.new(1.20000005, 1.39999998, 1.39999998)
- SpecialMesh63.MeshType = Enum.MeshType.FileMesh
- SpecialMesh63.Scale = Vector3.new(1, 1.04999995, 1)
- Attachment64.Name = "HairAttachment"
- Attachment64.Parent = Part62
- Attachment64.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Attachment64.CFrame = CFrame.new(8.65748007e-09, 0.349999905, 0.249727756, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
- Attachment64.Position = Vector3.new(8.65748007e-09, 0.349999905, 0.249727756)
- Attachment64.Axis = Vector3.new(1, -7.87137555e-09, 0)
- Attachment64.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
- Vector3Value65.Name = "OriginalSize"
- Vector3Value65.Parent = Part62
- Vector3Value65.Value = Vector3.new(1, 1, 2)
- Pants66.Name = "Pants"
- Pants66.Parent = Model0
- Pants66.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
- CharacterMesh67.Parent = Model0
- CharacterMesh67.MeshId = 82907977
- CharacterMesh67.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh68.Parent = Model0
- CharacterMesh68.MeshId = 82908019
- CharacterMesh68.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh69.Parent = Model0
- CharacterMesh69.MeshId = 81487710
- CharacterMesh69.BodyPart = Enum.BodyPart.RightLeg
- Part70.Parent = Model0
- Part70.Transparency = 1
- Part70.Rotation = Vector3.new(57.6599998, -89.9799957, 57.6499977)
- Part70.Size = Vector3.new(1, 1, 1)
- Part70.CFrame = CFrame.new(-32.809288, 2.50234795, -60.8433228, 0.000162442448, -0.000256485306, -0.99999994, -0.000184689823, 1, -0.000256515108, 1, 0.0001847315, 0.00016239511)
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.Position = Vector3.new(-32.809288, 2.50234795, -60.8433228)
- Part70.Orientation = Vector3.new(0.00999999978, -89.9899979, -0.00999999978)
- Part71.Parent = Model0
- Part71.Transparency = 1
- Part71.Rotation = Vector3.new(-88.8799973, -89.7599945, -88.8899994)
- Part71.Size = Vector3.new(1, 1, 1)
- Part71.CFrame = CFrame.new(-32.8111115, 2.50309348, -63.8433228, 8.19999914e-05, 0.00424200017, -0.999991, -0.000180000003, 0.999991, 0.00424198527, 1, 0.000179650538, 8.27628319e-05)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Position = Vector3.new(-32.8111115, 2.50309348, -63.8433228)
- Part71.Orientation = Vector3.new(-0.239999995, -90, -0.00999999978)
- Part72.Parent = Model0
- Part72.Transparency = 1
- Part72.Rotation = Vector3.new(-99.75, -89.7399979, -99.6999969)
- Part72.Size = Vector3.new(1, 1, 1)
- Part72.CFrame = CFrame.new(-32.8441582, 0.502851367, -61.8421822, -0.000776336063, 0.00454139849, -0.99998939, 0.000924410648, 0.999989271, 0.00454068044, 0.999999285, -0.000920875755, -0.00078052585)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.Position = Vector3.new(-32.8441582, 0.502851367, -61.8421822)
- Part72.Orientation = Vector3.new(-0.25999999, -90.0400009, 0.049999997)
- Part73.Parent = Model0
- Part73.Transparency = 1
- Part73.Rotation = Vector3.new(79.3600006, -89.6399994, 79.3600006)
- Part73.Size = Vector3.new(1, 1, 1)
- Part73.CFrame = CFrame.new(-32.8272095, 0.503102541, -62.8435974, 0.00115803222, -0.00616325252, -0.99998033, -2.37580807e-05, 0.999980986, -0.00616328325, 0.999999404, 3.08949129e-05, 0.00115786388)
- Part73.BottomSurface = Enum.SurfaceType.Smooth
- Part73.TopSurface = Enum.SurfaceType.Smooth
- Part73.Position = Vector3.new(-32.8272095, 0.503102541, -62.8435974)
- Part73.Orientation = Vector3.new(0.349999994, -89.9300003, 0)
- Part74.Parent = Model0
- Part74.Transparency = 1
- Part74.Rotation = Vector3.new(-92.659996, -88.9000015, -92.6800003)
- Part74.Size = Vector3.new(1, 1, 1)
- Part74.CFrame = CFrame.new(-32.8081284, 3.50274992, -62.3431435, -0.000896211946, 0.0191786997, -0.999815643, -0.000249215751, 0.99981606, 0.0191789325, 0.999999642, 0.000266358227, -0.000891267613)
- Part74.BottomSurface = Enum.SurfaceType.Smooth
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.Position = Vector3.new(-32.8081284, 3.50274992, -62.3431435)
- Part74.Orientation = Vector3.new(-1.10000002, -90.0499954, -0.00999999978)
- Script75.Name = "Ragdoller"
- Script75.Parent = Model0
- table.insert(cors,sandbox(Script75,function()
- print("Ragdoll script activated")
- Gibs = game.Workspace
- function getKillerOfHumanoidIfStillInGame(humanoid)
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- local killer = tag.Value
- if killer.Parent ~= nil then
- return killer
- end
- end
- return nil
- end
- function OnDeath(Character)
- local svch = Character
- local hum = Character:findFirstChild("Humanoid")
- local getkiller = getKillerOfHumanoidIfStillInGame(hum)
- Character.Archivable = true
- local chrclone = Character:clone()
- Character.Archivable = false
- local ch = chrclone:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
- ch[i]:remove()
- end
- end
- local function Scan(ch)
- local e
- for e = 1,#ch do
- Scan(ch[e]:GetChildren())
- if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
- ch[e]:remove()
- end
- end
- end
- Scan(chrclone:GetChildren())
- local hum2 = chrclone:findFirstChild("Humanoid")
- if hum2 ~= nil then
- hum2.Name = "Humanoid2"
- hum2.PlatformStand = true
- hum2.Sit = true
- hum2.MaxHealth = 0
- hum2.Health = 0
- end
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- wait(0.2)
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- Character = chrclone
- local Torso = Character.Torso
- local movevector = Vector3.new()
- if Torso then
- if getkiller ~= nil then
- if getkiller.Character ~= nil then
- local killtors = getkiller.Character:findFirstChild("Torso")
- if killtors ~= nil then
- movevector = CFrame.new(killtors.Position,Torso.Position).lookVector
- end
- end
- end
- local Head = Character:FindFirstChild("Head")
- if Head then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- local nsc = script.CamAttach:clone()
- nsc.CamPart.Value = hum2.Parent.Head
- nsc.Disabled = false
- nsc.Parent = svch
- end
- local Limb = Character:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- end
- Character.Parent = Gibs
- game.Debris:AddItem(Character, 12)
- if movevector ~= Vector3.new() then
- for i = 1,10 do
- wait()
- Torso.Velocity = movevector * 30
- end
- end
- end
- script.Parent.Humanoid.Died:connect(function()
- OnDeath(script.Parent)
- end)
- end))
- LocalScript76.Name = "CamAttach"
- LocalScript76.Parent = Script75
- LocalScript76.Disabled = true
- table.insert(cors,sandbox(LocalScript76,function()
- wait()
- game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
- end))
- ObjectValue77.Name = "CamPart"
- ObjectValue77.Parent = LocalScript76
- 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