Advertisement
cat568

Untitled

Mar 9th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. local player=owner
  2. local char=player.Character
  3. repeat wait() until player and char
  4. local torso=char.Torso
  5. local head=char.Head
  6. local human=char.Humanoid
  7. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  8. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  9.  
  10. local model=Instance.new("Model", char) model.Name="Objects"
  11.  
  12. local skincolor="Really black"
  13. local animate={}
  14. local skincolor="Bright orange"
  15. local body={}
  16. local obj={}
  17.  
  18.  
  19. local add={
  20. Part=function(par, a, c, col, t, s, cf, ms)
  21. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  22. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  23. return p
  24. end,
  25. Wedge=function(par, a, c, col, t, s, cf, ms)
  26. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  27. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  28. return p
  29. end,
  30. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  31. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  32. return g
  33. end,
  34. Weld=function(par, p1, cf)
  35. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  36. return w
  37. end,
  38. Mesh=function(ins, par, s, of, t)
  39. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  40. return m
  41. end,
  42. Sound=function(parent, id, volume, pitch)
  43. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  44. return s
  45. end,
  46. }
  47. Weld=function(par, p1, cf)
  48. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  49. return w
  50. end,
  51. function (createParts)
  52. --==PARTS==--
  53. body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  54. body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  55. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  56. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  57. --==WELDS==--
  58. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  59. body.TorsoW=add.Weld(body.Torso, torso, nil)
  60. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  61. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  62. --==WELDS==--
  63. add.Weld(body.Head, head, nil)
  64. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  65. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  66. torso["Left Hip"].Part0=torso
  67. torso["Right Hip"].Part0=torso
  68. ---------------------------------------------------------------------------------------
  69. animate={
  70. ["Head"]=function(cf)
  71. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  72. end;
  73. ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
  74. body.TorsoW.C1=cf
  75. c(function()
  76. wait(0)
  77. body.Torso.Transparency=1 torso.Transparency=0
  78. end)
  79. end;
  80. ["ArmLeft"]=function(cf)
  81. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  82. end;
  83. ["ArmRight"]=function(cf)
  84. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  85. end;
  86. ["LegLeft"]=function(cf)
  87. legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
  88. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  89. c(function()
  90. wait(0)
  91. legLeftW:remove()
  92. end)
  93. end;
  94. ["LegRight"]=function(cf)
  95. legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
  96. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  97. c(function()
  98. wait(0)
  99. legRightW:remove()
  100. end)
  101. end;
  102. }
  103. --==Objects==--
  104. end
  105. createParts()
  106. animate.Torso(CFrame.new(0, -1.5, 0))
  107. wait()
  108. torso.Transparency=1
  109. animate.ArmLeft(CFrame.new(.5, 0, 0)*CFrame.Angles(0, 0, -math.rad(45)))
  110. animate.ArmRight(CFrame.new(-.5, 0, 0)*CFrame.Angles(0, 0, math.rad(45)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement