Advertisement
HenloMyDude

take a chance morph

Jan 3rd, 2020
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. plr = owner
  2. char = plr.Character
  3. hed = char.Head
  4. root = char.HumanoidRootPart
  5. dancin = false
  6.  
  7. clerp = function(toclerp, cf, number)
  8. local joint = toclerp
  9. joint.C0 = joint.C0:Lerp(cf, number)
  10. end
  11.  
  12. clerp2 = function(toclerp, cf)
  13. local joint = toclerp
  14. joint.C0 = cf
  15. end
  16.  
  17. clerp3 = function(toclerp, cf, number)
  18. local joint = toclerp
  19. joint.C1 = joint.C1:Lerp(cf, number)
  20. end
  21.  
  22. Swait,swait = function(number)
  23. if number == 0 or number == nil then
  24. game:GetService("RunService").Heartbeat:Wait()
  25. else
  26. for i = 1,number do
  27. game:GetService("RunService").Heartbeat:Wait()
  28. end
  29. end
  30. end
  31.  
  32. ezweld = function(p, a, b, cf)
  33. local weld = Instance.new("Weld",p)
  34. weld.Part0 = a
  35. weld.Part1 = b
  36. weld.C0 = cf
  37. return weld
  38. end
  39.  
  40. NewSound = function(p, id, pit, vol, loop)
  41. local Sound = Instance.new("Sound",p)
  42. Sound.Pitch = pit
  43. Sound.Volume = vol
  44. Sound.SoundId = "rbxassetid://" ..id
  45. Sound.Looped = loop
  46. Sound:Play()
  47. return Sound
  48. end
  49.  
  50. IT = Instance.new
  51. Rad = math.rad
  52. Cos = math.cos
  53. Sin = math.sin
  54. BrickC = BrickColor.new
  55. C3 = Color3.new
  56. VT = Vector3.new
  57.  
  58. for i,v in pairs (char:GetChildren()) do
  59. if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") then
  60. v:remove()
  61. end
  62. if v:IsA("Part") then
  63. v.Color = Color3.new(1, 1, 1)
  64. end
  65. end
  66.  
  67. function addpart(p, size, trans, collide, anchor, color, bc, mat)
  68. local part = Instance.new("Part", p)
  69. part.Size = size
  70. part.Transparency = trans
  71. part.CanCollide = collide
  72. part.Anchored = anchor
  73. part.Material = mat
  74. if bc then
  75. part.BrickColor = BrickColor.new(color)
  76. else
  77. part.Color = color
  78. end
  79. return part
  80. end
  81.  
  82. function addmesh(p, scale, t, msh, txt)
  83. local mesh = Instance.new("SpecialMesh", p)
  84. mesh.Scale = scale
  85. mesh.MeshType = t
  86. if t == "FileMesh" then
  87. mesh.MeshId = "rbxassetid://" ..msh
  88. mesh.TextureId = "rbxassetid://" ..txt
  89. end
  90. end
  91.  
  92. local accessory = addpart(char, Vector3.new(2, 1.6, 2), 0, false, false, "Grey", true, "Plastic")
  93. local mesh = addmesh(accessory, Vector3.new(1, 1, 1), "FileMesh", 11144636, 11144632)
  94. local weld = ezweld(char, accessory, hed, CFrame.new(0, -0.9775, 0))
  95. local hat2 = addpart(char, Vector3.new(2, 1.6, 2), 1, false, false, "Grey", true, "Plastic")
  96. local mesh = addmesh(hat2, Vector3.new(1, 1, 1), "FileMesh", 11144636, 11144632)
  97. local weld2 = ezweld(char, hat2, ra, CFrame.new(0, 1.65, 0))
  98. local shirt = Instance.new("Shirt", char)
  99. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11192464"
  100. local pants = Instance.new("Pants", char)
  101. pants.PantsTemplate = "http://www.roblox.com/asset/?id=11192327"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement