Advertisement
GabeTheDog

Bacon Army Script

Apr 12th, 2018
2,928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.43 KB | None | 0 0
  1. --Made By Bartus2009_Bro/GabeTheDog
  2. --Discord: Gabe#2408
  3.  
  4. function onKeyPress(inputObject, gameProcessedEvent)
  5. if inputObject.KeyCode == Enum.KeyCode.B then
  6.  
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Model0 = Instance.new("Model")
  25. Script1 = Instance.new("Script")
  26. LocalScript2 = Instance.new("LocalScript")
  27. ObjectValue3 = Instance.new("ObjectValue")
  28. Part4 = Instance.new("Part")
  29. Part5 = Instance.new("Part")
  30. Weld6 = Instance.new("Weld")
  31. SpecialMesh7 = Instance.new("SpecialMesh")
  32. Sound8 = Instance.new("Sound")
  33. Sound9 = Instance.new("Sound")
  34. Script10 = Instance.new("Script")
  35. Script11 = Instance.new("Script")
  36. StringValue12 = Instance.new("StringValue")
  37. Animation13 = Instance.new("Animation")
  38. StringValue14 = Instance.new("StringValue")
  39. Animation15 = Instance.new("Animation")
  40. StringValue16 = Instance.new("StringValue")
  41. Animation17 = Instance.new("Animation")
  42. StringValue18 = Instance.new("StringValue")
  43. Animation19 = Instance.new("Animation")
  44. StringValue20 = Instance.new("StringValue")
  45. Animation21 = Instance.new("Animation")
  46. NumberValue22 = Instance.new("NumberValue")
  47. Animation23 = Instance.new("Animation")
  48. NumberValue24 = Instance.new("NumberValue")
  49. StringValue25 = Instance.new("StringValue")
  50. Animation26 = Instance.new("Animation")
  51. StringValue27 = Instance.new("StringValue")
  52. Animation28 = Instance.new("Animation")
  53. Part29 = Instance.new("Part")
  54. Motor6D30 = Instance.new("Motor6D")
  55. Humanoid31 = Instance.new("Humanoid")
  56. Part32 = Instance.new("Part")
  57. ManualWeld33 = Instance.new("ManualWeld")
  58. ManualWeld34 = Instance.new("ManualWeld")
  59. Part35 = Instance.new("Part")
  60. ManualWeld36 = Instance.new("ManualWeld")
  61. Part37 = Instance.new("Part")
  62. Weld38 = Instance.new("Weld")
  63. Part39 = Instance.new("Part")
  64. Part40 = Instance.new("Part")
  65. Weld41 = Instance.new("Weld")
  66. Weld42 = Instance.new("Weld")
  67. Motor6D43 = Instance.new("Motor6D")
  68. Motor6D44 = Instance.new("Motor6D")
  69. Motor6D45 = Instance.new("Motor6D")
  70. Part46 = Instance.new("Part")
  71. SpecialMesh47 = Instance.new("SpecialMesh")
  72. Decal48 = Instance.new("Decal")
  73. Weld49 = Instance.new("Weld")
  74. CharacterMesh50 = Instance.new("CharacterMesh")
  75. CharacterMesh51 = Instance.new("CharacterMesh")
  76. CharacterMesh52 = Instance.new("CharacterMesh")
  77. CharacterMesh53 = Instance.new("CharacterMesh")
  78. CharacterMesh54 = Instance.new("CharacterMesh")
  79. Hat55 = Instance.new("Hat")
  80. Part56 = Instance.new("Part")
  81. SpecialMesh57 = Instance.new("SpecialMesh")
  82. Pants58 = Instance.new("Pants")
  83. Shirt59 = Instance.new("Shirt")
  84. Model0.Name = "Bacon Hair"
  85. Model0.Parent = mas
  86. Model0.PrimaryPart = Part46
  87. Script1.Name = "Ragdoller"
  88. Script1.Parent = Model0
  89. table.insert(cors,sandbox(Script1,function()
  90. print("Ragdoll script activated")
  91. Gibs = game.Workspace
  92.  
  93. function getKillerOfHumanoidIfStillInGame(humanoid)
  94. local tag = humanoid:findFirstChild("creator")
  95. if tag ~= nil then
  96. local killer = tag.Value
  97. if killer.Parent ~= nil then
  98. return killer
  99. end
  100. end
  101. return nil
  102. end
  103.  
  104. function OnDeath(Character)
  105. local svch = Character
  106. local hum = Character:findFirstChild("Humanoid")
  107. local getkiller = getKillerOfHumanoidIfStillInGame(hum)
  108. Character.Archivable = true
  109. local chrclone = Character:clone()
  110. Character.Archivable = false
  111.  
  112. local ch = chrclone:GetChildren()
  113. local i
  114. for i = 1,#ch do
  115. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  116. ch[i]:remove()
  117. end
  118. end
  119. local function Scan(ch)
  120. local e
  121. for e = 1,#ch do
  122. Scan(ch[e]:GetChildren())
  123. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  124. ch[e]:remove()
  125. end
  126. end
  127. end
  128. Scan(chrclone:GetChildren())
  129.  
  130. local hum2 = chrclone:findFirstChild("Humanoid")
  131.  
  132.  
  133. if hum2 ~= nil then
  134. hum2.Name = "Humanoid2"
  135. hum2.PlatformStand = true
  136. hum2.Sit = true
  137. hum2.MaxHealth = 0
  138. hum2.Health = 0
  139. end
  140.  
  141. local ch = Character:GetChildren()
  142. local i
  143. for i = 1,#ch do
  144. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  145. ch[i]:remove()
  146. end
  147. end
  148.  
  149. wait(0.2)
  150.  
  151. local ch = Character:GetChildren()
  152. local i
  153. for i = 1,#ch do
  154. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  155. ch[i]:remove()
  156. end
  157. end
  158. Character = chrclone
  159. local Torso = Character.Torso
  160. local movevector = Vector3.new()
  161.  
  162. if Torso then
  163. if getkiller ~= nil then
  164. if getkiller.Character ~= nil then
  165. local killtors = getkiller.Character:findFirstChild("Torso")
  166. if killtors ~= nil then
  167. movevector = CFrame.new(killtors.Position,Torso.Position).lookVector
  168. end
  169. end
  170. end
  171. local Head = Character:FindFirstChild("Head")
  172. if Head then
  173. local Neck = Instance.new("Weld")
  174. Neck.Name = "Neck"
  175. Neck.Part0 = Torso
  176. Neck.Part1 = Head
  177. Neck.C0 = CFrame.new(0, 1.5, 0)
  178. Neck.C1 = CFrame.new()
  179. Neck.Parent = Torso
  180.  
  181. local nsc = script.CamAttach:clone()
  182. nsc.CamPart.Value = hum2.Parent.Head
  183. nsc.Disabled = false
  184. nsc.Parent = svch
  185. end
  186. local Limb = Character:FindFirstChild("Right Arm")
  187. if Limb then
  188.  
  189. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  190. local Joint = Instance.new("Glue")
  191. Joint.Name = "RightShoulder"
  192. Joint.Part0 = Torso
  193. Joint.Part1 = Limb
  194. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  195. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  196. Joint.Parent = Torso
  197.  
  198. local B = Instance.new("Part")
  199. B.TopSurface = 0
  200. B.BottomSurface = 0
  201. B.formFactor = "Symmetric"
  202. B.Size = Vector3.new(1, 1, 1)
  203. B.Transparency = 1
  204. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  205. B.Parent = Character
  206. local W = Instance.new("Weld")
  207. W.Part0 = Limb
  208. W.Part1 = B
  209. W.C0 = CFrame.new(0, -0.5, 0)
  210. W.Parent = Limb
  211.  
  212. end
  213. local Limb = Character:FindFirstChild("Left Arm")
  214. if Limb then
  215.  
  216. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  217. local Joint = Instance.new("Glue")
  218. Joint.Name = "LeftShoulder"
  219. Joint.Part0 = Torso
  220. Joint.Part1 = Limb
  221. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  222. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  223. Joint.Parent = Torso
  224.  
  225. local B = Instance.new("Part")
  226. B.TopSurface = 0
  227. B.BottomSurface = 0
  228. B.formFactor = "Symmetric"
  229. B.Size = Vector3.new(1, 1, 1)
  230. B.Transparency = 1
  231. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  232. B.Parent = Character
  233. local W = Instance.new("Weld")
  234. W.Part0 = Limb
  235. W.Part1 = B
  236. W.C0 = CFrame.new(0, -0.5, 0)
  237. W.Parent = Limb
  238.  
  239. end
  240. local Limb = Character:FindFirstChild("Right Leg")
  241. if Limb then
  242.  
  243. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  244. local Joint = Instance.new("Glue")
  245. Joint.Name = "RightHip"
  246. Joint.Part0 = Torso
  247. Joint.Part1 = Limb
  248. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  249. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  250. Joint.Parent = Torso
  251.  
  252. local B = Instance.new("Part")
  253. B.TopSurface = 0
  254. B.BottomSurface = 0
  255. B.formFactor = "Symmetric"
  256. B.Size = Vector3.new(1, 1, 1)
  257. B.Transparency = 1
  258. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  259. B.Parent = Character
  260. local W = Instance.new("Weld")
  261. W.Part0 = Limb
  262. W.Part1 = B
  263. W.C0 = CFrame.new(0, -0.5, 0)
  264. W.Parent = Limb
  265.  
  266. end
  267. local Limb = Character:FindFirstChild("Left Leg")
  268. if Limb then
  269.  
  270. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  271. local Joint = Instance.new("Glue")
  272. Joint.Name = "LeftHip"
  273. Joint.Part0 = Torso
  274. Joint.Part1 = Limb
  275. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  276. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  277. Joint.Parent = Torso
  278.  
  279. local B = Instance.new("Part")
  280. B.TopSurface = 0
  281. B.BottomSurface = 0
  282. B.formFactor = "Symmetric"
  283. B.Size = Vector3.new(1, 1, 1)
  284. B.Transparency = 1
  285. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  286. B.Parent = Character
  287. local W = Instance.new("Weld")
  288. W.Part0 = Limb
  289. W.Part1 = B
  290. W.C0 = CFrame.new(0, -0.5, 0)
  291. W.Parent = Limb
  292.  
  293. end
  294. --[
  295. local Bar = Instance.new("Part")
  296. Bar.TopSurface = 0
  297. Bar.BottomSurface = 0
  298. Bar.formFactor = "Symmetric"
  299. Bar.Size = Vector3.new(1, 1, 1)
  300. Bar.Transparency = 1
  301. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  302. Bar.Parent = Character
  303. local Weld = Instance.new("Weld")
  304. Weld.Part0 = Torso
  305. Weld.Part1 = Bar
  306. Weld.C0 = CFrame.new(0, 0.5, 0)
  307. Weld.Parent = Torso
  308. --]]
  309. end
  310. Character.Parent = Gibs
  311. game.Debris:AddItem(Character, 65)
  312. if movevector ~= Vector3.new() then
  313. for i = 1,10 do
  314. wait()
  315. Torso.Velocity = movevector * 30
  316. end
  317. end
  318. end
  319.  
  320. script.Parent.Humanoid.Died:connect(function()
  321. OnDeath(script.Parent)
  322. end)
  323.  
  324.  
  325. end))
  326. LocalScript2.Name = "CamAttach"
  327. LocalScript2.Parent = Script1
  328. LocalScript2.Disabled = true
  329. table.insert(cors,sandbox(LocalScript2,function()
  330. wait()
  331. game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
  332. end))
  333. ObjectValue3.Name = "CamPart"
  334. ObjectValue3.Parent = LocalScript2
  335. Part4.Name = "Handle"
  336. Part4.Parent = Model0
  337. Part4.BrickColor = BrickColor.new("Lily white")
  338. Part4.Transparency = 1
  339. Part4.Rotation = Vector3.new(-180, 85, 180)
  340. Part4.CanCollide = false
  341. Part4.FormFactor = Enum.FormFactor.Symmetric
  342. Part4.Size = Vector3.new(2, 1, 1)
  343. Part4.CFrame = CFrame.new(-73.8521729, 3.60003209, -43.4567413, -0.0871742517, -1.04091158e-09, 0.996196091, -1.19232917e-08, 1, 1.51398306e-12, -0.996196091, -1.18778019e-08, -0.0871742442)
  344. Part4.RightSurface = Enum.SurfaceType.Hinge
  345. Part4.Color = Color3.new(0.929412, 0.917647, 0.917647)
  346. Part4.Position = Vector3.new(-73.8521729, 3.60003209, -43.4567413)
  347. Part4.Orientation = Vector3.new(0, 95, 0)
  348. Part4.Color = Color3.new(0.929412, 0.917647, 0.917647)
  349. Part5.Parent = Part4
  350. Part5.BrickColor = BrickColor.new("Lily white")
  351. Part5.Rotation = Vector3.new(-90, 0, 5)
  352. Part5.CanCollide = false
  353. Part5.FormFactor = Enum.FormFactor.Custom
  354. Part5.Size = Vector3.new(0.200000003, 0.799999595, 1)
  355. Part5.CFrame = CFrame.new(-74.1134338, 3.72003198, -43.9039803, 0.996196091, -0.0871740654, 4.48019399e-11, -1.06651799e-09, -1.19216015e-08, 1, -0.0871739537, -0.996196091, -1.10378977e-08)
  356. Part5.BackSurface = Enum.SurfaceType.Weld
  357. Part5.BottomSurface = Enum.SurfaceType.Weld
  358. Part5.FrontSurface = Enum.SurfaceType.Weld
  359. Part5.LeftSurface = Enum.SurfaceType.Weld
  360. Part5.RightSurface = Enum.SurfaceType.Weld
  361. Part5.TopSurface = Enum.SurfaceType.Weld
  362. Part5.Color = Color3.new(0.929412, 0.917647, 0.917647)
  363. Part5.Position = Vector3.new(-74.1134338, 3.72003198, -43.9039803)
  364. Part5.Orientation = Vector3.new(-90, 5, 0)
  365. Part5.Color = Color3.new(0.929412, 0.917647, 0.917647)
  366. Weld6.Parent = Part5
  367. Weld6.C0 = CFrame.new(28.2336063, 5.29926586, -3.78005195, 0.087155439, -1.06803189e-09, 0.99619472, 0.99619472, -1.19231904e-08, -0.0871555433, 1.10395817e-08, 1, 4.63730443e-11)
  368. Weld6.C1 = CFrame.new(5.76756954, -3.66005206, 28.0123272, 0.99619472, -1.19248806e-08, -0.087155737, 1.18795027e-08, 1, -1.03932174e-09, 0.087155737, 0, 0.99619472)
  369. Weld6.Part0 = Part5
  370. Weld6.Part1 = Part4
  371. SpecialMesh7.Parent = Part5
  372. SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=72012671"
  373. SpecialMesh7.Scale = Vector3.new(1, 1.29999995, 1.29999995)
  374. SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=168091402"
  375. SpecialMesh7.VertexColor = Vector3.new(0.899999976, 0.899999976, 1)
  376. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  377. SpecialMesh7.Scale = Vector3.new(1, 1.29999995, 1.29999995)
  378. Sound8.Name = "Fire"
  379. Sound8.Parent = Part4
  380. Sound8.SoundId = "http://roblox.com/asset/?id=10209859"
  381. Sound8.Volume = 1
  382. Sound9.Name = "Reload"
  383. Sound9.Parent = Part4
  384. Sound9.SoundId = "http://www.roblox.com/asset/?id=2691591"
  385. Sound9.Volume = 1
  386. Script10.Name = "Control"
  387. Script10.Parent = Model0
  388. table.insert(cors,sandbox(Script10,function()
  389. wait(.1)
  390. local ammo=3
  391. local w=.14
  392. local r=false
  393. local t=script.Parent
  394. Spawn(function()
  395. local c=t:Clone()
  396. wait(1)
  397. t.Humanoid.Died:wait()
  398. wait(65)
  399. c.Parent=workspace
  400. c:MakeJoints()
  401. t:Destroy()
  402. end)
  403. local cf={CFrame.new(.8,.5,.4)*CFrame.Angles(math.rad(270),math.rad(40),0),CFrame.new(-1.2,0.5,0.4)*CFrame.Angles(math.rad(270),math.rad(-5),0)}
  404. local c=LoadLibrary'RbxUtility'.Create
  405. local b1=c'Part'{TopSurface=0;BottomSurface=0;Anchored=true;CanCollide=false;BrickColor=BrickColor.new("Cool yellow");Size=Vector3.new(.2,.2,1);c'SpecialMesh'{MeshType=6;Scale=Vector3.new(.2,.2,1)}};Transparency=.5
  406. local b2=b1:Clone()
  407. b1.Name,b2.Name='1','2'
  408. local mov=c'Part'{Transparency=1;CanCollide=false;Parent=t;Anchored=true}
  409. local h=t:WaitForChild'Handle'
  410. local function reload(boo)
  411. if(boo and ammo~=30)or ammo==0 then
  412. r=true
  413. if w then
  414. w=.03
  415. end
  416. h.Reload:Play()
  417. wait(3)
  418. ammo=30
  419. if w then
  420. w=.14
  421. end
  422. r=false
  423. elseif boo then
  424. wait(.1)
  425. end
  426. end
  427. local function near()
  428. local dis,pl=300,nil
  429. for _,v in ipairs(game.Players:GetPlayers())do
  430. if v.Character and v.Character:FindFirstChild'Humanoid'and v:DistanceFromCharacter(h.Position)<dis then
  431. dis,pl=v:DistanceFromCharacter(h.Position),v
  432. end
  433. end
  434. if pl then
  435. return pl.Character:GetModelCFrame(),dis,CFrame.new(pl.Character.Humanoid.WalkToPoint).lookVector
  436. else
  437. return nil
  438. end
  439. end
  440. Spawn(function()
  441. while true do
  442. t.Humanoid.Jump=true
  443. while not w do wait(.1)end
  444. for i=1,math.random(4,9)do
  445. wait(w)
  446. end
  447. end
  448. end)
  449. Spawn(function()
  450. while wait(math.random(2,7)/10)do
  451. local n=near()
  452. if n and math.random(1,3)==2 or not n then
  453. mov.CFrame=t.Torso.CFrame+t.Torso.CFrame.lookVector*Vector3.new(math.random(-25,25),0,math.random(-25,25))
  454. else
  455. mov.CFrame=n+Vector3.new((math.random(1,2)==1 and 1 or -1)*math.random(25,50),0,(math.random(1,2)==1 and 1 or -1)*math.random(25,50))
  456. end
  457. wait(.1)
  458. t.Humanoid:MoveTo(mov.Position,mov)
  459. end
  460. end)
  461. while true do
  462. local n,mag,hum=near()
  463. if n then
  464. n=n.p
  465. if not r then
  466. w=.14
  467. local dir=h.Position-n
  468. local tst,_=workspace:FindPartOnRay(Ray.new(t.Torso.Position,(n-t.Torso.Position).Unit*999),t)
  469. local aim=n+Vector3.new(math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015),math.random(-mag*.015,mag*.015))*(2+math.random())+hum
  470. if tst and tst.Parent and game.Players:GetPlayerFromCharacter(tst.Parent)then
  471. wait(.08)
  472. h.Fire:Play()
  473. local par,pos=workspace:FindPartOnRay(Ray.new(h.Position,(aim-h.Position).Unit*999),t)
  474. if par then
  475. local h=par.Parent:FindFirstChild'Humanoid'or par.Parent.Parent:FindFirstChild'Humanoid'
  476. if h and h.Health-10>0 then
  477. h.Health=h.Health-10
  478. elseif h then
  479. h.Health=0
  480. h.Parent:BreakJoints()
  481. end
  482. end
  483. ammo=ammo-1
  484. mag=(h.Position-pos).magnitude
  485. b1.Parent,b2.Parent=t,t
  486. b1.CFrame,b2.CFrame=CFrame.new(h.Position:Lerp(pos,.375),pos),CFrame.new(pos:Lerp(h.Position,.125),h.Position)
  487. b1.Mesh.Scale,b2.Mesh.Scale=Vector3.new(.2,.2,mag*.75),Vector3.new(.2,.2,mag/4)
  488. Delay(.03,function()b1.Parent=nil wait(.03)b2.Parent=nil end)
  489. end
  490. wait(.05)
  491. if ammo==0 then
  492. reload()
  493. end
  494. end
  495. else
  496. reload(true)
  497. w=false
  498. end
  499. end
  500.  
  501. end))
  502. Script11.Name = "Animate"
  503. Script11.Parent = Model0
  504. table.insert(cors,sandbox(Script11,function()
  505. wait(5)
  506. function waitForChild(parent, childName)
  507. local child = parent:findFirstChild(childName)
  508. if child then return child end
  509. while true do
  510. child = parent.ChildAdded:wait()
  511. if child.Name==childName then return child end
  512. end
  513. end
  514.  
  515. local Figure = script.Parent
  516. local Torso = waitForChild(Figure, "Torso")
  517. local RightHip = waitForChild(Torso, "Right Hip")
  518. local LeftHip = waitForChild(Torso, "Left Hip")
  519. local Neck = waitForChild(Torso, "Neck")
  520. local Humanoid = waitForChild(Figure, "Humanoid")
  521. local pose = "Standing"
  522.  
  523. local currentAnim = ""
  524. local currentAnimTrack = nil
  525. local currentAnimKeyframeHandler = nil
  526. local oldAnimTrack = nil
  527. local animTable = {}
  528. local animNames = {
  529. idle = {
  530. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  531. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  532. },
  533. walk = {
  534. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  535. },
  536. run = {
  537. { id = "run.xml", weight = 10 }
  538. },
  539. jump = {
  540. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  541. },
  542. fall = {
  543. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  544. },
  545. climb = {
  546. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  547. },
  548. toolnone = {
  549. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  550. },
  551. toolslash = {
  552. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  553. -- { id = "slash.xml", weight = 10 }
  554. },
  555. toollunge = {
  556. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  557. },
  558. wave = {
  559. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  560. },
  561. point = {
  562. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  563. },
  564. dance = {
  565. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  566. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  567. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  568. },
  569. laugh = {
  570. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  571. },
  572. cheer = {
  573. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  574. },
  575. }
  576.  
  577. -- Existance in this list signifies that it is an emote, the value indicates If it is a looping emote
  578. local emoteNames = { wave = false, point = false, dance = true, laugh = false, cheer = false}
  579.  
  580. math.randomseed(tick())
  581.  
  582. -- Setup animation objects
  583. for name, fileList in pairs(animNames) do
  584. animTable[name] = {}
  585. animTable[name].count = 0
  586. animTable[name].totalWeight = 0
  587.  
  588. -- check for config values
  589. local config = script:FindFirstChild(name)
  590. if (config ~= nil) then
  591. -- print("Loading anims " .. name)
  592. local idx = 1
  593. for _, childPart in pairs(config:GetChildren()) do
  594. animTable[name][idx] = {}
  595. animTable[name][idx].anim = childPart
  596. local weightObject = childPart:FindFirstChild("Weight")
  597. if (weightObject == nil) then
  598. animTable[name][idx].weight = 1
  599. else
  600. animTable[name][idx].weight = weightObject.Value
  601. end
  602. animTable[name].count = animTable[name].count + 1
  603. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  604. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  605. idx = idx + 1
  606. end
  607. end
  608.  
  609. -- fallback to defaults
  610. if (animTable[name].count <= 0) then
  611. for idx, anim in pairs(fileList) do
  612. animTable[name][idx] = {}
  613. animTable[name][idx].anim = Instance.new("Animation")
  614. animTable[name][idx].anim.Name = name
  615. animTable[name][idx].anim.AnimationId = anim.id
  616. animTable[name][idx].weight = anim.weight
  617. animTable[name].count = animTable[name].count + 1
  618. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  619. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  620. end
  621. end
  622. end
  623.  
  624. -- ANIMATION
  625.  
  626. -- declarations
  627. local toolAnim = "None"
  628. local toolAnimTime = 0
  629.  
  630. local jumpAnimTime = 0
  631. local jumpAnimDuration = 0.175
  632.  
  633. local toolTransitionTime = 0.1
  634. local fallTransitionTime = 0.2
  635. local jumpMaxLimbVelocity = 0.75
  636.  
  637. -- functions
  638.  
  639. function stopAllAnimations()
  640. local oldAnim = currentAnim
  641.  
  642. -- return to idle If finishing an emote
  643. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  644. oldAnim = "idle"
  645. end
  646.  
  647. currentAnim = ""
  648. if (currentAnimKeyframeHandler ~= nil) then
  649. currentAnimKeyframeHandler:disconnect()
  650. end
  651.  
  652. if (oldAnimTrack ~= nil) then
  653. oldAnimTrack:Stop()
  654. oldAnimTrack:Destroy()
  655. oldAnimTrack = nil
  656. end
  657. if (currentAnimTrack ~= nil) then
  658. currentAnimTrack:Stop()
  659. currentAnimTrack:Destroy()
  660. currentAnimTrack = nil
  661. end
  662. return oldAnim
  663. end
  664.  
  665. function keyFrameReachedFunc(frameName)
  666. if (frameName == "End") then
  667. -- print("Keyframe : ".. frameName)
  668. local repeatAnim = stopAllAnimations()
  669. playAnimation(repeatAnim, 0.0, Humanoid)
  670. end
  671. end
  672.  
  673. -- Preload animations
  674. function playAnimation(animName, transitionTime, humanoid)
  675. if (animName ~= currentAnim) then
  676.  
  677. if (oldAnimTrack ~= nil) then
  678. oldAnimTrack:Stop()
  679. oldAnimTrack:Destroy()
  680. end
  681.  
  682. local roll = math.random(1, animTable[animName].totalWeight)
  683. local origRoll = roll
  684. local idx = 1
  685. while (roll > animTable[animName][idx].weight) do
  686. roll = roll - animTable[animName][idx].weight
  687. idx = idx + 1
  688. end
  689. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  690. local anim = animTable[animName][idx].anim
  691.  
  692. -- load it to the humanoid; get AnimationTrack
  693. oldAnimTrack = currentAnimTrack
  694. currentAnimTrack = humanoid:LoadAnimation(anim)
  695.  
  696. -- play the animation
  697. currentAnimTrack:Play(transitionTime)
  698. currentAnim = animName
  699.  
  700. -- set up keyframe name triggers
  701. if (currentAnimKeyframeHandler ~= nil) then
  702. currentAnimKeyframeHandler:disconnect()
  703. end
  704. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  705. end
  706. end
  707.  
  708. -------------------------------------------------------------------------------------------
  709. -------------------------------------------------------------------------------------------
  710.  
  711. local toolAnimName = ""
  712. local toolOldAnimTrack = nil
  713. local toolAnimTrack = nil
  714. local currentToolAnimKeyframeHandler = nil
  715.  
  716. function toolKeyFrameReachedFunc(frameName)
  717. if (frameName == "End") then
  718. -- print("Keyframe : ".. frameName)
  719. local repeatAnim = stopToolAnimations()
  720. playToolAnimation(repeatAnim, 0.0, Humanoid)
  721. end
  722. end
  723.  
  724.  
  725. function playToolAnimation(animName, transitionTime, humanoid)
  726. if (animName ~= toolAnimName) then
  727.  
  728. if (toolAnimTrack ~= nil) then
  729. toolAnimTrack:Stop()
  730. toolAnimTrack:Destroy()
  731. transitionTime = 0
  732. end
  733.  
  734. local roll = math.random(1, animTable[animName].totalWeight)
  735. local origRoll = roll
  736. local idx = 1
  737. while (roll > animTable[animName][idx].weight) do
  738. roll = roll - animTable[animName][idx].weight
  739. idx = idx + 1
  740. end
  741. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  742. local anim = animTable[animName][idx].anim
  743.  
  744. -- load it to the humanoid; get AnimationTrack
  745. toolOldAnimTrack = toolAnimTrack
  746. toolAnimTrack = humanoid:LoadAnimation(anim)
  747.  
  748. -- play the animation
  749. toolAnimTrack:Play(transitionTime)
  750. toolAnimName = animName
  751.  
  752. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  753. end
  754. end
  755.  
  756. function stopToolAnimations()
  757. local oldAnim = toolAnimName
  758.  
  759. if (currentToolAnimKeyframeHandler ~= nil) then
  760. currentToolAnimKeyframeHandler:disconnect()
  761. end
  762.  
  763. toolAnimName = ""
  764. if (toolAnimTrack ~= nil) then
  765. toolAnimTrack:Stop()
  766. toolAnimTrack:Destroy()
  767. toolAnimTrack = nil
  768. end
  769.  
  770.  
  771. return oldAnim
  772. end
  773.  
  774. -------------------------------------------------------------------------------------------
  775. -------------------------------------------------------------------------------------------
  776.  
  777.  
  778. function onRunning(speed)
  779. if speed>0 then
  780. playAnimation("walk", 0.1, Humanoid)
  781. pose = "Running"
  782. else
  783. playAnimation("idle", 0.1, Humanoid)
  784. pose = "Standing"
  785. end
  786. end
  787.  
  788. function onDied()
  789. pose = "Dead"
  790. end
  791.  
  792. function onJumping()
  793. playAnimation("jump", 0.1, Humanoid)
  794. jumpAnimTime = jumpAnimDuration
  795. pose = "Jumping"
  796. end
  797.  
  798. function onClimbing()
  799. playAnimation("climb", 0.1, Humanoid)
  800. pose = "Climbing"
  801. end
  802.  
  803. function onGettingUp()
  804. pose = "GettingUp"
  805. end
  806.  
  807. function onFreeFall()
  808. if (jumpAnimTime <= 0) then
  809. playAnimation("fall", fallTransitionTime, Humanoid)
  810. end
  811. pose = "FreeFall"
  812. end
  813.  
  814. function onFallingDown()
  815. pose = "FallingDown"
  816. end
  817.  
  818. function onSeated()
  819. pose = "Seated"
  820. end
  821.  
  822. function onPlatformStanding()
  823. pose = "PlatformStanding"
  824. end
  825.  
  826. function onSwimming(speed)
  827. if speed>0 then
  828. pose = "Running"
  829. else
  830. pose = "Standing"
  831. end
  832. end
  833.  
  834. function getTool()
  835. for _, kid in ipairs(Figure:GetChildren()) do
  836. if kid.className == "Tool" then return kid end
  837. end
  838. return nil
  839. end
  840.  
  841. function getToolAnim(tool)
  842. for _, c in ipairs(tool:GetChildren()) do
  843. if c.Name == "toolanim" and c.className == "StringValue" then
  844. return c
  845. end
  846. end
  847. return nil
  848. end
  849.  
  850. function animateTool()
  851.  
  852. if (toolAnim == "None") then
  853. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  854. return
  855. end
  856.  
  857. if (toolAnim == "Slash") then
  858. playToolAnimation("toolslash", 0, Humanoid)
  859. return
  860. end
  861.  
  862. if (toolAnim == "Lunge") then
  863. playToolAnimation("toollunge", 0, Humanoid)
  864. return
  865. end
  866. end
  867.  
  868. function moveSit()
  869. RightHip:SetDesiredAngle(3.14 /2)
  870. LeftHip:SetDesiredAngle(-3.14 /2)
  871. end
  872.  
  873. local lastTick = 0
  874.  
  875. function move(time)
  876. local amplitude = 1
  877. local frequency = 1
  878. local deltaTime = time - lastTick
  879. lastTick = time
  880.  
  881. local climbFudge = 0
  882. local setAngles = false
  883.  
  884. if (jumpAnimTime > 0) then
  885. jumpAnimTime = jumpAnimTime - deltaTime
  886. end
  887.  
  888. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  889. playAnimation("fall", fallTransitionTime, Humanoid)
  890. elseif (pose == "Seated") then
  891. stopAllAnimations()
  892. moveSit()
  893. return
  894. elseif (pose == "Running") then
  895. playAnimation("walk", 0.1, Humanoid)
  896. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  897. -- print("Wha " .. pose)
  898. amplitude = 0.1
  899. frequency = 1
  900. setAngles = true
  901. end
  902.  
  903. if (setAngles) then
  904. desiredAngle = amplitude * math.sin(time * frequency)
  905.  
  906. RightHip:SetDesiredAngle(-desiredAngle)
  907. LeftHip:SetDesiredAngle(-desiredAngle)
  908. end
  909.  
  910. -- Tool Animation handling
  911. local tool = getTool()
  912. if tool then
  913.  
  914. animStringValueObject = getToolAnim(tool)
  915.  
  916. if animStringValueObject then
  917. toolAnim = animStringValueObject.Value
  918. -- message recieved, delete StringValue
  919. animStringValueObject.Parent = nil
  920. toolAnimTime = time + .3
  921. end
  922.  
  923. if time > toolAnimTime then
  924. toolAnimTime = 0
  925. toolAnim = "None"
  926. end
  927.  
  928. animateTool()
  929. else
  930. stopToolAnimations()
  931. toolAnim = "None"
  932. toolAnimTime = 0
  933. end
  934. end
  935.  
  936. -- connect events
  937. Humanoid.Died:connect(onDied)
  938. Humanoid.Running:connect(onRunning)
  939. Humanoid.Jumping:connect(onJumping)
  940. Humanoid.Climbing:connect(onClimbing)
  941. Humanoid.GettingUp:connect(onGettingUp)
  942. Humanoid.FreeFalling:connect(onFreeFall)
  943. Humanoid.FallingDown:connect(onFallingDown)
  944. Humanoid.Seated:connect(onSeated)
  945. Humanoid.PlatformStanding:connect(onPlatformStanding)
  946. Humanoid.Swimming:connect(onSwimming)
  947. -- main program
  948.  
  949. local runService = game:service("RunService");
  950.  
  951. -- initialize to idle
  952. playAnimation("idle", 0.1, Humanoid)
  953. pose = "Standing"
  954.  
  955. while Figure.Parent~=nil do
  956. local _, time = wait(0.1)
  957. move(time)
  958. end
  959.  
  960. end))
  961. StringValue12.Name = "walk"
  962. StringValue12.Parent = Script11
  963. Animation13.Name = "WalkAnim"
  964. Animation13.Parent = StringValue12
  965. Animation13.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  966. StringValue14.Name = "toolnone"
  967. StringValue14.Parent = Script11
  968. Animation15.Name = "ToolNoneAnim"
  969. Animation15.Parent = StringValue14
  970. Animation15.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  971. StringValue16.Name = "run"
  972. StringValue16.Parent = Script11
  973. Animation17.Name = "RunAnim"
  974. Animation17.Parent = StringValue16
  975. Animation17.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  976. StringValue18.Name = "jump"
  977. StringValue18.Parent = Script11
  978. Animation19.Name = "JumpAnim"
  979. Animation19.Parent = StringValue18
  980. Animation19.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  981. StringValue20.Name = "idle"
  982. StringValue20.Parent = Script11
  983. Animation21.Name = "Animation2"
  984. Animation21.Parent = StringValue20
  985. Animation21.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  986. NumberValue22.Name = "Weight"
  987. NumberValue22.Parent = Animation21
  988. NumberValue22.Value = 1
  989. Animation23.Name = "Animation1"
  990. Animation23.Parent = StringValue20
  991. Animation23.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  992. NumberValue24.Name = "Weight"
  993. NumberValue24.Parent = Animation23
  994. NumberValue24.Value = 9
  995. StringValue25.Name = "fall"
  996. StringValue25.Parent = Script11
  997. Animation26.Name = "FallAnim"
  998. Animation26.Parent = StringValue25
  999. Animation26.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  1000. StringValue27.Name = "climb"
  1001. StringValue27.Parent = Script11
  1002. Animation28.Name = "ClimbAnim"
  1003. Animation28.Parent = StringValue27
  1004. Animation28.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  1005. Part29.Name = "HumanoidRootPart"
  1006. Part29.Parent = Model0
  1007. Part29.BrickColor = BrickColor.new("Lily white")
  1008. Part29.Transparency = 1
  1009. Part29.FormFactor = Enum.FormFactor.Symmetric
  1010. Part29.Size = Vector3.new(2, 2, 1)
  1011. Part29.CFrame = CFrame.new(-74.7176056, 3.00003195, -41.8752747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
  1012. Part29.BottomSurface = Enum.SurfaceType.Smooth
  1013. Part29.TopSurface = Enum.SurfaceType.Smooth
  1014. Part29.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1015. Part29.Position = Vector3.new(-74.7176056, 3.00003195, -41.8752747)
  1016. Part29.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1017. Motor6D30.Name = "RootJoint"
  1018. Motor6D30.Parent = Part29
  1019. Motor6D30.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1020. Motor6D30.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1021. Motor6D30.Part0 = Part29
  1022. Motor6D30.Part1 = Part40
  1023. Motor6D30.MaxVelocity = 0.10000000149012
  1024. Humanoid31.Parent = Model0
  1025. Humanoid31.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  1026. Humanoid31.RightLeg = Part32
  1027. Humanoid31.LeftLeg = Part35
  1028. Humanoid31.Torso = Part29
  1029. Humanoid31.WalkSpeed = 8
  1030. Part32.Name = "Right Leg"
  1031. Part32.Parent = Model0
  1032. Part32.BrickColor = BrickColor.new("Lily white")
  1033. Part32.CanCollide = false
  1034. Part32.FormFactor = Enum.FormFactor.Symmetric
  1035. Part32.Size = Vector3.new(1, 2, 1)
  1036. Part32.CFrame = CFrame.new(-74.2176056, 1.00003195, -41.8752823, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
  1037. Part32.BottomSurface = Enum.SurfaceType.Smooth
  1038. Part32.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1039. Part32.Position = Vector3.new(-74.2176056, 1.00003195, -41.8752823)
  1040. Part32.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1041. ManualWeld33.Name = "Right Leg Terrain Joint"
  1042. ManualWeld33.Parent = Part32
  1043. ManualWeld33.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
  1044. ManualWeld33.Part1 = Part32
  1045. ManualWeld34.Name = "Right Leg Terrain Joint"
  1046. ManualWeld34.Parent = Part32
  1047. ManualWeld34.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
  1048. ManualWeld34.Part1 = Part32
  1049. Part35.Name = "Left Leg"
  1050. Part35.Parent = Model0
  1051. Part35.BrickColor = BrickColor.new("Lily white")
  1052. Part35.CanCollide = false
  1053. Part35.FormFactor = Enum.FormFactor.Symmetric
  1054. Part35.Size = Vector3.new(1, 2, 1)
  1055. Part35.CFrame = CFrame.new(-75.2176056, 1.00003195, -41.875267, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
  1056. Part35.BottomSurface = Enum.SurfaceType.Smooth
  1057. Part35.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1058. Part35.Position = Vector3.new(-75.2176056, 1.00003195, -41.875267)
  1059. Part35.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1060. ManualWeld36.Name = "Left Leg Terrain Joint"
  1061. ManualWeld36.Parent = Part35
  1062. ManualWeld36.C1 = CFrame.new(49.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
  1063. ManualWeld36.Part1 = Part35
  1064. Part37.Name = "Right Arm"
  1065. Part37.Parent = Model0
  1066. Part37.BrickColor = BrickColor.new("Lily white")
  1067. Part37.Rotation = Vector3.new(90, 0, -5)
  1068. Part37.CanCollide = false
  1069. Part37.FormFactor = Enum.FormFactor.Symmetric
  1070. Part37.Size = Vector3.new(1, 2, 1)
  1071. Part37.CFrame = CFrame.new(-73.5657578, 3.40003204, -42.4779816, 0.996196091, 0.0871742517, 1.04091158e-09, 1.51398306e-12, 1.19232917e-08, -1, -0.0871742442, 0.996196091, 1.18778019e-08)
  1072. Part37.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1073. Part37.Position = Vector3.new(-73.5657578, 3.40003204, -42.4779816)
  1074. Part37.Orientation = Vector3.new(90, 5, 0)
  1075. Part37.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1076. Weld38.Name = "RightGrip"
  1077. Weld38.Parent = Part37
  1078. Weld38.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1079. Weld38.C1 = CFrame.new(0, -0.200000003, 0.200000003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1080. Weld38.Part0 = Part37
  1081. Weld38.Part1 = Part4
  1082. Part39.Name = "Left Arm"
  1083. Part39.Parent = Model0
  1084. Part39.BrickColor = BrickColor.new("Lily white")
  1085. Part39.Rotation = Vector3.new(90, 0, 40)
  1086. Part39.CanCollide = false
  1087. Part39.FormFactor = Enum.FormFactor.Symmetric
  1088. Part39.Size = Vector3.new(1, 2, 1)
  1089. Part39.CFrame = CFrame.new(-75.0090637, 3.40003204, -42.7725258, 0.766058505, -0.642775476, -7.66365194e-09, -5.28874904e-14, 1.19226868e-08, -1, 0.642775476, 0.766058445, 9.13343889e-09)
  1090. Part39.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1091. Part39.Position = Vector3.new(-75.0090637, 3.40003204, -42.7725258)
  1092. Part39.Orientation = Vector3.new(90, -40, 0)
  1093. Part39.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1094. Part40.Name = "Torso"
  1095. Part40.Parent = Model0
  1096. Part40.BrickColor = BrickColor.new("Bright red")
  1097. Part40.FormFactor = Enum.FormFactor.Symmetric
  1098. Part40.Size = Vector3.new(2, 2, 1)
  1099. Part40.CFrame = CFrame.new(-74.7176056, 3.00003195, -41.8752747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
  1100. Part40.LeftSurface = Enum.SurfaceType.Weld
  1101. Part40.RightSurface = Enum.SurfaceType.Weld
  1102. Part40.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1103. Part40.Position = Vector3.new(-74.7176056, 3.00003195, -41.8752747)
  1104. Part40.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1105. Weld41.Parent = Part40
  1106. Weld41.C1 = CFrame.new(-1.20000005, 0.5, 0.400000006, 0.99619472, 0, -0.087155737, 0.087155737, 1.19248806e-08, 0.99619472, 1.03932174e-09, -1, 1.18795027e-08)
  1107. Weld41.Part0 = Part40
  1108. Weld41.Part1 = Part37
  1109. Weld42.Parent = Part40
  1110. Weld42.C1 = CFrame.new(0.800000012, 0.5, 0.400000006, 0.766044438, 0, 0.642787576, -0.642787576, 1.19248806e-08, 0.766044438, -7.66516539e-09, -1, 9.13498877e-09)
  1111. Weld42.Part0 = Part40
  1112. Weld42.Part1 = Part39
  1113. Motor6D43.Name = "Neck"
  1114. Motor6D43.Parent = Part40
  1115. Motor6D43.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1116. Motor6D43.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1117. Motor6D43.Part0 = Part40
  1118. Motor6D43.Part1 = Part46
  1119. Motor6D43.MaxVelocity = 0.10000000149012
  1120. Motor6D44.Name = "Left Hip"
  1121. Motor6D44.Parent = Part40
  1122. Motor6D44.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1123. Motor6D44.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1124. Motor6D44.Part0 = Part40
  1125. Motor6D44.Part1 = Part35
  1126. Motor6D44.MaxVelocity = 0.10000000149012
  1127. Motor6D45.Name = "Right Hip"
  1128. Motor6D45.Parent = Part40
  1129. Motor6D45.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1130. Motor6D45.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1131. Motor6D45.Part0 = Part40
  1132. Motor6D45.Part1 = Part32
  1133. Motor6D45.MaxVelocity = 0.10000000149012
  1134. Part46.Name = "Head"
  1135. Part46.Parent = Model0
  1136. Part46.BrickColor = BrickColor.new("Lily white")
  1137. Part46.FormFactor = Enum.FormFactor.Symmetric
  1138. Part46.Size = Vector3.new(2, 1, 1)
  1139. Part46.CFrame = CFrame.new(-74.7176056, 4.50003195, -41.8752747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
  1140. Part46.TopSurface = Enum.SurfaceType.Smooth
  1141. Part46.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1142. Part46.Position = Vector3.new(-74.7176056, 4.50003195, -41.8752747)
  1143. Part46.Color = Color3.new(0.929412, 0.917647, 0.917647)
  1144. SpecialMesh47.Parent = Part46
  1145. SpecialMesh47.Scale = Vector3.new(1.25, 1.25, 1.25)
  1146. SpecialMesh47.Scale = Vector3.new(1.25, 1.25, 1.25)
  1147. Decal48.Name = "face"
  1148. Decal48.Parent = Part46
  1149. Decal48.Texture = "http://www.roblox.com/asset/?id=144080495 "
  1150. Weld49.Name = "HeadWeld"
  1151. Weld49.Parent = Part46
  1152. Weld49.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1153. Weld49.C1 = CFrame.new(0, 0.25, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1154. Weld49.Part0 = Part46
  1155. Weld49.Part1 = Part56
  1156. CharacterMesh50.Name = "3.0 Male Left Arm"
  1157. CharacterMesh50.Parent = Model0
  1158. CharacterMesh50.MeshId = 82907977
  1159. CharacterMesh50.BodyPart = Enum.BodyPart.LeftArm
  1160. CharacterMesh51.Name = "3.0 Male Left Leg"
  1161. CharacterMesh51.Parent = Model0
  1162. CharacterMesh51.MeshId = 81487640
  1163. CharacterMesh51.BodyPart = Enum.BodyPart.LeftLeg
  1164. CharacterMesh52.Name = "3.0 Male Right Arm"
  1165. CharacterMesh52.Parent = Model0
  1166. CharacterMesh52.MeshId = 82908019
  1167. CharacterMesh52.BodyPart = Enum.BodyPart.RightArm
  1168. CharacterMesh53.Name = "3.0 Male Right Leg"
  1169. CharacterMesh53.Parent = Model0
  1170. CharacterMesh53.MeshId = 81487710
  1171. CharacterMesh53.BodyPart = Enum.BodyPart.RightLeg
  1172. CharacterMesh54.Name = "3.0 Male Torso"
  1173. CharacterMesh54.Parent = Model0
  1174. CharacterMesh54.MeshId = 82907945
  1175. CharacterMesh54.BodyPart = Enum.BodyPart.Torso
  1176. Hat55.Name = "Pal Hair"
  1177. Hat55.Parent = Model0
  1178. Hat55.AttachmentPos = Vector3.new(0, 0.25, 0.25)
  1179. Part56.Name = "Handle"
  1180. Part56.Parent = Hat55
  1181. Part56.CanCollide = false
  1182. Part56.Locked = true
  1183. Part56.FormFactor = Enum.FormFactor.Symmetric
  1184. Part56.Size = Vector3.new(1, 1, 2)
  1185. Part56.CFrame = CFrame.new(-74.7176132, 4.75003195, -42.1252747, 1.00000298, -1.3691485e-12, 1.83209777e-05, 1.36975078e-12, 1, -1.71468395e-12, -1.83135271e-05, 1.71773891e-12, 1.00000298)
  1186. Part56.BottomSurface = Enum.SurfaceType.Smooth
  1187. Part56.TopSurface = Enum.SurfaceType.Smooth
  1188. Part56.Position = Vector3.new(-74.7176132, 4.75003195, -42.1252747)
  1189. SpecialMesh57.Parent = Part56
  1190. SpecialMesh57.MeshId = "http://www.roblox.com/asset/?id=83293901"
  1191. SpecialMesh57.Scale = Vector3.new(1, 1.04999995, 1)
  1192. SpecialMesh57.TextureId = "http://www.roblox.com/asset/?id=83284747"
  1193. SpecialMesh57.VertexColor = Vector3.new(1.20000005, 1.39999998, 1.39999998)
  1194. SpecialMesh57.MeshType = Enum.MeshType.FileMesh
  1195. SpecialMesh57.Scale = Vector3.new(1, 1.04999995, 1)
  1196. Pants58.Name = "Pants"
  1197. Pants58.Parent = Model0
  1198. Pants58.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
  1199. Shirt59.Name = "Shirt"
  1200. Shirt59.Parent = Model0
  1201. Shirt59.ShirtTemplate = "http://www.roblox.com/asset/?id=144076357"
  1202. for i,v in pairs(mas:GetChildren()) do
  1203. v.Parent = workspace
  1204. pcall(function() v:MakeJoints() end)
  1205. end
  1206. mas:Destroy()
  1207. for i,v in pairs(cors) do
  1208. spawn(function()
  1209. pcall(v)
  1210. end)
  1211. end
  1212. end
  1213. end
  1214.  
  1215. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement