DarkScripter123

AnimeLolScript

Mar 14th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. function MakeCharacter(Player, Scal)
  2. Asset = "http://www.roblox.com/asset/?id="
  3. CA = CFrame.Angles
  4. CN = CFrame.new
  5. V3 = Vector3.new
  6. MR = math.rad
  7. MP = math.pi
  8. MRA = math.random
  9. MH = math.huge
  10. pose = "Standing"
  11. function Part(P, Anch, Coll, Tran, Ref, Col, Size, Name)
  12. local p = Instance.new("Part")
  13. p.TopSurface = 0
  14. p.BottomSurface = 0
  15. p.Transparency = Tran
  16. p.Reflectance = Ref
  17. p.CanCollide = Coll
  18. p.Anchored = Anch
  19. p.BrickColor = BrickColor.new(Col)
  20. p.formFactor = "Custom"
  21. p.Size = Size
  22. p.Name = Name
  23. p.Parent = P
  24. p.Locked = true
  25. p:BreakJoints()
  26. return p
  27. end
  28. function Weld(p0, p1, c0, c1, name)
  29. local mot = Instance.new("Motor6D")
  30. mot.C0 = c0
  31. mot.C1 = c1
  32. mot.Part0 = p0
  33. mot.Part1 = p1
  34. mot.Name = name
  35. mot.Parent = p0
  36. return mot
  37. end
  38. Character = Player.Character
  39. function Make(Scale)
  40. local Char = Instance.new("Model")
  41. Char.Name = Player.Name
  42. local Torso = Part(Char, false, true, 0, 0, "Navy blue", V3(2*Scale, 1*Scale, 1*Scale), "Torso")
  43. local Torso2 = Part(Char, false, true, 0, 0, "Navy blue", V3(2.5*Scale, 1.5*Scale, 1.5*Scale), "Torso2")
  44. local Head = Part(Char, false, true, 0, 0, "Pastel brown", V3(1.2*Scale, 1.2*Scale, 1.2*Scale), "Head")
  45. Instance.new("SpecialMesh",Head)
  46. local Rarm = Part(Char, false, true, 0, 0, "Navy blue", V3(1.2*Scale, 1.4*Scale, 1.2*Scale), "Right Arm")
  47. Instance.new("SpecialMesh",Rarm)
  48. local Rhand = Part(Char, false, true, 0, 0, "Pastel brown", V3(1*Scale, 1.6*Scale, 1*Scale), "Right Hand")
  49. Instance.new("SpecialMesh",Rhand)
  50. local Larm = Part(Char, false, true, 0, 0, "Navy blue", V3(1.2*Scale, 1.4*Scale, 1.2*Scale), "Left Arm")
  51. Instance.new("SpecialMesh",Larm)
  52. local Lhand = Part(Char, false, true, 0, 0, "Pastel brown", V3(1*Scale, 1.6*Scale, 1*Scale), "Right Hand")
  53. Instance.new("SpecialMesh",Lhand)
  54. local Rleg = Part(Char, false, true, 0, 0, "Bright blue", V3(1*Scale, 1.4*Scale, 1*Scale), "Right Leg")
  55. Instance.new("SpecialMesh",Rleg)
  56. local Rleg2 = Part(Char, false, true, 0, 0, "Bright blue", V3(1*Scale, 1.2*Scale, 1*Scale), "Right Leg2")
  57. Instance.new("SpecialMesh",Rleg2)
  58. local Rleg3 = Part(Char, false, true, 0, 0, "Really black", V3(0.8*Scale, 0.6*Scale, 1.4*Scale), "Right Leg3")
  59. Instance.new("SpecialMesh",Rleg3).MeshType = "Sphere"
  60. local Lleg = Part(Char, false, true, 0, 0, "Bright blue", V3(1*Scale, 1.4*Scale, 1*Scale), "Left Leg")
  61. Instance.new("SpecialMesh",Lleg)
  62. local Lleg2 = Part(Char, false, true, 0, 0, "Bright blue", V3(1*Scale, 1.2*Scale, 1*Scale), "Left Leg2")
  63. Instance.new("SpecialMesh",Lleg2)
  64. local Lleg3 = Part(Char, false, true, 0, 0, "Really black", V3(0.8*Scale, 0.6*Scale, 1.4*Scale), "Left Leg3")
  65. Instance.new("SpecialMesh",Lleg3).MeshType = "Sphere"
  66.  
  67. local TW = Weld(Torso, Torso2, CN(0, 0.5*Scale, 0), CN(0, -0.5*Scale, 0), "TorsoWeld")
  68. local Neck = Weld(Torso, Head, CN(0, 1.75*Scale, 0), CN(0, -0.6*Scale, 0), "Neck")
  69. local RAW = Weld(Torso2, Rarm, CN(1.5*Scale, 0.4*Scale, 0), CN(0, 0.5*Scale, 0) * CA(0, 0, MR(-20)), "Right Shoulder")
  70. local RHW = Weld(Rarm, Rhand, CN(0, -0.6*Scale, 0), CN(0, 0.5*Scale, 0) * CA(0, 0, MR(15)), "Right Handweld")
  71. local LAW = Weld(Torso2, Larm, CN(-1.5*Scale, 0.4*Scale, 0), CN(0, 0.5*Scale, 0) * CA(0, 0, MR(20)), "Left Shoulder")
  72. local LHW = Weld(Larm, Lhand, CN(0, -0.6*Scale, 0), CN(0, 0.5*Scale, 0) * CA(0, 0, MR(-15)), "Left Handweld")
  73. local RLW = Weld(Torso, Rleg, CN(-0.5*Scale, -0.5*Scale, 0), CN(0, 0.6*Scale, 0) * CA(0, 0, MR(10)), "Right Hip")
  74. local RLW2 = Weld(Rleg, Rleg2, CN(0, -0.6*Scale, 0), CN(0, 0.4*Scale, 0) * CA(0, 0, MR(-10)), "Right Hip2")
  75. local RFW = Weld(Rleg2, Rleg3, CN(0, -0.5*Scale, 0), CN(0, 0.2*Scale, 0.3*Scale), "Right Foot")
  76. local LLW = Weld(Torso, Lleg, CN(0.5*Scale, -0.5*Scale, 0), CN(0, 0.6*Scale, 0) * CA(0, 0, MR(-10)), "Left Hip")
  77. local LLW2 = Weld(Lleg, Lleg2, CN(0, -0.6*Scale, 0), CN(0, 0.4*Scale, 0) * CA(0, 0, MR(10)), "Left Hip2")
  78. local LFW = Weld(Lleg2, Lleg3, CN(0, -0.5*Scale, 0), CN(0, 0.2*Scale, 0.3*Scale), "Left Foot")
  79.  
  80. local Hp = 100+((Scale-1)*150)
  81. local Hum = Instance.new("Humanoid", Char)
  82. Hum.MaxHealth = Hp
  83. Hum.Health = Hp
  84. Hum.Name = "Humanoid"
  85. Hum.WalkSpeed = 16
  86. coroutine.resume(coroutine.create(function()
  87. for i = 1, 200 do
  88. wait()
  89. Hum.Health = Hp
  90. end
  91. end))
  92. local Face = Instance.new("Decal",Head)
  93. Face.Face = "Front"
  94. Face.Texture = Asset..(13038247)
  95.  
  96. Char.Parent = workspace
  97. Char:MakeJoints()
  98. Char:MoveTo(Character.Torso.Position + V3(MRA(-30,30), 0, MRA(-30,30)))
  99.  
  100. Hum.Died:connect(function()
  101. local pos = Torso.Position
  102. wait(3)
  103. for i = 0, 1, 0.02 do
  104. for _,v in pairs(Char:children()) do if v:IsA("BasePart") then v.Transparency = i end end
  105. wait()
  106. end
  107. Char:remove()
  108. wait(2)
  109. Make(Scal)
  110. end)
  111.  
  112. function Normal()
  113. RAW.C0 = CN(1.5*Scale, 0.4*Scale, 0)
  114. RHW.C0 = CN(0, -0.6*Scale, 0)
  115. LAW.C0 = CN(-1.5*Scale, 0.4*Scale, 0)
  116. LH.C0 = CN(0, -0.6*Scale, 0)
  117. RLW.C0 = CN(-0.5*Scale, -0.5*Scale, 0)
  118. RLW2.C0 = CN(0, -0.6*Scale, 0)
  119. LLW.C0 = CN(0.5*Scale, -0.5*Scale, 0)
  120. LLW2.C0 = CN(0, -0.6*Scale, 0)
  121. end
  122. function WalkAnim()
  123. for i = 0.25, 1, 0.25 do
  124. RAW.C0 = CN(1.5*Scale, 0.4*Scale, 0) * CA(MR(45*i), 0, 0)
  125. LAW.C0 = CN(-1.5*Scale, 0.4*Scale, 0) * CA(MR(-35*i), 0, 0)
  126. RHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(35*i), 0, 0)
  127. LHW.C0 = CN(0, -0.6*Scale, 0)
  128. RLW.C0 = CN(-0.5*Scale, -0.5*Scale, 0) * CA(MR(-30*i), 0, 0)
  129. RLW2.C0 = CN(0, -0.6*Scale, 0)
  130. LLW.C0 = CN(0.5*Scale, -0.5*Scale, 0) * CA(MR(35*i), 0, 0)
  131. LLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(-25*i), 0, 0)
  132. wait()
  133. end
  134. for i = 0.25, 1, 0.25 do
  135. RAW.C0 = CN(1.5*Scale, 0.4*Scale, 0) * CA(MR(45+10*i), 0, 0)
  136. LAW.C0 = CN(-1.5*Scale, 0.4*Scale, 0) * CA(MR(-35-10*i), 0, 0)
  137. RHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(35+10*i), 0, 0)
  138. LHW.C0 = CN(0, -0.6*Scale, 0)
  139. RLW.C0 = CN(-0.5*Scale, -0.5*Scale, 0) * CA(MR(-30-5*i), 0, 0)
  140. RLW2.C0 = CN(0, -0.6*Scale, 0)
  141. LLW.C0 = CN(0.5*Scale, -0.5*Scale, 0) * CA(MR(35+5*i), 0, 0)
  142. LLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(-25-5*i), 0, 0)
  143. wait()
  144. end
  145. for i = 0.13, 1, 0.13 do
  146. RAW.C0 = CN(1.5*Scale, 0.4*Scale, 0) * CA(MR(55-90*i), 0, 0)
  147. LAW.C0 = CN(-1.5*Scale, 0.4*Scale, 0) * CA(MR(-45+90*i), 0, 0)
  148. RHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(45-35*i), 0, 0)
  149. LHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(35*i), 0, 0)
  150. RLW.C0 = CN(-0.5*Scale, -0.5*Scale, 0) * CA(MR(-35+70*i), 0, 0)
  151. RLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(-25*i), 0, 0)
  152. LLW.C0 = CN(0.5*Scale, -0.5*Scale, 0) * CA(MR(40-70*i), 0, 0)
  153. LLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(-30+25*i), 0, 0)
  154. wait()
  155. end
  156. for i = 0.25, 1, 0.25 do
  157. RAW.C0 = CN(1.5*Scale, 0.4*Scale, 0) * CA(MR(-35-10*i), 0, 0)
  158. LAW.C0 = CN(-1.5*Scale, 0.4*Scale, 0) * CA(MR(45+10*i), 0, 0)
  159. RHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(10-10*i), 0, 0)
  160. LHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(35+10*i), 0, 0)
  161. RLW.C0 = CN(-0.5*Scale, -0.5*Scale, 0) * CA(MR(35+5*i), 0, 0)
  162. RLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(-25-5*i), 0, 0)
  163. LLW.C0 = CN(0.5*Scale, -0.5*Scale, 0) * CA(MR(-30-5*i), 0, 0)
  164. LLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(5-5*i), 0, 0)
  165. wait()
  166. end
  167. for i = 0.25, 1, 0.25 do
  168. RAW.C0 = CN(1.5*Scale, 0.4*Scale, 0) * CA(MR(-45+45*i), 0, 0)
  169. LAW.C0 = CN(-1.5*Scale, 0.4*Scale, 0) * CA(MR(55-55*i), 0, 0)
  170. RHW.C0 = CN(0, -0.6*Scale, 0)
  171. LHW.C0 = CN(0, -0.6*Scale, 0) * CA(MR(45-45*i), 0, 0)
  172. RLW.C0 = CN(-0.5*Scale, -0.5*Scale, 0) * CA(MR(40-40*i), 0, 0)
  173. RLW2.C0 = CN(0, -0.6*Scale, 0) * CA(MR(-30+30*i), 0, 0)
  174. LLW.C0 = CN(0.5*Scale, -0.5*Scale, 0) * CA(MR(-35+35*i), 0, 0)
  175. LLW2.C0 = CN(0, -0.6*Scale, 0)
  176. wait()
  177. end
  178. end
  179. coroutine.resume(coroutine.create(function()
  180. while true do
  181. wait()
  182. local vel = Torso.Velocity
  183. local pos = Torso.Position
  184. local t = Character.Torso
  185. local magn = (pos - t.Position).magnitude
  186. if magn > 10+(4*Scale) then
  187. Hum:MoveTo(t.Position + V3(MRA(-8-(3*Scale),8+(3*Scale)), 0, MRA(-8-(3*Scale),8+(3*Scale))), workspace.Base)
  188. end
  189. if (vel.magnitude >= 4) and (vel.Y < 4) and (vel.Y > -4) then
  190. pose = "Running"
  191. elseif (vel.magnitude < 4) and (vel.Y < 4) and (vel.Y > -4) then
  192. pose = "Standing"
  193. else
  194. pose = "Falling"
  195. end
  196. if pose == "Running" then
  197. WalkAnim()
  198. end
  199. end
  200. end))
  201. end
  202. Make(Scal)
  203. end
  204.  
  205. MakeCharacter(game.Players.xSoulStealerx, 1)
Add Comment
Please, Sign In to add comment