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")
- Script1 = Instance.new("Script")
- LocalScript2 = Instance.new("LocalScript")
- ObjectValue3 = Instance.new("ObjectValue")
- Shirt4 = Instance.new("Shirt")
- Pants5 = Instance.new("Pants")
- Hat6 = Instance.new("Hat")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Weld11 = Instance.new("Weld")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Sound13 = Instance.new("Sound")
- Sound14 = Instance.new("Sound")
- Script15 = Instance.new("Script")
- Script16 = Instance.new("Script")
- StringValue17 = Instance.new("StringValue")
- Animation18 = Instance.new("Animation")
- StringValue19 = Instance.new("StringValue")
- Animation20 = Instance.new("Animation")
- StringValue21 = Instance.new("StringValue")
- Animation22 = Instance.new("Animation")
- StringValue23 = Instance.new("StringValue")
- Animation24 = Instance.new("Animation")
- StringValue25 = Instance.new("StringValue")
- Animation26 = Instance.new("Animation")
- NumberValue27 = Instance.new("NumberValue")
- Animation28 = Instance.new("Animation")
- NumberValue29 = Instance.new("NumberValue")
- StringValue30 = Instance.new("StringValue")
- Animation31 = Instance.new("Animation")
- StringValue32 = Instance.new("StringValue")
- Animation33 = Instance.new("Animation")
- Part34 = Instance.new("Part")
- Motor6D35 = Instance.new("Motor6D")
- Humanoid36 = Instance.new("Humanoid")
- Part37 = Instance.new("Part")
- ManualWeld38 = Instance.new("ManualWeld")
- ManualWeld39 = Instance.new("ManualWeld")
- Part40 = Instance.new("Part")
- ManualWeld41 = Instance.new("ManualWeld")
- Part42 = Instance.new("Part")
- Weld43 = Instance.new("Weld")
- Part44 = Instance.new("Part")
- Part45 = Instance.new("Part")
- Weld46 = Instance.new("Weld")
- Weld47 = Instance.new("Weld")
- Motor6D48 = Instance.new("Motor6D")
- Motor6D49 = Instance.new("Motor6D")
- Motor6D50 = Instance.new("Motor6D")
- Part51 = Instance.new("Part")
- SpecialMesh52 = Instance.new("SpecialMesh")
- Decal53 = Instance.new("Decal")
- Weld54 = Instance.new("Weld")
- Model55 = Instance.new("Model")
- Script56 = Instance.new("Script")
- LocalScript57 = Instance.new("LocalScript")
- ObjectValue58 = Instance.new("ObjectValue")
- Shirt59 = Instance.new("Shirt")
- Pants60 = Instance.new("Pants")
- Hat61 = Instance.new("Hat")
- Part62 = Instance.new("Part")
- SpecialMesh63 = Instance.new("SpecialMesh")
- Hat64 = Instance.new("Hat")
- Part65 = Instance.new("Part")
- SpecialMesh66 = Instance.new("SpecialMesh")
- Part67 = Instance.new("Part")
- Part68 = Instance.new("Part")
- Weld69 = Instance.new("Weld")
- SpecialMesh70 = Instance.new("SpecialMesh")
- Sound71 = Instance.new("Sound")
- Sound72 = Instance.new("Sound")
- Script73 = Instance.new("Script")
- Script74 = Instance.new("Script")
- StringValue75 = Instance.new("StringValue")
- Animation76 = Instance.new("Animation")
- StringValue77 = Instance.new("StringValue")
- Animation78 = Instance.new("Animation")
- StringValue79 = Instance.new("StringValue")
- Animation80 = Instance.new("Animation")
- StringValue81 = Instance.new("StringValue")
- Animation82 = Instance.new("Animation")
- StringValue83 = Instance.new("StringValue")
- Animation84 = Instance.new("Animation")
- NumberValue85 = Instance.new("NumberValue")
- Animation86 = Instance.new("Animation")
- NumberValue87 = Instance.new("NumberValue")
- StringValue88 = Instance.new("StringValue")
- Animation89 = Instance.new("Animation")
- StringValue90 = Instance.new("StringValue")
- Animation91 = Instance.new("Animation")
- Part92 = Instance.new("Part")
- Motor6D93 = Instance.new("Motor6D")
- Humanoid94 = Instance.new("Humanoid")
- Part95 = Instance.new("Part")
- ManualWeld96 = Instance.new("ManualWeld")
- ManualWeld97 = Instance.new("ManualWeld")
- Part98 = Instance.new("Part")
- ManualWeld99 = Instance.new("ManualWeld")
- Part100 = Instance.new("Part")
- Weld101 = Instance.new("Weld")
- Part102 = Instance.new("Part")
- Part103 = Instance.new("Part")
- Weld104 = Instance.new("Weld")
- Weld105 = Instance.new("Weld")
- Motor6D106 = Instance.new("Motor6D")
- Motor6D107 = Instance.new("Motor6D")
- Motor6D108 = Instance.new("Motor6D")
- Part109 = Instance.new("Part")
- Decal110 = Instance.new("Decal")
- SpecialMesh111 = Instance.new("SpecialMesh")
- Weld112 = Instance.new("Weld")
- Weld113 = Instance.new("Weld")
- Model0.Name = ""
- Model0.Parent = mas
- Model0.PrimaryPart = Part51
- Script1.Name = "Ragdoller"
- Script1.Parent = Model0
- table.insert(cors,sandbox(Script1,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, 65)
- 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))
- LocalScript2.Name = "CamAttach"
- LocalScript2.Parent = Script1
- LocalScript2.Disabled = true
- table.insert(cors,sandbox(LocalScript2,function()
- wait()
- game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
- end))
- ObjectValue3.Name = "CamPart"
- ObjectValue3.Parent = LocalScript2
- Shirt4.Name = "Blu"
- Shirt4.Parent = Model0
- Shirt4.ShirtTemplate = "http://www.roblox.com/asset/?id=28984380"
- Pants5.Name = "Blu1"
- Pants5.Parent = Model0
- Pants5.PantsTemplate = "http://www.roblox.com/asset?id=28984542"
- Hat6.Name = "BluetoothEarPiece"
- Hat6.Parent = Model0
- Hat6.AttachmentPos = Vector3.new(0.629999995, 0.300000012, 0.100000001)
- Part7.Name = "Handle"
- Part7.Parent = Hat6
- Part7.Rotation = Vector3.new(0, 90, 0)
- Part7.CanCollide = false
- Part7.Locked = true
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.Size = Vector3.new(1, 1, 1)
- Part7.CFrame = CFrame.new(-38.9493561, 4.70001602, 135.978348, 1.10270776e-06, -2.81836776e-11, 1, -2.32707343e-12, 1, 2.81836793e-11, -1, -2.32710444e-12, 1.10270787e-06)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Position = Vector3.new(-38.9493561, 4.70001602, 135.978348)
- Part7.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=29760978"
- SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=29760984"
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- Part9.Name = "Handle"
- Part9.Parent = Model0
- Part9.BrickColor = BrickColor.new("Bright yellow")
- Part9.Transparency = 1
- Part9.Rotation = Vector3.new(180, -5, 180)
- Part9.CanCollide = false
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.Size = Vector3.new(2, 1, 1)
- Part9.CFrame = CFrame.new(-40.4308014, 3.60001612, 134.48288, -0.996194839, -1.19076873e-08, -0.0871546417, -1.19527543e-08, 1, -4.77458784e-12, 0.0871546417, 1.0369815e-09, -0.996194839)
- Part9.RightSurface = Enum.SurfaceType.Hinge
- Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part9.Position = Vector3.new(-40.4308014, 3.60001612, 134.48288)
- Part9.Orientation = Vector3.new(0, -175, 0)
- Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part10.Parent = Part9
- Part10.BrickColor = BrickColor.new("Dark stone grey")
- Part10.Rotation = Vector3.new(-90, 0, 95)
- Part10.CanCollide = false
- Part10.FormFactor = Enum.FormFactor.Custom
- Part10.Size = Vector3.new(0.200000003, 0.799999595, 1)
- Part10.CFrame = CFrame.new(-40.8780441, 3.720016, 134.744141, -0.0871543512, -0.996194839, -1.10677654e-08, -1.07280662e-09, -1.19510641e-08, 1, -0.996194839, 0.0871544555, -4.87124785e-11)
- Part10.BackSurface = Enum.SurfaceType.Weld
- Part10.BottomSurface = Enum.SurfaceType.Weld
- Part10.FrontSurface = Enum.SurfaceType.Weld
- Part10.LeftSurface = Enum.SurfaceType.Weld
- Part10.RightSurface = Enum.SurfaceType.Weld
- Part10.TopSurface = Enum.SurfaceType.Weld
- Part10.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part10.Position = Vector3.new(-40.8780441, 3.720016, 134.744141)
- Part10.Orientation = Vector3.new(-90, 95, 0)
- Part10.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Weld11.Parent = Part10
- Weld11.C0 = CFrame.new(28.2336063, 5.29926586, -3.78005195, 0.087155439, -1.06803189e-09, 0.99619472, 0.99619472, -1.19231904e-08, -0.0871555433, 1.10395817e-08, 1, 4.63730443e-11)
- Weld11.C1 = CFrame.new(5.76756954, -3.66005206, 28.0123272, 0.99619472, -1.19248806e-08, -0.087155737, 1.18795027e-08, 1, -1.03932174e-09, 0.087155737, 0, 0.99619472)
- Weld11.Part0 = Part10
- Weld11.Part1 = Part9
- SpecialMesh12.Parent = Part10
- SpecialMesh12.MeshId = "http://www.roblox.com/asset/?id=72012671"
- SpecialMesh12.Scale = Vector3.new(1, 1.29999995, 1.29999995)
- SpecialMesh12.TextureId = "http://www.roblox.com/asset/?id=168091402"
- SpecialMesh12.VertexColor = Vector3.new(0.899999976, 0.899999976, 1)
- SpecialMesh12.MeshType = Enum.MeshType.FileMesh
- SpecialMesh12.Scale = Vector3.new(1, 1.29999995, 1.29999995)
- Sound13.Name = "Fire"
- Sound13.Parent = Part9
- Sound13.SoundId = "http://roblox.com/asset/?id=10209859"
- Sound13.Volume = 1
- Sound14.Name = "Reload"
- Sound14.Parent = Part9
- Sound14.SoundId = "http://www.roblox.com/asset/?id=2691591"
- Sound14.Volume = 1
- Script15.Name = "Control"
- Script15.Parent = Model0
- table.insert(cors,sandbox(Script15,function()
- wait(.1)
- local ammo=3
- local w=.14
- local r=false
- local t=script.Parent
- Spawn(function()
- local c=t:Clone()
- wait(1)
- t.Humanoid.Died:wait()
- wait(65)
- c.Parent=workspace
- c:MakeJoints()
- t:Destroy()
- end)
- local cf={CFrame.new(.8,.5,.4)*CFrame.Angles(math.rad(270),math.rad(40),0),CFrame.new(-1.2,0.5,0.4)*CFrame.Angles(math.rad(270),math.rad(-5),0)}
- local c=LoadLibrary'RbxUtility'.Create
- local b1=c'Part'{TopSurface=0;BottomSurface=0;Anchored=true;CanCollide=false;BrickColor=BrickColor.new("Cool yellow");Size=Vector3.new(.2,.2,1);c'SpecialMesh'{MeshType=6;Scale=Vector3.new(.2,.2,1)}};Transparency=.5
- local b2=b1:Clone()
- b1.Name,b2.Name='1','2'
- local mov=c'Part'{Transparency=1;CanCollide=false;Parent=t;Anchored=true}
- local h=t:WaitForChild'Handle'
- local function reload(boo)
- if(boo and ammo~=30)or ammo==0 then
- r=true
- if w then
- w=.03
- end
- h.Reload:Play()
- wait(3)
- ammo=30
- if w then
- w=.14
- end
- r=false
- elseif boo then
- wait(.1)
- end
- end
- local function near()
- local dis,pl=300,nil
- for _,v in ipairs(game.Players:GetPlayers())do
- if v.Character and v.Character:FindFirstChild'Humanoid'and v:DistanceFromCharacter(h.Position)<dis then
- dis,pl=v:DistanceFromCharacter(h.Position),v
- end
- end
- if pl then
- return pl.Character:GetModelCFrame(),dis,CFrame.new(pl.Character.Humanoid.WalkToPoint).lookVector
- else
- return nil
- end
- end
- Spawn(function()
- while true do
- t.Humanoid.Jump=true
- while not w do wait(.1)end
- for i=1,math.random(4,9)do
- wait(w)
- end
- end
- end)
- Spawn(function()
- while wait(math.random(2,7)/10)do
- local n=near()
- if n and math.random(1,3)==2 or not n then
- mov.CFrame=t.Torso.CFrame+t.Torso.CFrame.lookVector*Vector3.new(math.random(-25,25),0,math.random(-25,25))
- else
- mov.CFrame=n+Vector3.new((math.random(1,2)==1 and 1 or -1)*math.random(25,50),0,(math.random(1,2)==1 and 1 or -1)*math.random(25,50))
- end
- wait(.1)
- t.Humanoid:MoveTo(mov.Position,mov)
- end
- end)
- while true do
- local n,mag,hum=near()
- if n then
- n=n.p
- if not r then
- w=.14
- local dir=h.Position-n
- local tst,_=workspace:FindPartOnRay(Ray.new(t.Torso.Position,(n-t.Torso.Position).Unit*999),t)
- local aim=n+Vector3.new(math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015))*(2+math.random())+hum
- if tst and tst.Parent and game.Players:GetPlayerFromCharacter(tst.Parent)then
- wait(.08)
- h.Fire:Play()
- local par,pos=workspace:FindPartOnRay(Ray.new(h.Position,(aim-h.Position).Unit*999),t)
- if par then
- local h=par.Parent:FindFirstChild'Humanoid'or par.Parent.Parent:FindFirstChild'Humanoid'
- if h and h.Health-10>0 then
- h.Health=h.Health-10
- elseif h then
- h.Health=0
- h.Parent:BreakJoints()
- end
- end
- ammo=ammo-1
- mag=(h.Position-pos).magnitude
- b1.Parent,b2.Parent=t,t
- b1.CFrame,b2.CFrame=CFrame.new(h.Position:Lerp(pos,.375),pos),CFrame.new(pos:Lerp(h.Position,.125),h.Position)
- b1.Mesh.Scale,b2.Mesh.Scale=Vector3.new(.2,.2,mag*.75),Vector3.new(.2,.2,mag/4)
- Delay(.03,function()b1.Parent=nil wait(.03)b2.Parent=nil end)
- end
- wait(.05)
- if ammo==0 then
- reload()
- end
- end
- else
- reload(true)
- w=false
- end
- end
- end))
- Script16.Name = "Animate"
- Script16.Parent = Model0
- table.insert(cors,sandbox(Script16,function()
- wait(5)
- 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 Torso = waitForChild(Figure, "Torso")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local oldAnimTrack = nil
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=125749145", 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=125750759", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=125750867", 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 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", 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, laugh = false, cheer = false}
- math.randomseed(tick())
- -- Setup animation objects
- for name, fileList in pairs(animNames) do
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- 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
- -- 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
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.175
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.2
- 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 = ""
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (oldAnimTrack ~= nil) then
- oldAnimTrack:Stop()
- oldAnimTrack:Destroy()
- oldAnimTrack = nil
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopAllAnimations()
- playAnimation(repeatAnim, 0.0, Humanoid)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- if (animName ~= currentAnim) then
- if (oldAnimTrack ~= nil) then
- oldAnimTrack:Stop()
- oldAnimTrack:Destroy()
- end
- 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
- -- load it to the humanoid; get AnimationTrack
- oldAnimTrack = currentAnimTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolOldAnimTrack = nil
- local toolAnimTrack = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopToolAnimations()
- playToolAnimation(repeatAnim, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- if (animName ~= toolAnimName) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- 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
- -- load it to the humanoid; get AnimationTrack
- toolOldAnimTrack = toolAnimTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed>0 then
- playAnimation("walk", 0.1, Humanoid)
- 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()
- playAnimation("climb", 0.1, Humanoid)
- 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()
- 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
- stopAllAnimations()
- moveSit()
- 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)
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- desiredAngle = amplitude * math.sin(time * frequency)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- 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"
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- main program
- local runService = game:service("RunService");
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue17.Name = "walk"
- StringValue17.Parent = Script16
- Animation18.Name = "WalkAnim"
- Animation18.Parent = StringValue17
- Animation18.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue19.Name = "toolnone"
- StringValue19.Parent = Script16
- Animation20.Name = "ToolNoneAnim"
- Animation20.Parent = StringValue19
- Animation20.AnimationId = "http://www.roblox.com/asset/?id=125750867"
- StringValue21.Name = "run"
- StringValue21.Parent = Script16
- Animation22.Name = "RunAnim"
- Animation22.Parent = StringValue21
- Animation22.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue23.Name = "jump"
- StringValue23.Parent = Script16
- Animation24.Name = "JumpAnim"
- Animation24.Parent = StringValue23
- Animation24.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue25.Name = "idle"
- StringValue25.Parent = Script16
- Animation26.Name = "Animation2"
- Animation26.Parent = StringValue25
- Animation26.AnimationId = "http://www.roblox.com/asset/?id=125750618"
- NumberValue27.Name = "Weight"
- NumberValue27.Parent = Animation26
- NumberValue27.Value = 1
- Animation28.Name = "Animation1"
- Animation28.Parent = StringValue25
- Animation28.AnimationId = "http://www.roblox.com/asset/?id=125750544"
- NumberValue29.Name = "Weight"
- NumberValue29.Parent = Animation28
- NumberValue29.Value = 9
- StringValue30.Name = "fall"
- StringValue30.Parent = Script16
- Animation31.Name = "FallAnim"
- Animation31.Parent = StringValue30
- Animation31.AnimationId = "http://www.roblox.com/asset/?id=125750759"
- StringValue32.Name = "climb"
- StringValue32.Parent = Script16
- Animation33.Name = "ClimbAnim"
- Animation33.Parent = StringValue32
- Animation33.AnimationId = "http://www.roblox.com/asset/?id=125750800"
- Part34.Name = "HumanoidRootPart"
- Part34.Parent = Model0
- Part34.BrickColor = BrickColor.new("Bright yellow")
- Part34.Transparency = 1
- Part34.Rotation = Vector3.new(0, 90, 0)
- Part34.FormFactor = Enum.FormFactor.Symmetric
- Part34.Size = Vector3.new(2, 2, 1)
- Part34.CFrame = CFrame.new(-38.8493538, 3.00001597, 135.348343, 1.10270776e-06, -2.81836776e-11, 1, -2.32707343e-12, 1, 2.81836793e-11, -1, -2.32710444e-12, 1.10270787e-06)
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part34.Position = Vector3.new(-38.8493538, 3.00001597, 135.348343)
- Part34.Orientation = Vector3.new(0, 90, 0)
- Part34.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Motor6D35.Name = "RootJoint"
- Motor6D35.Parent = Part34
- Motor6D35.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D35.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D35.Part0 = Part34
- Motor6D35.Part1 = Part45
- Motor6D35.MaxVelocity = 0.10000000149012
- Humanoid36.Parent = Model0
- Humanoid36.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid36.RightLeg = Part37
- Humanoid36.LeftLeg = Part40
- Humanoid36.Torso = Part34
- Humanoid36.WalkSpeed = 8
- Part37.Name = "Right Leg"
- Part37.Parent = Model0
- Part37.BrickColor = BrickColor.new("Pastel brown")
- Part37.Rotation = Vector3.new(0, 90, 0)
- Part37.CanCollide = false
- Part37.FormFactor = Enum.FormFactor.Symmetric
- Part37.Size = Vector3.new(1, 2, 1)
- Part37.CFrame = CFrame.new(-38.8493538, 1.00001597, 134.848343, 1.10270776e-06, -2.81836776e-11, 1, -2.32707343e-12, 1, 2.81836793e-11, -1, -2.32710444e-12, 1.10270787e-06)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.Color = Color3.new(1, 0.8, 0.6)
- Part37.Position = Vector3.new(-38.8493538, 1.00001597, 134.848343)
- Part37.Orientation = Vector3.new(0, 90, 0)
- Part37.Color = Color3.new(1, 0.8, 0.6)
- ManualWeld38.Name = "Right Leg Terrain Joint"
- ManualWeld38.Parent = Part37
- ManualWeld38.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld38.Part1 = Part37
- ManualWeld39.Name = "Right Leg Terrain Joint"
- ManualWeld39.Parent = Part37
- ManualWeld39.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld39.Part1 = Part37
- Part40.Name = "Left Leg"
- Part40.Parent = Model0
- Part40.BrickColor = BrickColor.new("Pastel brown")
- Part40.Rotation = Vector3.new(0, 90, 0)
- Part40.CanCollide = false
- Part40.FormFactor = Enum.FormFactor.Symmetric
- Part40.Size = Vector3.new(1, 2, 1)
- Part40.CFrame = CFrame.new(-38.8493538, 1.00001597, 135.848343, 1.10270776e-06, -2.81836776e-11, 1, -2.32707343e-12, 1, 2.81836793e-11, -1, -2.32710444e-12, 1.10270787e-06)
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.Color = Color3.new(1, 0.8, 0.6)
- Part40.Position = Vector3.new(-38.8493538, 1.00001597, 135.848343)
- Part40.Orientation = Vector3.new(0, 90, 0)
- Part40.Color = Color3.new(1, 0.8, 0.6)
- ManualWeld41.Name = "Left Leg Terrain Joint"
- ManualWeld41.Parent = Part40
- ManualWeld41.C1 = CFrame.new(49.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld41.Part1 = Part40
- Part42.Name = "Right Arm"
- Part42.Parent = Model0
- Part42.BrickColor = BrickColor.new("Pastel brown")
- Part42.Rotation = Vector3.new(90, 0, -95)
- Part42.CanCollide = false
- Part42.FormFactor = Enum.FormFactor.Symmetric
- Part42.Size = Vector3.new(1, 2, 1)
- Part42.CFrame = CFrame.new(-39.4520378, 3.40001607, 134.196487, -0.0871546417, 0.996194839, 1.19076873e-08, -4.77458784e-12, 1.19527543e-08, -1, -0.996194839, -0.0871546417, -1.0369815e-09)
- Part42.Color = Color3.new(1, 0.8, 0.6)
- Part42.Position = Vector3.new(-39.4520378, 3.40001607, 134.196487)
- Part42.Orientation = Vector3.new(90, 95, 0)
- Part42.Color = Color3.new(1, 0.8, 0.6)
- Weld43.Name = "RightGrip"
- Weld43.Parent = Part42
- Weld43.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld43.C1 = CFrame.new(0, -0.200000003, 0.200000003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Weld43.Part0 = Part42
- Weld43.Part1 = Part9
- Part44.Name = "Left Arm"
- Part44.Parent = Model0
- Part44.BrickColor = BrickColor.new("Pastel brown")
- Part44.Rotation = Vector3.new(90, 0, -50)
- Part44.CanCollide = false
- Part44.FormFactor = Enum.FormFactor.Symmetric
- Part44.Size = Vector3.new(1, 2, 1)
- Part44.CFrame = CFrame.new(-39.7466049, 3.40001607, 135.639786, 0.64278841, 0.766043723, 9.16316356e-09, 1.6333478e-11, 1.19479662e-08, -1, -0.766043723, 0.64278841, 7.66750219e-09)
- Part44.Color = Color3.new(1, 0.8, 0.6)
- Part44.Position = Vector3.new(-39.7466049, 3.40001607, 135.639786)
- Part44.Orientation = Vector3.new(90, 50, 0)
- Part44.Color = Color3.new(1, 0.8, 0.6)
- Part45.Name = "Torso"
- Part45.Parent = Model0
- Part45.BrickColor = BrickColor.new("Pastel brown")
- Part45.Rotation = Vector3.new(0, 90, 0)
- Part45.FormFactor = Enum.FormFactor.Symmetric
- Part45.Size = Vector3.new(2, 2, 1)
- Part45.CFrame = CFrame.new(-38.8493538, 3.00001597, 135.348343, 1.10270776e-06, -2.81836776e-11, 1, -2.32707343e-12, 1, 2.81836793e-11, -1, -2.32710444e-12, 1.10270787e-06)
- Part45.LeftSurface = Enum.SurfaceType.Weld
- Part45.RightSurface = Enum.SurfaceType.Weld
- Part45.Color = Color3.new(1, 0.8, 0.6)
- Part45.Position = Vector3.new(-38.8493538, 3.00001597, 135.348343)
- Part45.Orientation = Vector3.new(0, 90, 0)
- Part45.Color = Color3.new(1, 0.8, 0.6)
- Weld46.Parent = Part45
- Weld46.C1 = CFrame.new(-1.20000005, 0.5, 0.400000006, 0.99619472, 0, -0.087155737, 0.087155737, 1.19248806e-08, 0.99619472, 1.03932174e-09, -1, 1.18795027e-08)
- Weld46.Part0 = Part45
- Weld46.Part1 = Part42
- Weld47.Parent = Part45
- Weld47.C1 = CFrame.new(0.800000012, 0.5, 0.400000006, 0.766044438, 0, 0.642787576, -0.642787576, 1.19248806e-08, 0.766044438, -7.66516539e-09, -1, 9.13498877e-09)
- Weld47.Part0 = Part45
- Weld47.Part1 = Part44
- Motor6D48.Name = "Neck"
- Motor6D48.Parent = Part45
- Motor6D48.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D48.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D48.Part0 = Part45
- Motor6D48.Part1 = Part51
- Motor6D48.MaxVelocity = 0.10000000149012
- Motor6D49.Name = "Left Hip"
- Motor6D49.Parent = Part45
- Motor6D49.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D49.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D49.Part0 = Part45
- Motor6D49.Part1 = Part40
- Motor6D49.MaxVelocity = 0.10000000149012
- Motor6D50.Name = "Right Hip"
- Motor6D50.Parent = Part45
- Motor6D50.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D50.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D50.Part0 = Part45
- Motor6D50.Part1 = Part37
- Motor6D50.MaxVelocity = 0.10000000149012
- Part51.Name = "Head"
- Part51.Parent = Model0
- Part51.BrickColor = BrickColor.new("Pastel brown")
- Part51.Rotation = Vector3.new(0, 90, 0)
- Part51.FormFactor = Enum.FormFactor.Symmetric
- Part51.Size = Vector3.new(2, 1, 1)
- Part51.CFrame = CFrame.new(-38.8493538, 4.50001621, 135.348343, 1.10270776e-06, -2.81836776e-11, 1, -2.32707343e-12, 1, 2.81836793e-11, -1, -2.32710444e-12, 1.10270787e-06)
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part51.Color = Color3.new(1, 0.8, 0.6)
- Part51.Position = Vector3.new(-38.8493538, 4.50001621, 135.348343)
- Part51.Orientation = Vector3.new(0, 90, 0)
- Part51.Color = Color3.new(1, 0.8, 0.6)
- SpecialMesh52.Parent = Part51
- SpecialMesh52.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh52.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal53.Parent = Part51
- Decal53.Texture = "http://www.roblox.com/asset/?id=383101611"
- Weld54.Name = "HeadWeld"
- Weld54.Parent = Part51
- Weld54.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld54.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld54.Part0 = Part51
- Weld54.Part1 = Part7
- Model55.Name = "Jacob"
- Model55.Parent = mas
- Model55.PrimaryPart = Part109
- Script56.Name = "Ragdoller"
- Script56.Parent = Model55
- table.insert(cors,sandbox(Script56,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, 65)
- 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))
- LocalScript57.Name = "CamAttach"
- LocalScript57.Parent = Script56
- LocalScript57.Disabled = true
- table.insert(cors,sandbox(LocalScript57,function()
- wait()
- game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
- end))
- ObjectValue58.Name = "CamPart"
- ObjectValue58.Parent = LocalScript57
- Shirt59.Name = "Blu"
- Shirt59.Parent = Model55
- Shirt59.ShirtTemplate = "http://www.roblox.com/asset/?id=28984380"
- Pants60.Name = "Blu1"
- Pants60.Parent = Model55
- Pants60.PantsTemplate = "http://www.roblox.com/asset?id=28984542"
- Hat61.Name = "BrownCharmerHair"
- Hat61.Parent = Model55
- Hat61.AttachmentPos = Vector3.new(0, 0.075000003, 0.0500000007)
- Part62.Name = "Handle"
- Part62.Parent = Hat61
- Part62.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part62.CanCollide = false
- Part62.Locked = true
- Part62.FormFactor = Enum.FormFactor.Custom
- Part62.Size = Vector3.new(1.19999957, 1, 1.5999999)
- Part62.CFrame = CFrame.new(-39.3365135, 4.9250145, 131.948425, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part62.BottomSurface = Enum.SurfaceType.Smooth
- Part62.TopSurface = Enum.SurfaceType.Smooth
- Part62.Position = Vector3.new(-39.3365135, 4.9250145, 131.948425)
- Part62.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh63.Parent = Part62
- SpecialMesh63.MeshId = "http://www.roblox.com/asset/?id=74878559"
- SpecialMesh63.Scale = Vector3.new(1.04999995, 1, 1.04999995)
- SpecialMesh63.TextureId = "http://www.roblox.com/asset/?id=382682502 "
- SpecialMesh63.MeshType = Enum.MeshType.FileMesh
- SpecialMesh63.Scale = Vector3.new(1.04999995, 1, 1.04999995)
- Hat64.Name = "BluetoothEarPiece"
- Hat64.Parent = Model55
- Hat64.AttachmentPos = Vector3.new(0.629999995, 0.300000012, 0.100000001)
- Part65.Name = "Handle"
- Part65.Parent = Hat64
- Part65.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part65.CanCollide = false
- Part65.Locked = true
- Part65.FormFactor = Enum.FormFactor.Symmetric
- Part65.Size = Vector3.new(1, 1, 1)
- Part65.CFrame = CFrame.new(-39.3865128, 4.70001411, 132.578415, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part65.BottomSurface = Enum.SurfaceType.Smooth
- Part65.TopSurface = Enum.SurfaceType.Smooth
- Part65.Position = Vector3.new(-39.3865128, 4.70001411, 132.578415)
- Part65.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh66.Parent = Part65
- SpecialMesh66.MeshId = "http://www.roblox.com/asset/?id=29760978"
- SpecialMesh66.TextureId = "http://www.roblox.com/asset/?id=29760984"
- SpecialMesh66.MeshType = Enum.MeshType.FileMesh
- Part67.Name = "Handle"
- Part67.Parent = Model55
- Part67.BrickColor = BrickColor.new("Bright yellow")
- Part67.Transparency = 1
- Part67.Rotation = Vector3.new(-180, -5, 180)
- Part67.CanCollide = false
- Part67.FormFactor = Enum.FormFactor.Symmetric
- Part67.Size = Vector3.new(2, 1, 1)
- Part67.CFrame = CFrame.new(-40.8679504, 3.60001421, 131.082977, -0.996186912, -1.18807311e-08, -0.0871551707, -1.19262484e-08, 1, 1.19634988e-12, 0.0871551707, 1.04056197e-09, -0.996186912)
- Part67.RightSurface = Enum.SurfaceType.Hinge
- Part67.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part67.Position = Vector3.new(-40.8679504, 3.60001421, 131.082977)
- Part67.Orientation = Vector3.new(0, -175, 0)
- Part67.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part68.Parent = Part67
- Part68.BrickColor = BrickColor.new("Dark stone grey")
- Part68.Rotation = Vector3.new(-90, 0, 95)
- Part68.CanCollide = false
- Part68.FormFactor = Enum.FormFactor.Custom
- Part68.Size = Vector3.new(0.200000003, 0.799999595, 1)
- Part68.CFrame = CFrame.new(-41.3151894, 3.7200141, 131.344223, -0.0871548802, -0.996186912, -1.10408163e-08, -1.06683562e-09, -1.19245582e-08, 1, -0.996186912, 0.0871549845, -4.51245707e-11)
- Part68.BackSurface = Enum.SurfaceType.Weld
- Part68.BottomSurface = Enum.SurfaceType.Weld
- Part68.FrontSurface = Enum.SurfaceType.Weld
- Part68.LeftSurface = Enum.SurfaceType.Weld
- Part68.RightSurface = Enum.SurfaceType.Weld
- Part68.TopSurface = Enum.SurfaceType.Weld
- Part68.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part68.Position = Vector3.new(-41.3151894, 3.7200141, 131.344223)
- Part68.Orientation = Vector3.new(-90, 95, 0)
- Part68.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Weld69.Parent = Part68
- Weld69.C0 = CFrame.new(28.2336063, 5.29926586, -3.78005195, 0.087155439, -1.06803189e-09, 0.99619472, 0.99619472, -1.19231904e-08, -0.0871555433, 1.10395817e-08, 1, 4.63730443e-11)
- Weld69.C1 = CFrame.new(5.76756954, -3.66005206, 28.0123272, 0.99619472, -1.19248806e-08, -0.087155737, 1.18795027e-08, 1, -1.03932174e-09, 0.087155737, 0, 0.99619472)
- Weld69.Part0 = Part68
- Weld69.Part1 = Part67
- SpecialMesh70.Parent = Part68
- SpecialMesh70.MeshId = "http://www.roblox.com/asset/?id=72012671"
- SpecialMesh70.Scale = Vector3.new(1, 1.29999995, 1.29999995)
- SpecialMesh70.TextureId = "http://www.roblox.com/asset/?id=168091402"
- SpecialMesh70.VertexColor = Vector3.new(0.899999976, 0.899999976, 1)
- SpecialMesh70.MeshType = Enum.MeshType.FileMesh
- SpecialMesh70.Scale = Vector3.new(1, 1.29999995, 1.29999995)
- Sound71.Name = "Fire"
- Sound71.Parent = Part67
- Sound71.SoundId = "http://roblox.com/asset/?id=10209859"
- Sound71.Volume = 1
- Sound72.Name = "Reload"
- Sound72.Parent = Part67
- Sound72.SoundId = "http://www.roblox.com/asset/?id=2691591"
- Sound72.Volume = 1
- Script73.Name = "Control"
- Script73.Parent = Model55
- table.insert(cors,sandbox(Script73,function()
- wait(.1)
- local ammo=3
- local w=.14
- local r=false
- local t=script.Parent
- Spawn(function()
- local c=t:Clone()
- wait(1)
- t.Humanoid.Died:wait()
- wait(65)
- c.Parent=workspace
- c:MakeJoints()
- t:Destroy()
- end)
- local cf={CFrame.new(.8,.5,.4)*CFrame.Angles(math.rad(270),math.rad(40),0),CFrame.new(-1.2,0.5,0.4)*CFrame.Angles(math.rad(270),math.rad(-5),0)}
- local c=LoadLibrary'RbxUtility'.Create
- local b1=c'Part'{TopSurface=0;BottomSurface=0;Anchored=true;CanCollide=false;BrickColor=BrickColor.new("Cool yellow");Size=Vector3.new(.2,.2,1);c'SpecialMesh'{MeshType=6;Scale=Vector3.new(.2,.2,1)}};Transparency=.5
- local b2=b1:Clone()
- b1.Name,b2.Name='1','2'
- local mov=c'Part'{Transparency=1;CanCollide=false;Parent=t;Anchored=true}
- local h=t:WaitForChild'Handle'
- local function reload(boo)
- if(boo and ammo~=30)or ammo==0 then
- r=true
- if w then
- w=.03
- end
- h.Reload:Play()
- wait(3)
- ammo=30
- if w then
- w=.14
- end
- r=false
- elseif boo then
- wait(.1)
- end
- end
- local function near()
- local dis,pl=300,nil
- for _,v in ipairs(game.Players:GetPlayers())do
- if v.Character and v.Character:FindFirstChild'Humanoid'and v:DistanceFromCharacter(h.Position)<dis then
- dis,pl=v:DistanceFromCharacter(h.Position),v
- end
- end
- if pl then
- return pl.Character:GetModelCFrame(),dis,CFrame.new(pl.Character.Humanoid.WalkToPoint).lookVector
- else
- return nil
- end
- end
- Spawn(function()
- while true do
- t.Humanoid.Jump=true
- while not w do wait(.1)end
- for i=1,math.random(4,9)do
- wait(w)
- end
- end
- end)
- Spawn(function()
- while wait(math.random(2,7)/10)do
- local n=near()
- if n and math.random(1,3)==2 or not n then
- mov.CFrame=t.Torso.CFrame+t.Torso.CFrame.lookVector*Vector3.new(math.random(-25,25),0,math.random(-25,25))
- else
- mov.CFrame=n+Vector3.new((math.random(1,2)==1 and 1 or -1)*math.random(25,50),0,(math.random(1,2)==1 and 1 or -1)*math.random(25,50))
- end
- wait(.1)
- t.Humanoid:MoveTo(mov.Position,mov)
- end
- end)
- while true do
- local n,mag,hum=near()
- if n then
- n=n.p
- if not r then
- w=.14
- local dir=h.Position-n
- local tst,_=workspace:FindPartOnRay(Ray.new(t.Torso.Position,(n-t.Torso.Position).Unit*999),t)
- local aim=n+Vector3.new(math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015))*(2+math.random())+hum
- if tst and tst.Parent and game.Players:GetPlayerFromCharacter(tst.Parent)then
- wait(.08)
- h.Fire:Play()
- local par,pos=workspace:FindPartOnRay(Ray.new(h.Position,(aim-h.Position).Unit*999),t)
- if par then
- local h=par.Parent:FindFirstChild'Humanoid'or par.Parent.Parent:FindFirstChild'Humanoid'
- if h and h.Health-10>0 then
- h.Health=h.Health-10
- elseif h then
- h.Health=0
- h.Parent:BreakJoints()
- end
- end
- ammo=ammo-1
- mag=(h.Position-pos).magnitude
- b1.Parent,b2.Parent=t,t
- b1.CFrame,b2.CFrame=CFrame.new(h.Position:Lerp(pos,.375),pos),CFrame.new(pos:Lerp(h.Position,.125),h.Position)
- b1.Mesh.Scale,b2.Mesh.Scale=Vector3.new(.2,.2,mag*.75),Vector3.new(.2,.2,mag/4)
- Delay(.03,function()b1.Parent=nil wait(.03)b2.Parent=nil end)
- end
- wait(.05)
- if ammo==0 then
- reload()
- end
- end
- else
- reload(true)
- w=false
- end
- end
- end))
- Script74.Name = "Animate"
- Script74.Parent = Model55
- table.insert(cors,sandbox(Script74,function()
- wait(5)
- 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 Torso = waitForChild(Figure, "Torso")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local oldAnimTrack = nil
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=125749145", 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=125750759", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=125750867", 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 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", 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, laugh = false, cheer = false}
- math.randomseed(tick())
- -- Setup animation objects
- for name, fileList in pairs(animNames) do
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- 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
- -- 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
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.175
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.2
- 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 = ""
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (oldAnimTrack ~= nil) then
- oldAnimTrack:Stop()
- oldAnimTrack:Destroy()
- oldAnimTrack = nil
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopAllAnimations()
- playAnimation(repeatAnim, 0.0, Humanoid)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- if (animName ~= currentAnim) then
- if (oldAnimTrack ~= nil) then
- oldAnimTrack:Stop()
- oldAnimTrack:Destroy()
- end
- 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
- -- load it to the humanoid; get AnimationTrack
- oldAnimTrack = currentAnimTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolOldAnimTrack = nil
- local toolAnimTrack = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = stopToolAnimations()
- playToolAnimation(repeatAnim, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- if (animName ~= toolAnimName) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- 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
- -- load it to the humanoid; get AnimationTrack
- toolOldAnimTrack = toolAnimTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed>0 then
- playAnimation("walk", 0.1, Humanoid)
- 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()
- playAnimation("climb", 0.1, Humanoid)
- 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()
- 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
- stopAllAnimations()
- moveSit()
- 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)
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- desiredAngle = amplitude * math.sin(time * frequency)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- 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"
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- main program
- local runService = game:service("RunService");
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue75.Name = "walk"
- StringValue75.Parent = Script74
- Animation76.Name = "WalkAnim"
- Animation76.Parent = StringValue75
- Animation76.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue77.Name = "toolnone"
- StringValue77.Parent = Script74
- Animation78.Name = "ToolNoneAnim"
- Animation78.Parent = StringValue77
- Animation78.AnimationId = "http://www.roblox.com/asset/?id=125750867"
- StringValue79.Name = "run"
- StringValue79.Parent = Script74
- Animation80.Name = "RunAnim"
- Animation80.Parent = StringValue79
- Animation80.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue81.Name = "jump"
- StringValue81.Parent = Script74
- Animation82.Name = "JumpAnim"
- Animation82.Parent = StringValue81
- Animation82.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue83.Name = "idle"
- StringValue83.Parent = Script74
- Animation84.Name = "Animation2"
- Animation84.Parent = StringValue83
- Animation84.AnimationId = "http://www.roblox.com/asset/?id=125750618"
- NumberValue85.Name = "Weight"
- NumberValue85.Parent = Animation84
- NumberValue85.Value = 1
- Animation86.Name = "Animation1"
- Animation86.Parent = StringValue83
- Animation86.AnimationId = "http://www.roblox.com/asset/?id=125750544"
- NumberValue87.Name = "Weight"
- NumberValue87.Parent = Animation86
- NumberValue87.Value = 9
- StringValue88.Name = "fall"
- StringValue88.Parent = Script74
- Animation89.Name = "FallAnim"
- Animation89.Parent = StringValue88
- Animation89.AnimationId = "http://www.roblox.com/asset/?id=125750759"
- StringValue90.Name = "climb"
- StringValue90.Parent = Script74
- Animation91.Name = "ClimbAnim"
- Animation91.Parent = StringValue90
- Animation91.AnimationId = "http://www.roblox.com/asset/?id=125750800"
- Part92.Name = "HumanoidRootPart"
- Part92.Parent = Model55
- Part92.BrickColor = BrickColor.new("Bright yellow")
- Part92.Transparency = 1
- Part92.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part92.FormFactor = Enum.FormFactor.Symmetric
- Part92.Size = Vector3.new(2, 2, 1)
- Part92.CFrame = CFrame.new(-39.2865143, 3.00001407, 131.948425, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part92.BottomSurface = Enum.SurfaceType.Smooth
- Part92.TopSurface = Enum.SurfaceType.Smooth
- Part92.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part92.Position = Vector3.new(-39.2865143, 3.00001407, 131.948425)
- Part92.Orientation = Vector3.new(0, 90, 0)
- Part92.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Motor6D93.Name = "RootJoint"
- Motor6D93.Parent = Part92
- Motor6D93.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D93.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D93.Part0 = Part92
- Motor6D93.Part1 = Part103
- Motor6D93.MaxVelocity = 0.10000000149012
- Humanoid94.Parent = Model55
- Humanoid94.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid94.RightLeg = Part95
- Humanoid94.LeftLeg = Part98
- Humanoid94.Torso = Part92
- Humanoid94.WalkSpeed = 8
- Part95.Name = "Right Leg"
- Part95.Parent = Model55
- Part95.BrickColor = BrickColor.new("Pastel brown")
- Part95.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part95.CanCollide = false
- Part95.FormFactor = Enum.FormFactor.Symmetric
- Part95.Size = Vector3.new(1, 2, 1)
- Part95.CFrame = CFrame.new(-39.2865143, 1.00001407, 131.448425, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part95.BottomSurface = Enum.SurfaceType.Smooth
- Part95.Color = Color3.new(1, 0.8, 0.6)
- Part95.Position = Vector3.new(-39.2865143, 1.00001407, 131.448425)
- Part95.Orientation = Vector3.new(0, 90, 0)
- Part95.Color = Color3.new(1, 0.8, 0.6)
- ManualWeld96.Name = "Right Leg Terrain Joint"
- ManualWeld96.Parent = Part95
- ManualWeld96.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld96.Part1 = Part95
- ManualWeld97.Name = "Right Leg Terrain Joint"
- ManualWeld97.Parent = Part95
- ManualWeld97.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld97.Part1 = Part95
- Part98.Name = "Left Leg"
- Part98.Parent = Model55
- Part98.BrickColor = BrickColor.new("Pastel brown")
- Part98.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part98.CanCollide = false
- Part98.FormFactor = Enum.FormFactor.Symmetric
- Part98.Size = Vector3.new(1, 2, 1)
- Part98.CFrame = CFrame.new(-39.2865143, 1.00001407, 132.448425, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part98.BottomSurface = Enum.SurfaceType.Smooth
- Part98.Color = Color3.new(1, 0.8, 0.6)
- Part98.Position = Vector3.new(-39.2865143, 1.00001407, 132.448425)
- Part98.Orientation = Vector3.new(0, 90, 0)
- Part98.Color = Color3.new(1, 0.8, 0.6)
- ManualWeld99.Name = "Left Leg Terrain Joint"
- ManualWeld99.Parent = Part98
- ManualWeld99.C1 = CFrame.new(49.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld99.Part1 = Part98
- Part100.Name = "Right Arm"
- Part100.Parent = Model55
- Part100.BrickColor = BrickColor.new("Pastel brown")
- Part100.Rotation = Vector3.new(90, 0, -95)
- Part100.CanCollide = false
- Part100.FormFactor = Enum.FormFactor.Symmetric
- Part100.Size = Vector3.new(1, 2, 1)
- Part100.CFrame = CFrame.new(-39.8891945, 3.40001416, 130.796585, -0.0871551707, 0.996186912, 1.18807311e-08, 1.19634988e-12, 1.19262484e-08, -1, -0.996186912, -0.0871551707, -1.04056197e-09)
- Part100.Color = Color3.new(1, 0.8, 0.6)
- Part100.Position = Vector3.new(-39.8891945, 3.40001416, 130.796585)
- Part100.Orientation = Vector3.new(90, 95, 0)
- Part100.Color = Color3.new(1, 0.8, 0.6)
- Weld101.Name = "RightGrip"
- Weld101.Parent = Part100
- Weld101.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld101.C1 = CFrame.new(0, -0.200000003, 0.200000003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Weld101.Part0 = Part100
- Weld101.Part1 = Part67
- Part102.Name = "Left Arm"
- Part102.Parent = Model55
- Part102.BrickColor = BrickColor.new("Pastel brown")
- Part102.Rotation = Vector3.new(90, 0, -50)
- Part102.CanCollide = false
- Part102.FormFactor = Enum.FormFactor.Symmetric
- Part102.Size = Vector3.new(1, 2, 1)
- Part102.CFrame = CFrame.new(-40.1837578, 3.40001416, 132.239868, 0.64278239, 0.766038477, 9.13623932e-09, 1.81264313e-12, 1.19250014e-08, -1, -0.766038477, 0.64278239, 7.6638571e-09)
- Part102.Color = Color3.new(1, 0.8, 0.6)
- Part102.Position = Vector3.new(-40.1837578, 3.40001416, 132.239868)
- Part102.Orientation = Vector3.new(90, 50, 0)
- Part102.Color = Color3.new(1, 0.8, 0.6)
- Part103.Name = "Torso"
- Part103.Parent = Model55
- Part103.BrickColor = BrickColor.new("Pastel brown")
- Part103.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part103.FormFactor = Enum.FormFactor.Symmetric
- Part103.Size = Vector3.new(2, 2, 1)
- Part103.CFrame = CFrame.new(-39.2865143, 3.00001407, 131.948425, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part103.LeftSurface = Enum.SurfaceType.Weld
- Part103.RightSurface = Enum.SurfaceType.Weld
- Part103.Color = Color3.new(1, 0.8, 0.6)
- Part103.Position = Vector3.new(-39.2865143, 3.00001407, 131.948425)
- Part103.Orientation = Vector3.new(0, 90, 0)
- Part103.Color = Color3.new(1, 0.8, 0.6)
- Weld104.Parent = Part103
- Weld104.C1 = CFrame.new(-1.20000005, 0.5, 0.400000006, 0.99619472, 0, -0.087155737, 0.087155737, 1.19248806e-08, 0.99619472, 1.03932174e-09, -1, 1.18795027e-08)
- Weld104.Part0 = Part103
- Weld104.Part1 = Part100
- Weld105.Parent = Part103
- Weld105.C1 = CFrame.new(0.800000012, 0.5, 0.400000006, 0.766044438, 0, 0.642787576, -0.642787576, 1.19248806e-08, 0.766044438, -7.66516539e-09, -1, 9.13498877e-09)
- Weld105.Part0 = Part103
- Weld105.Part1 = Part102
- Motor6D106.Name = "Neck"
- Motor6D106.Parent = Part103
- Motor6D106.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D106.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D106.Part0 = Part103
- Motor6D106.Part1 = Part109
- Motor6D106.MaxVelocity = 0.10000000149012
- Motor6D107.Name = "Left Hip"
- Motor6D107.Parent = Part103
- Motor6D107.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D107.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D107.Part0 = Part103
- Motor6D107.Part1 = Part98
- Motor6D107.MaxVelocity = 0.10000000149012
- Motor6D108.Name = "Right Hip"
- Motor6D108.Parent = Part103
- Motor6D108.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D108.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D108.Part0 = Part103
- Motor6D108.Part1 = Part95
- Motor6D108.MaxVelocity = 0.10000000149012
- Part109.Name = "Head"
- Part109.Parent = Model55
- Part109.BrickColor = BrickColor.new("Pastel brown")
- Part109.Rotation = Vector3.new(-180, 89.7699966, 180)
- Part109.FormFactor = Enum.FormFactor.Symmetric
- Part109.Size = Vector3.new(2, 1, 1)
- Part109.CFrame = CFrame.new(-39.2865143, 4.50001431, 131.948425, -1.19208508e-07, -1.32160244e-12, 0.999992132, 1.31094929e-12, 1, 1.25764373e-12, -0.999992132, 1.24701074e-12, -1.19208508e-07)
- Part109.TopSurface = Enum.SurfaceType.Smooth
- Part109.Color = Color3.new(1, 0.8, 0.6)
- Part109.Position = Vector3.new(-39.2865143, 4.50001431, 131.948425)
- Part109.Orientation = Vector3.new(0, 90, 0)
- Part109.Color = Color3.new(1, 0.8, 0.6)
- Decal110.Parent = Part109
- Decal110.Texture = "http://www.roblox.com/asset/?id=315622231"
- SpecialMesh111.Parent = Part109
- SpecialMesh111.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh111.Scale = Vector3.new(1.25, 1.25, 1.25)
- Weld112.Name = "HeadWeld"
- Weld112.Parent = Part109
- Weld112.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld112.C1 = CFrame.new(0, 0.075000003, 0.0500000007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld112.Part0 = Part109
- Weld112.Part1 = Part62
- Weld113.Name = "HeadWeld"
- Weld113.Parent = Part109
- Weld113.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld113.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld113.Part0 = Part109
- Weld113.Part1 = Part65
- 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