Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made By Bartus2009_Bro/GabeTheDog
- --Discord: Gabe#2408
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.B then
- --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")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Weld6 = Instance.new("Weld")
- SpecialMesh7 = Instance.new("SpecialMesh")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Script10 = Instance.new("Script")
- Script11 = Instance.new("Script")
- StringValue12 = Instance.new("StringValue")
- Animation13 = Instance.new("Animation")
- StringValue14 = Instance.new("StringValue")
- Animation15 = Instance.new("Animation")
- StringValue16 = Instance.new("StringValue")
- Animation17 = Instance.new("Animation")
- StringValue18 = Instance.new("StringValue")
- Animation19 = Instance.new("Animation")
- StringValue20 = Instance.new("StringValue")
- Animation21 = Instance.new("Animation")
- NumberValue22 = Instance.new("NumberValue")
- Animation23 = Instance.new("Animation")
- NumberValue24 = Instance.new("NumberValue")
- StringValue25 = Instance.new("StringValue")
- Animation26 = Instance.new("Animation")
- StringValue27 = Instance.new("StringValue")
- Animation28 = Instance.new("Animation")
- Part29 = Instance.new("Part")
- Motor6D30 = Instance.new("Motor6D")
- Humanoid31 = Instance.new("Humanoid")
- Part32 = Instance.new("Part")
- ManualWeld33 = Instance.new("ManualWeld")
- ManualWeld34 = Instance.new("ManualWeld")
- Part35 = Instance.new("Part")
- ManualWeld36 = Instance.new("ManualWeld")
- Part37 = Instance.new("Part")
- Weld38 = Instance.new("Weld")
- Part39 = Instance.new("Part")
- Part40 = Instance.new("Part")
- Weld41 = Instance.new("Weld")
- Weld42 = Instance.new("Weld")
- Motor6D43 = Instance.new("Motor6D")
- Motor6D44 = Instance.new("Motor6D")
- Motor6D45 = Instance.new("Motor6D")
- Part46 = Instance.new("Part")
- SpecialMesh47 = Instance.new("SpecialMesh")
- Decal48 = Instance.new("Decal")
- Weld49 = Instance.new("Weld")
- CharacterMesh50 = Instance.new("CharacterMesh")
- CharacterMesh51 = Instance.new("CharacterMesh")
- CharacterMesh52 = Instance.new("CharacterMesh")
- CharacterMesh53 = Instance.new("CharacterMesh")
- CharacterMesh54 = Instance.new("CharacterMesh")
- Hat55 = Instance.new("Hat")
- Part56 = Instance.new("Part")
- SpecialMesh57 = Instance.new("SpecialMesh")
- Pants58 = Instance.new("Pants")
- Shirt59 = Instance.new("Shirt")
- Model0.Name = "Bacon Hair"
- Model0.Parent = mas
- Model0.PrimaryPart = Part46
- 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
- Part4.Name = "Handle"
- Part4.Parent = Model0
- Part4.BrickColor = BrickColor.new("Lily white")
- Part4.Transparency = 1
- Part4.Rotation = Vector3.new(-180, 85, 180)
- Part4.CanCollide = false
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Size = Vector3.new(2, 1, 1)
- Part4.CFrame = CFrame.new(-73.8521729, 3.60003209, -43.4567413, -0.0871742517, -1.04091158e-09, 0.996196091, -1.19232917e-08, 1, 1.51398306e-12, -0.996196091, -1.18778019e-08, -0.0871742442)
- Part4.RightSurface = Enum.SurfaceType.Hinge
- Part4.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part4.Position = Vector3.new(-73.8521729, 3.60003209, -43.4567413)
- Part4.Orientation = Vector3.new(0, 95, 0)
- Part4.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part5.Parent = Part4
- Part5.BrickColor = BrickColor.new("Lily white")
- Part5.Rotation = Vector3.new(-90, 0, 5)
- Part5.CanCollide = false
- Part5.FormFactor = Enum.FormFactor.Custom
- Part5.Size = Vector3.new(0.200000003, 0.799999595, 1)
- Part5.CFrame = CFrame.new(-74.1134338, 3.72003198, -43.9039803, 0.996196091, -0.0871740654, 4.48019399e-11, -1.06651799e-09, -1.19216015e-08, 1, -0.0871739537, -0.996196091, -1.10378977e-08)
- Part5.BackSurface = Enum.SurfaceType.Weld
- Part5.BottomSurface = Enum.SurfaceType.Weld
- Part5.FrontSurface = Enum.SurfaceType.Weld
- Part5.LeftSurface = Enum.SurfaceType.Weld
- Part5.RightSurface = Enum.SurfaceType.Weld
- Part5.TopSurface = Enum.SurfaceType.Weld
- Part5.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part5.Position = Vector3.new(-74.1134338, 3.72003198, -43.9039803)
- Part5.Orientation = Vector3.new(-90, 5, 0)
- Part5.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Weld6.Parent = Part5
- Weld6.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)
- Weld6.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)
- Weld6.Part0 = Part5
- Weld6.Part1 = Part4
- SpecialMesh7.Parent = Part5
- SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=72012671"
- SpecialMesh7.Scale = Vector3.new(1, 1.29999995, 1.29999995)
- SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=168091402"
- SpecialMesh7.VertexColor = Vector3.new(0.899999976, 0.899999976, 1)
- SpecialMesh7.MeshType = Enum.MeshType.FileMesh
- SpecialMesh7.Scale = Vector3.new(1, 1.29999995, 1.29999995)
- Sound8.Name = "Fire"
- Sound8.Parent = Part4
- Sound8.SoundId = "http://roblox.com/asset/?id=10209859"
- Sound8.Volume = 1
- Sound9.Name = "Reload"
- Sound9.Parent = Part4
- Sound9.SoundId = "http://www.roblox.com/asset/?id=2691591"
- Sound9.Volume = 1
- Script10.Name = "Control"
- Script10.Parent = Model0
- table.insert(cors,sandbox(Script10,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))
- Script11.Name = "Animate"
- Script11.Parent = Model0
- table.insert(cors,sandbox(Script11,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))
- StringValue12.Name = "walk"
- StringValue12.Parent = Script11
- Animation13.Name = "WalkAnim"
- Animation13.Parent = StringValue12
- Animation13.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue14.Name = "toolnone"
- StringValue14.Parent = Script11
- Animation15.Name = "ToolNoneAnim"
- Animation15.Parent = StringValue14
- Animation15.AnimationId = "http://www.roblox.com/asset/?id=125750867"
- StringValue16.Name = "run"
- StringValue16.Parent = Script11
- Animation17.Name = "RunAnim"
- Animation17.Parent = StringValue16
- Animation17.AnimationId = "http://www.roblox.com/asset/?id=125749145"
- StringValue18.Name = "jump"
- StringValue18.Parent = Script11
- Animation19.Name = "JumpAnim"
- Animation19.Parent = StringValue18
- Animation19.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue20.Name = "idle"
- StringValue20.Parent = Script11
- Animation21.Name = "Animation2"
- Animation21.Parent = StringValue20
- Animation21.AnimationId = "http://www.roblox.com/asset/?id=125750618"
- NumberValue22.Name = "Weight"
- NumberValue22.Parent = Animation21
- NumberValue22.Value = 1
- Animation23.Name = "Animation1"
- Animation23.Parent = StringValue20
- Animation23.AnimationId = "http://www.roblox.com/asset/?id=125750544"
- NumberValue24.Name = "Weight"
- NumberValue24.Parent = Animation23
- NumberValue24.Value = 9
- StringValue25.Name = "fall"
- StringValue25.Parent = Script11
- Animation26.Name = "FallAnim"
- Animation26.Parent = StringValue25
- Animation26.AnimationId = "http://www.roblox.com/asset/?id=125750759"
- StringValue27.Name = "climb"
- StringValue27.Parent = Script11
- Animation28.Name = "ClimbAnim"
- Animation28.Parent = StringValue27
- Animation28.AnimationId = "http://www.roblox.com/asset/?id=125750800"
- Part29.Name = "HumanoidRootPart"
- Part29.Parent = Model0
- Part29.BrickColor = BrickColor.new("Lily white")
- Part29.Transparency = 1
- Part29.FormFactor = Enum.FormFactor.Symmetric
- Part29.Size = Vector3.new(2, 2, 1)
- Part29.CFrame = CFrame.new(-74.7176056, 3.00003195, -41.8752747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part29.Position = Vector3.new(-74.7176056, 3.00003195, -41.8752747)
- Part29.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Motor6D30.Name = "RootJoint"
- Motor6D30.Parent = Part29
- Motor6D30.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D30.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D30.Part0 = Part29
- Motor6D30.Part1 = Part40
- Motor6D30.MaxVelocity = 0.10000000149012
- Humanoid31.Parent = Model0
- Humanoid31.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid31.RightLeg = Part32
- Humanoid31.LeftLeg = Part35
- Humanoid31.Torso = Part29
- Humanoid31.WalkSpeed = 8
- Part32.Name = "Right Leg"
- Part32.Parent = Model0
- Part32.BrickColor = BrickColor.new("Lily white")
- Part32.CanCollide = false
- Part32.FormFactor = Enum.FormFactor.Symmetric
- Part32.Size = Vector3.new(1, 2, 1)
- Part32.CFrame = CFrame.new(-74.2176056, 1.00003195, -41.8752823, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part32.Position = Vector3.new(-74.2176056, 1.00003195, -41.8752823)
- Part32.Color = Color3.new(0.929412, 0.917647, 0.917647)
- ManualWeld33.Name = "Right Leg Terrain Joint"
- ManualWeld33.Parent = Part32
- ManualWeld33.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld33.Part1 = Part32
- ManualWeld34.Name = "Right Leg Terrain Joint"
- ManualWeld34.Parent = Part32
- ManualWeld34.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld34.Part1 = Part32
- Part35.Name = "Left Leg"
- Part35.Parent = Model0
- Part35.BrickColor = BrickColor.new("Lily white")
- Part35.CanCollide = false
- Part35.FormFactor = Enum.FormFactor.Symmetric
- Part35.Size = Vector3.new(1, 2, 1)
- Part35.CFrame = CFrame.new(-75.2176056, 1.00003195, -41.875267, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part35.Position = Vector3.new(-75.2176056, 1.00003195, -41.875267)
- Part35.Color = Color3.new(0.929412, 0.917647, 0.917647)
- ManualWeld36.Name = "Left Leg Terrain Joint"
- ManualWeld36.Parent = Part35
- ManualWeld36.C1 = CFrame.new(49.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
- ManualWeld36.Part1 = Part35
- Part37.Name = "Right Arm"
- Part37.Parent = Model0
- Part37.BrickColor = BrickColor.new("Lily white")
- Part37.Rotation = Vector3.new(90, 0, -5)
- Part37.CanCollide = false
- Part37.FormFactor = Enum.FormFactor.Symmetric
- Part37.Size = Vector3.new(1, 2, 1)
- Part37.CFrame = CFrame.new(-73.5657578, 3.40003204, -42.4779816, 0.996196091, 0.0871742517, 1.04091158e-09, 1.51398306e-12, 1.19232917e-08, -1, -0.0871742442, 0.996196091, 1.18778019e-08)
- Part37.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part37.Position = Vector3.new(-73.5657578, 3.40003204, -42.4779816)
- Part37.Orientation = Vector3.new(90, 5, 0)
- Part37.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Weld38.Name = "RightGrip"
- Weld38.Parent = Part37
- Weld38.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld38.C1 = CFrame.new(0, -0.200000003, 0.200000003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Weld38.Part0 = Part37
- Weld38.Part1 = Part4
- Part39.Name = "Left Arm"
- Part39.Parent = Model0
- Part39.BrickColor = BrickColor.new("Lily white")
- Part39.Rotation = Vector3.new(90, 0, 40)
- Part39.CanCollide = false
- Part39.FormFactor = Enum.FormFactor.Symmetric
- Part39.Size = Vector3.new(1, 2, 1)
- Part39.CFrame = CFrame.new(-75.0090637, 3.40003204, -42.7725258, 0.766058505, -0.642775476, -7.66365194e-09, -5.28874904e-14, 1.19226868e-08, -1, 0.642775476, 0.766058445, 9.13343889e-09)
- Part39.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part39.Position = Vector3.new(-75.0090637, 3.40003204, -42.7725258)
- Part39.Orientation = Vector3.new(90, -40, 0)
- Part39.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part40.Name = "Torso"
- Part40.Parent = Model0
- Part40.BrickColor = BrickColor.new("Bright red")
- Part40.FormFactor = Enum.FormFactor.Symmetric
- Part40.Size = Vector3.new(2, 2, 1)
- Part40.CFrame = CFrame.new(-74.7176056, 3.00003195, -41.8752747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
- Part40.LeftSurface = Enum.SurfaceType.Weld
- Part40.RightSurface = Enum.SurfaceType.Weld
- Part40.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part40.Position = Vector3.new(-74.7176056, 3.00003195, -41.8752747)
- Part40.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Weld41.Parent = Part40
- Weld41.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)
- Weld41.Part0 = Part40
- Weld41.Part1 = Part37
- Weld42.Parent = Part40
- Weld42.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)
- Weld42.Part0 = Part40
- Weld42.Part1 = Part39
- Motor6D43.Name = "Neck"
- Motor6D43.Parent = Part40
- Motor6D43.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D43.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D43.Part0 = Part40
- Motor6D43.Part1 = Part46
- Motor6D43.MaxVelocity = 0.10000000149012
- Motor6D44.Name = "Left Hip"
- Motor6D44.Parent = Part40
- Motor6D44.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D44.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D44.Part0 = Part40
- Motor6D44.Part1 = Part35
- Motor6D44.MaxVelocity = 0.10000000149012
- Motor6D45.Name = "Right Hip"
- Motor6D45.Parent = Part40
- Motor6D45.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D45.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D45.Part0 = Part40
- Motor6D45.Part1 = Part32
- Motor6D45.MaxVelocity = 0.10000000149012
- Part46.Name = "Head"
- Part46.Parent = Model0
- Part46.BrickColor = BrickColor.new("Lily white")
- Part46.FormFactor = Enum.FormFactor.Symmetric
- Part46.Size = Vector3.new(2, 1, 1)
- Part46.CFrame = CFrame.new(-74.7176056, 4.50003195, -41.8752747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.Color = Color3.new(0.929412, 0.917647, 0.917647)
- Part46.Position = Vector3.new(-74.7176056, 4.50003195, -41.8752747)
- Part46.Color = Color3.new(0.929412, 0.917647, 0.917647)
- SpecialMesh47.Parent = Part46
- SpecialMesh47.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh47.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal48.Name = "face"
- Decal48.Parent = Part46
- Decal48.Texture = "http://www.roblox.com/asset/?id=144080495 "
- Weld49.Name = "HeadWeld"
- Weld49.Parent = Part46
- Weld49.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld49.C1 = CFrame.new(0, 0.25, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld49.Part0 = Part46
- Weld49.Part1 = Part56
- CharacterMesh50.Name = "3.0 Male Left Arm"
- CharacterMesh50.Parent = Model0
- CharacterMesh50.MeshId = 82907977
- CharacterMesh50.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh51.Name = "3.0 Male Left Leg"
- CharacterMesh51.Parent = Model0
- CharacterMesh51.MeshId = 81487640
- CharacterMesh51.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh52.Name = "3.0 Male Right Arm"
- CharacterMesh52.Parent = Model0
- CharacterMesh52.MeshId = 82908019
- CharacterMesh52.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh53.Name = "3.0 Male Right Leg"
- CharacterMesh53.Parent = Model0
- CharacterMesh53.MeshId = 81487710
- CharacterMesh53.BodyPart = Enum.BodyPart.RightLeg
- CharacterMesh54.Name = "3.0 Male Torso"
- CharacterMesh54.Parent = Model0
- CharacterMesh54.MeshId = 82907945
- CharacterMesh54.BodyPart = Enum.BodyPart.Torso
- Hat55.Name = "Pal Hair"
- Hat55.Parent = Model0
- Hat55.AttachmentPos = Vector3.new(0, 0.25, 0.25)
- Part56.Name = "Handle"
- Part56.Parent = Hat55
- Part56.CanCollide = false
- Part56.Locked = true
- Part56.FormFactor = Enum.FormFactor.Symmetric
- Part56.Size = Vector3.new(1, 1, 2)
- Part56.CFrame = CFrame.new(-74.7176132, 4.75003195, -42.1252747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
- Part56.BottomSurface = Enum.SurfaceType.Smooth
- Part56.TopSurface = Enum.SurfaceType.Smooth
- Part56.Position = Vector3.new(-74.7176132, 4.75003195, -42.1252747)
- SpecialMesh57.Parent = Part56
- SpecialMesh57.MeshId = "http://www.roblox.com/asset/?id=83293901"
- SpecialMesh57.Scale = Vector3.new(1, 1.04999995, 1)
- SpecialMesh57.TextureId = "http://www.roblox.com/asset/?id=83284747"
- SpecialMesh57.VertexColor = Vector3.new(1.20000005, 1.39999998, 1.39999998)
- SpecialMesh57.MeshType = Enum.MeshType.FileMesh
- SpecialMesh57.Scale = Vector3.new(1, 1.04999995, 1)
- Pants58.Name = "Pants"
- Pants58.Parent = Model0
- Pants58.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
- Shirt59.Name = "Shirt"
- Shirt59.Parent = Model0
- Shirt59.ShirtTemplate = "http://www.roblox.com/asset/?id=144076357"
- 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
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement