Advertisement
subaru112g

media best friend

Feb 3rd, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. local plr = owner
  2. wait(0.1)
  3.  
  4. local m = Instance.new("Model", game.Workspace)
  5. m.Name = "Mediakiller7 the best friend"
  6.  
  7. local h = Instance.new("Part",m)
  8. h.Name = "Head"
  9. local me = plr.Character.Head.Mesh:Clone()
  10. me.Parent = h
  11. local facee = plr.Character.Head.face:Clone()
  12. facee.Parent = h
  13. h.Size = plr.Character.Head.Size
  14. h:BreakJoints()
  15. h.CanCollide = false
  16. h.Position = plr.Character.Head.Position
  17. h.Position = h.Position + Vector3.new(0, 10, 0)
  18. h.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  19.  
  20. local t = Instance.new("Part",m)
  21. t.Name = "Torso"
  22. t.Size = plr.Character.Torso.Size
  23. t:BreakJoints()
  24. t.CanCollide = false
  25. t.Position = plr.Character.Torso.Position
  26. t.Position = t.Position + Vector3.new(0, 10, 0)
  27.  
  28. local decal = Instance.new("ShirtGraphic",m)
  29. decal.Graphic = "http://www.roblox.com/asset/?id=1926146296"
  30.  
  31. local ra = Instance.new("Part",m)
  32. ra.Name = "Right Arm"
  33. ra.Size = plr.Character["Right Arm"].Size
  34. ra:BreakJoints()
  35. ra.Position = plr.Character["Right Arm"].Position
  36. ra.Position = ra.Position + Vector3.new(0, 10, 0)
  37.  
  38. local la = Instance.new("Part",m)
  39. la.Name = "Left Arm"
  40. la.Size = plr.Character["Left Arm"].Size
  41. la:BreakJoints()
  42. la.Position = plr.Character["Left Arm"].Position
  43. la.Position = la.Position + Vector3.new(0, 10, 0)
  44.  
  45. local ll = Instance.new("Part",m)
  46. ll.Name = "Left Leg"
  47. ll.Size = plr.Character["Left Leg"].Size
  48. ll:BreakJoints()
  49. ll.Position = plr.Character["Left Leg"].Position
  50. ll.Position = ll.Position + Vector3.new(0, 10, 0)
  51.  
  52. local rl = Instance.new("Part",m)
  53. rl.Name = "Right Leg"
  54. rl.Size = plr.Character["Right Leg"].Size
  55. rl:BreakJoints()
  56. rl.Position = plr.Character["Right Leg"].Position
  57. rl.Position = rl.Position + Vector3.new(0, 10, 0)
  58.  
  59. for i,v in pairs(m:GetChildren()) do
  60. if not(v.ClassName == "Accessory" or v.ClassName == "ShirtGraphic" or v.ClassName == "Humanoid" or v.ClassName == "Pants" or v.ClassName == "Shirt") then
  61. v:BreakJoints()
  62. end
  63. end
  64.  
  65. local neck = Instance.new("Motor6D")
  66. neck.Name = "Neck"
  67. neck.Part0 = t
  68. neck.Part1 = h
  69. neck.Parent = t
  70. neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  71. neck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  72.  
  73. local rs = Instance.new("Motor6D")
  74. rs.Name = "Right Shoulder"
  75. rs.Part0 = t
  76. rs.Part1 = ra
  77. rs.Parent = t
  78. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  79. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  80.  
  81. local ls = Instance.new("Motor6D")
  82. ls.Name = "Left Shoulder"
  83. ls.Part0 = t
  84. ls.Part1 = la
  85. ls.Parent = t
  86. ls.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  87. ls.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  88.  
  89. local lh = Instance.new("Motor6D")
  90. lh.Name = "Left Hip"
  91. lh.Part0 = t
  92. lh.Part1 = ll
  93. lh.Parent = t
  94. lh.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  95. lh.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  96.  
  97. local rh = Instance.new("Motor6D")
  98. rh.Name = "Right Hip"
  99. rh.Part0 = t
  100. rh.Part1 = rl
  101. rh.Parent = t
  102. rh.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  103. rh.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  104.  
  105. local hair = Instance.new("Accessory")
  106. hair.AttachmentPos = Vector3.new(0, 0.34, 0.25)
  107. local ha = Instance.new("Part",hair)
  108. ha.Name = "Handle"
  109. ha.Size = Vector3.new(1.6, 0.8, 1.6)
  110. local me = Instance.new("SpecialMesh", ha)
  111. me.MeshId = "rbxassetid://2309337895"
  112. me.TextureId = "rbxassetid://2309338779"
  113. me.Scale = Vector3.new(1.2, 1.2, 1.2)
  114. me.VertexColor = Vector3.new(1, 1, 1)
  115.  
  116. local hair1 = Instance.new("Accessory")
  117. hair1.AttachmentPos = Vector3.new(0, 1.25, 0)
  118. local ha1 = Instance.new("Part",hair1)
  119. ha1.Name = "Handle"
  120. ha1.Size = Vector3.new(1.25, 1.15, 1.24)
  121. local me1 = Instance.new("SpecialMesh", ha1)
  122. me1.MeshId = "rbxassetid://2470748058"
  123. me1.TextureId = "rbxassetid://2470749333"
  124. me1.Scale = Vector3.new(1.1, 1, 1)
  125. me1.Offset = Vector3.new(0, 0.9, 0.1)
  126. me1.VertexColor = Vector3.new(1, 1, 1)
  127.  
  128. local hair2 = Instance.new("Accessory")
  129. hair2.AttachmentPos = Vector3.new(0, 0.34, 0.25)
  130. local ha2 = Instance.new("Part",hair2)
  131. ha2.Name = "Handle"
  132. ha2.Size = Vector3.new(1.6, 0.8, 1.6)
  133. local me2 = Instance.new("SpecialMesh", ha2)
  134. me2.MeshId = "rbxassetid://2470774144"
  135. me2.TextureId = "rbxassetid://2470762534"
  136. me2.Scale = Vector3.new(1.4, 1.4, 1.4)
  137. me2.Offset = Vector3.new(0, 0.03, -0.38)
  138. me2.VertexColor = Vector3.new(1, 1, 1)
  139.  
  140. --ahhh
  141. local hair3 = Instance.new("Accessory")
  142. hair3.AttachmentPos = Vector3.new(0, 0.34, 0.25)
  143. local ha3 = Instance.new("Part",hair3)
  144. ha3.Name = "Handle"
  145. ha3.Size = Vector3.new(1.6, 0.8, 1.6)
  146. local me3 = Instance.new("SpecialMesh", ha3)
  147. me3.MeshId = "rbxassetid://1829321807"
  148. me3.TextureId = "rbxassetid://1829322369"
  149. me3.Scale = Vector3.new(1.1, 1.1, 1.1)
  150. me3.Offset = Vector3.new(0, 0, 0)
  151. me3.VertexColor = Vector3.new(1, 1, 1)
  152.  
  153. local sh = Instance.new("Shirt",m)
  154. sh.ShirtTemplate = ""
  155. sh.Name = "Shirt"
  156.  
  157. local sh2 = Instance.new("Pants",m)
  158. sh2.PantsTemplate = ""
  159. sh2.Name = "Pants"
  160.  
  161. wait(0.000000000000001)
  162.  
  163. local hu = Instance.new("Humanoid", m)
  164. hu.MaxHealth = 100
  165. hu.Health = 100
  166. hu.WalkSpeed = 13
  167.  
  168. h.BrickColor = BrickColor.new("Bright yellow")
  169. ra.BrickColor = BrickColor.new("Bright yellow")
  170. la.BrickColor = BrickColor.new("Bright yellow")
  171. t.BrickColor = BrickColor.new("Bright blue")
  172. rl.BrickColor = BrickColor.new("Br. yellowish green")
  173. ll.BrickColor = BrickColor.new("Br. yellowish green")
  174.  
  175. local animation = Instance.new("Animation", script)
  176. animation.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  177.  
  178. local hum = m:WaitForChild("Humanoid")
  179. local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
  180. anim.Looped = true
  181. anim:Play()
  182.  
  183.  
  184. hair.Parent = m
  185.  
  186. local CurrentPart = nil
  187. local MaxInc = 30
  188.  
  189. function onTouched(hit)
  190. if hit.Parent == nil then
  191. return
  192. end
  193.  
  194. local humanoid = hit.Parent:findFirstChild("Humanoid")
  195.  
  196. if humanoid == nil then
  197. CurrentPart = hit
  198. end
  199. end
  200.  
  201. function waitForChild(parent, childName)
  202. local child = parent:findFirstChild(childName)
  203.  
  204. if child then
  205. return child
  206. end
  207.  
  208. while true do
  209. print(childName)
  210.  
  211. child = parent.ChildAdded:wait()
  212.  
  213. if child.Name==childName then
  214. return child
  215. end
  216. end
  217. end
  218.  
  219. local Figure = m
  220. local Humanoid = waitForChild(Figure, "Humanoid")
  221. local Torso = waitForChild(Figure, "Torso")
  222. local Left = waitForChild(Figure, "Left Leg")
  223. local Right = waitForChild(Figure, "Right Leg")
  224.  
  225. Humanoid.Jump = true
  226.  
  227. Left.Touched:connect(onTouched)
  228. Right.Touched:connect(onTouched)
  229.  
  230. while true do
  231. wait(0.5)
  232. if CurrentPart ~= nil then
  233. if math.random(5, 7) == 1 then
  234. Humanoid.Jump = true
  235. end
  236.  
  237. Humanoid:MoveTo(Torso.Position + Vector3.new(math.random(-MaxInc, MaxInc), 0, math.random(-MaxInc, MaxInc)), CurrentPart)
  238. end
  239. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement