Advertisement
SmokeDelsin

nil

Jul 19th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. function Utility.CreateDummy(cframe, name, parent)
  2. local model = Instance.new("Model")
  3. model.Archivable = false
  4. model.Name = name
  5. local humanoid = Instance.new("Humanoid", model)
  6. local head = Instance.new("Part", model)
  7. local face = Instance.new("Decal", head)
  8. local head_mesh = Instance.new("SpecialMesh", head)
  9. local torso = Instance.new("Part", model)
  10. local right_arm = Instance.new("Part", model)
  11. local left_arm = Instance.new("Part", model)
  12. local right_leg = Instance.new("Part", model)
  13. local left_leg = Instance.new("Part", model)
  14. local neck = Instance.new("Motor", torso)
  15. local right_shoulder = Instance.new("Motor", torso)
  16. local left_shoulder = Instance.new("Motor", torso)
  17. local right_hip = Instance.new("Motor", torso)
  18. local left_hip = Instance.new("Motor", torso)
  19. head.BrickColor = BrickColor.Yellow()
  20. head.CFrame = cframe * CFrame.new(0, 1.5, 0)
  21. head.FormFactor = "Symmetric"
  22. head.Locked = true
  23. head.Name = "Head"
  24. head.Size = Vector3.new(2, 1, 1)
  25. head.TopSurface = "Smooth"
  26. face.Texture = "rbxasset://textures/face.png"
  27. head_mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  28. torso.BrickColor = BrickColor.Blue()
  29. torso.CFrame = cframe
  30. torso.FormFactor = "Symmetric"
  31. torso.LeftSurface = "Weld"
  32. torso.Locked = true
  33. torso.RightSurface = "Weld"
  34. torso.Name = "Torso"
  35. torso.Size = Vector3.new(2, 2, 1)
  36. right_arm.BrickColor = BrickColor.Yellow()
  37. right_arm.CanCollide = false
  38. right_arm.CFrame = cframe * CFrame.new(1.5, 0, 0)
  39. right_arm.FormFactor = "Symmetric"
  40. right_arm.Locked = true
  41. right_arm.Name = "Right Arm"
  42. right_arm.Size = Vector3.new(1, 2, 1)
  43. left_arm.BrickColor = BrickColor.Yellow()
  44. left_arm.CanCollide = false
  45. left_arm.CFrame = cframe * CFrame.new(-1.5, 0, 0)
  46. left_arm.FormFactor = "Symmetric"
  47. left_arm.Locked = true
  48. left_arm.Name = "Left Arm"
  49. left_arm.Size = Vector3.new(1, 2, 1)
  50. right_leg.BrickColor = BrickColor.new("Br. yellowish green")
  51. right_leg.BottomSurface = "Smooth"
  52. right_leg.CanCollide = false
  53. right_leg.CFrame = cframe * CFrame.new(0.5, -2, 0)
  54. right_leg.FormFactor = "Symmetric"
  55. right_leg.Locked = true
  56. right_leg.Name = "Right Leg"
  57. right_leg.Size = Vector3.new(1, 2, 1)
  58. right_leg.TopSurface = "Smooth"
  59. left_leg.BrickColor = BrickColor.new("Br. yellowish green")
  60. left_leg.BottomSurface = "Smooth"
  61. left_leg.CanCollide = false
  62. left_leg.CFrame = cframe * CFrame.new(-0.5, -2, 0)
  63. left_leg.FormFactor = "Symmetric"
  64. left_leg.Locked = true
  65. left_leg.Name = "Left Leg"
  66. left_leg.Size = Vector3.new(1, 2, 1)
  67. left_leg.TopSurface = "Smooth"
  68. neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  69. neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  70. neck.Name = "Neck"
  71. neck.Part0 = torso
  72. neck.Part1 = head
  73. right_shoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  74. right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  75. right_shoulder.MaxVelocity = 0.15
  76. right_shoulder.Name = "Right Shoulder"
  77. right_shoulder.Part0 = torso
  78. right_shoulder.Part1 = right_arm
  79. left_shoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  80. left_shoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  81. left_shoulder.MaxVelocity = 0.15
  82. left_shoulder.Name = "Left Shoulder"
  83. left_shoulder.Part0 = torso
  84. left_shoulder.Part1 = left_arm
  85. right_hip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  86. right_hip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  87. right_hip.MaxVelocity = 0.1
  88. right_hip.Name = "Right Hip"
  89. right_hip.Part0 = torso
  90. right_hip.Part1 = right_leg
  91. left_hip.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  92. left_hip.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  93. left_hip.MaxVelocity = 0.1
  94. left_hip.Name = "Left Hip"
  95. left_hip.Part0 = torso
  96. left_hip.Part1 = left_leg
  97. humanoid.Died:connect(function()
  98. wait(5)
  99. model:Destroy()
  100. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement