Advertisement
End_Wolf

Untitled

Jun 1st, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Script1 = Instance.new("Script")
  21. LocalScript2 = Instance.new("LocalScript")
  22. ObjectValue3 = Instance.new("ObjectValue")
  23. Shirt4 = Instance.new("Shirt")
  24. Pants5 = Instance.new("Pants")
  25. Hat6 = Instance.new("Hat")
  26. Part7 = Instance.new("Part")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Weld11 = Instance.new("Weld")
  31. SpecialMesh12 = Instance.new("SpecialMesh")
  32. Sound13 = Instance.new("Sound")
  33. Sound14 = Instance.new("Sound")
  34. Script15 = Instance.new("Script")
  35. Script16 = Instance.new("Script")
  36. StringValue17 = Instance.new("StringValue")
  37. Animation18 = Instance.new("Animation")
  38. StringValue19 = Instance.new("StringValue")
  39. Animation20 = Instance.new("Animation")
  40. StringValue21 = Instance.new("StringValue")
  41. Animation22 = Instance.new("Animation")
  42. StringValue23 = Instance.new("StringValue")
  43. Animation24 = Instance.new("Animation")
  44. StringValue25 = Instance.new("StringValue")
  45. Animation26 = Instance.new("Animation")
  46. NumberValue27 = Instance.new("NumberValue")
  47. Animation28 = Instance.new("Animation")
  48. NumberValue29 = Instance.new("NumberValue")
  49. StringValue30 = Instance.new("StringValue")
  50. Animation31 = Instance.new("Animation")
  51. StringValue32 = Instance.new("StringValue")
  52. Animation33 = Instance.new("Animation")
  53. Part34 = Instance.new("Part")
  54. Motor6D35 = Instance.new("Motor6D")
  55. Humanoid36 = Instance.new("Humanoid")
  56. Part37 = Instance.new("Part")
  57. ManualWeld38 = Instance.new("ManualWeld")
  58. ManualWeld39 = Instance.new("ManualWeld")
  59. Part40 = Instance.new("Part")
  60. ManualWeld41 = Instance.new("ManualWeld")
  61. Part42 = Instance.new("Part")
  62. Weld43 = Instance.new("Weld")
  63. Part44 = Instance.new("Part")
  64. Part45 = Instance.new("Part")
  65. Weld46 = Instance.new("Weld")
  66. Weld47 = Instance.new("Weld")
  67. Motor6D48 = Instance.new("Motor6D")
  68. Motor6D49 = Instance.new("Motor6D")
  69. Motor6D50 = Instance.new("Motor6D")
  70. Part51 = Instance.new("Part")
  71. Weld52 = Instance.new("Weld")
  72. Weld53 = Instance.new("Weld")
  73. SpecialMesh54 = Instance.new("SpecialMesh")
  74. Weld55 = Instance.new("Weld")
  75. Weld56 = Instance.new("Weld")
  76. Weld57 = Instance.new("Weld")
  77. Weld58 = Instance.new("Weld")
  78. Weld59 = Instance.new("Weld")
  79. Weld60 = Instance.new("Weld")
  80. Weld61 = Instance.new("Weld")
  81. Weld62 = Instance.new("Weld")
  82. Weld63 = Instance.new("Weld")
  83. Weld64 = Instance.new("Weld")
  84. Weld65 = Instance.new("Weld")
  85. Weld66 = Instance.new("Weld")
  86. Weld67 = Instance.new("Weld")
  87. Weld68 = Instance.new("Weld")
  88. Decal69 = Instance.new("Decal")
  89. Model0.Name = ""
  90. Model0.Parent = mas
  91. Model0.PrimaryPart = Part51
  92. Script1.Name = "Ragdoller"
  93. Script1.Parent = Model0
  94. table.insert(cors,sandbox(Script1,function()
  95. print("Ragdoll script activated")
  96. Gibs = game.Workspace
  97.  
  98. function getKillerOfHumanoidIfStillInGame(humanoid)
  99. local tag = humanoid:findFirstChild("creator")
  100. if tag ~= nil then
  101. local killer = tag.Value
  102. if killer.Parent ~= nil then
  103. return killer
  104. end
  105. end
  106. return nil
  107. end
  108.  
  109. function OnDeath(Character)
  110. local svch = Character
  111. local hum = Character:findFirstChild("Humanoid")
  112. local getkiller = getKillerOfHumanoidIfStillInGame(hum)
  113. Character.Archivable = true
  114. local chrclone = Character:clone()
  115. Character.Archivable = false
  116.  
  117. local ch = chrclone:GetChildren()
  118. local i
  119. for i = 1,#ch do
  120. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  121. ch[i]:remove()
  122. end
  123. end
  124. local function Scan(ch)
  125. local e
  126. for e = 1,#ch do
  127. Scan(ch[e]:GetChildren())
  128. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  129. ch[e]:remove()
  130. end
  131. end
  132. end
  133. Scan(chrclone:GetChildren())
  134.  
  135. local hum2 = chrclone:findFirstChild("Humanoid")
  136.  
  137.  
  138. if hum2 ~= nil then
  139. hum2.Name = "Humanoid2"
  140. hum2.PlatformStand = true
  141. hum2.Sit = true
  142. hum2.MaxHealth = 0
  143. hum2.Health = 0
  144. end
  145.  
  146. local ch = Character:GetChildren()
  147. local i
  148. for i = 1,#ch do
  149. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  150. ch[i]:remove()
  151. end
  152. end
  153.  
  154. wait(0.2)
  155.  
  156. local ch = Character:GetChildren()
  157. local i
  158. for i = 1,#ch do
  159. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  160. ch[i]:remove()
  161. end
  162. end
  163. Character = chrclone
  164. local Torso = Character.Torso
  165. local movevector = Vector3.new()
  166.  
  167. if Torso then
  168. if getkiller ~= nil then
  169. if getkiller.Character ~= nil then
  170. local killtors = getkiller.Character:findFirstChild("Torso")
  171. if killtors ~= nil then
  172. movevector = CFrame.new(killtors.Position,Torso.Position).lookVector
  173. end
  174. end
  175. end
  176. local Head = Character:FindFirstChild("Head")
  177. if Head then
  178. local Neck = Instance.new("Weld")
  179. Neck.Name = "Neck"
  180. Neck.Part0 = Torso
  181. Neck.Part1 = Head
  182. Neck.C0 = CFrame.new(0, 1.5, 0)
  183. Neck.C1 = CFrame.new()
  184. Neck.Parent = Torso
  185.  
  186. local nsc = script.CamAttach:clone()
  187. nsc.CamPart.Value = hum2.Parent.Head
  188. nsc.Disabled = false
  189. nsc.Parent = svch
  190. end
  191. local Limb = Character:FindFirstChild("Right Arm")
  192. if Limb then
  193.  
  194. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  195. local Joint = Instance.new("Glue")
  196. Joint.Name = "RightShoulder"
  197. Joint.Part0 = Torso
  198. Joint.Part1 = Limb
  199. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  200. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  201. Joint.Parent = Torso
  202.  
  203. local B = Instance.new("Part")
  204. B.TopSurface = 0
  205. B.BottomSurface = 0
  206. B.formFactor = "Symmetric"
  207. B.Size = Vector3.new(1, 1, 1)
  208. B.Transparency = 1
  209. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  210. B.Parent = Character
  211. local W = Instance.new("Weld")
  212. W.Part0 = Limb
  213. W.Part1 = B
  214. W.C0 = CFrame.new(0, -0.5, 0)
  215. W.Parent = Limb
  216.  
  217. end
  218. local Limb = Character:FindFirstChild("Left Arm")
  219. if Limb then
  220.  
  221. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  222. local Joint = Instance.new("Glue")
  223. Joint.Name = "LeftShoulder"
  224. Joint.Part0 = Torso
  225. Joint.Part1 = Limb
  226. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  227. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  228. Joint.Parent = Torso
  229.  
  230. local B = Instance.new("Part")
  231. B.TopSurface = 0
  232. B.BottomSurface = 0
  233. B.formFactor = "Symmetric"
  234. B.Size = Vector3.new(1, 1, 1)
  235. B.Transparency = 1
  236. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  237. B.Parent = Character
  238. local W = Instance.new("Weld")
  239. W.Part0 = Limb
  240. W.Part1 = B
  241. W.C0 = CFrame.new(0, -0.5, 0)
  242. W.Parent = Limb
  243.  
  244. end
  245. local Limb = Character:FindFirstChild("Right Leg")
  246. if Limb then
  247.  
  248. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  249. local Joint = Instance.new("Glue")
  250. Joint.Name = "RightHip"
  251. Joint.Part0 = Torso
  252. Joint.Part1 = Limb
  253. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  254. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  255. Joint.Parent = Torso
  256.  
  257. local B = Instance.new("Part")
  258. B.TopSurface = 0
  259. B.BottomSurface = 0
  260. B.formFactor = "Symmetric"
  261. B.Size = Vector3.new(1, 1, 1)
  262. B.Transparency = 1
  263. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  264. B.Parent = Character
  265. local W = Instance.new("Weld")
  266. W.Part0 = Limb
  267. W.Part1 = B
  268. W.C0 = CFrame.new(0, -0.5, 0)
  269. W.Parent = Limb
  270.  
  271. end
  272. local Limb = Character:FindFirstChild("Left Leg")
  273. if Limb then
  274.  
  275. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  276. local Joint = Instance.new("Glue")
  277. Joint.Name = "LeftHip"
  278. Joint.Part0 = Torso
  279. Joint.Part1 = Limb
  280. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  281. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  282. Joint.Parent = Torso
  283.  
  284. local B = Instance.new("Part")
  285. B.TopSurface = 0
  286. B.BottomSurface = 0
  287. B.formFactor = "Symmetric"
  288. B.Size = Vector3.new(1, 1, 1)
  289. B.Transparency = 1
  290. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  291. B.Parent = Character
  292. local W = Instance.new("Weld")
  293. W.Part0 = Limb
  294. W.Part1 = B
  295. W.C0 = CFrame.new(0, -0.5, 0)
  296. W.Parent = Limb
  297.  
  298. end
  299. --[
  300. local Bar = Instance.new("Part")
  301. Bar.TopSurface = 0
  302. Bar.BottomSurface = 0
  303. Bar.formFactor = "Symmetric"
  304. Bar.Size = Vector3.new(1, 1, 1)
  305. Bar.Transparency = 1
  306. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  307. Bar.Parent = Character
  308. local Weld = Instance.new("Weld")
  309. Weld.Part0 = Torso
  310. Weld.Part1 = Bar
  311. Weld.C0 = CFrame.new(0, 0.5, 0)
  312. Weld.Parent = Torso
  313. --]]
  314. end
  315. Character.Parent = Gibs
  316. game.Debris:AddItem(Character, 65)
  317. if movevector ~= Vector3.new() then
  318. for i = 1,10 do
  319. wait()
  320. Torso.Velocity = movevector * 30
  321. end
  322. end
  323. end
  324.  
  325. script.Parent.Humanoid.Died:connect(function()
  326. OnDeath(script.Parent)
  327. end)
  328.  
  329.  
  330. end))
  331. LocalScript2.Name = "CamAttach"
  332. LocalScript2.Parent = Script1
  333. table.insert(cors,sandbox(LocalScript2,function()
  334. wait()
  335. game.Workspace.CurrentCamera.CameraSubject = script.CamPart.Value
  336. end))
  337. LocalScript2.Disabled = true
  338. ObjectValue3.Name = "CamPart"
  339. ObjectValue3.Parent = LocalScript2
  340. Shirt4.Name = "Blu"
  341. Shirt4.Parent = Model0
  342. Shirt4.ShirtTemplate = "http://www.roblox.com/asset/?id=28984380"
  343. Pants5.Name = "Blu1"
  344. Pants5.Parent = Model0
  345. Pants5.PantsTemplate = "http://www.roblox.com/asset?id=28984542"
  346. Hat6.Name = "BluetoothEarPiece"
  347. Hat6.Parent = Model0
  348. Hat6.AttachmentPoint = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. Hat6.AttachmentPos = Vector3.new(0.629999995, 0.300000012, 0.100000001)
  350. Part7.Name = "Handle"
  351. Part7.Parent = Hat6
  352. Part7.CFrame = CFrame.new(-9.94933319, 4.70001411, 26.9783211, 1.07288361e-06, -3.00177661e-11, 0.999990106, -1.60635949e-11, 1, 2.98063796e-11, -0.999990106, -1.64259717e-11, 1.07288361e-06)
  353. Part7.Orientation = Vector3.new(0, 90, 0)
  354. Part7.Position = Vector3.new(-9.94933319, 4.70001411, 26.9783211)
  355. Part7.Rotation = Vector3.new(0, 89.75, 0)
  356. Part7.Size = Vector3.new(1, 1, 1)
  357. Part7.BottomSurface = Enum.SurfaceType.Smooth
  358. Part7.CanCollide = false
  359. Part7.Locked = true
  360. Part7.TopSurface = Enum.SurfaceType.Smooth
  361. Part7.FormFactor = Enum.FormFactor.Symmetric
  362. Part7.formFactor = Enum.FormFactor.Symmetric
  363. SpecialMesh8.Parent = Part7
  364. SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=29760978"
  365. SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=29760984"
  366. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  367. Part9.Name = "Handle"
  368. Part9.Parent = Model0
  369. Part9.CFrame = CFrame.new(-11.4307652, 3.60001421, 25.4828739, -0.996185005, -1.19094041e-08, -0.0871538073, -1.19531736e-08, 1, -1.86002654e-11, 0.0871538073, 1.02287268e-09, -0.996185005)
  370. Part9.Orientation = Vector3.new(0, -175, 0)
  371. Part9.Position = Vector3.new(-11.4307652, 3.60001421, 25.4828739)
  372. Part9.Rotation = Vector3.new(180, -5, 180)
  373. Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
  374. Part9.Transparency = 1
  375. Part9.Size = Vector3.new(2, 1, 1)
  376. Part9.BrickColor = BrickColor.new("Bright yellow")
  377. Part9.CanCollide = false
  378. Part9.RightParamA = 0
  379. Part9.RightParamB = 0
  380. Part9.RightSurface = Enum.SurfaceType.Hinge
  381. Part9.brickColor = BrickColor.new("Bright yellow")
  382. Part9.FormFactor = Enum.FormFactor.Symmetric
  383. Part9.formFactor = Enum.FormFactor.Symmetric
  384. Part10.Parent = Part9
  385. Part10.CFrame = CFrame.new(-11.878005, 3.7200141, 25.7441254, -0.0871535167, -0.996185005, -1.10694902e-08, -1.08663223e-09, -1.19514834e-08, 1, -0.996185005, 0.087153621, -6.28105346e-11)
  386. Part10.Orientation = Vector3.new(-90, 95, 0)
  387. Part10.Position = Vector3.new(-11.878005, 3.7200141, 25.7441254)
  388. Part10.Rotation = Vector3.new(-90, 0, 95)
  389. Part10.Color = Color3.new(0.388235, 0.372549, 0.384314)
  390. Part10.Size = Vector3.new(0.200000003, 0.799999595, 1)
  391. Part10.BackSurface = Enum.SurfaceType.Weld
  392. Part10.BottomSurface = Enum.SurfaceType.Weld
  393. Part10.BrickColor = BrickColor.new("Dark stone grey")
  394. Part10.CanCollide = false
  395. Part10.FrontSurface = Enum.SurfaceType.Weld
  396. Part10.LeftSurface = Enum.SurfaceType.Weld
  397. Part10.RightSurface = Enum.SurfaceType.Weld
  398. Part10.TopSurface = Enum.SurfaceType.Weld
  399. Part10.brickColor = BrickColor.new("Dark stone grey")
  400. Part10.FormFactor = Enum.FormFactor.Custom
  401. Part10.formFactor = Enum.FormFactor.Custom
  402. Weld11.Parent = Part10
  403. Weld11.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)
  404. Weld11.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)
  405. Weld11.Part0 = Part10
  406. Weld11.Part1 = Part9
  407. Weld11.part1 = Part9
  408. SpecialMesh12.Parent = Part10
  409. SpecialMesh12.MeshId = "http://www.roblox.com/asset/?id=72012671"
  410. SpecialMesh12.Scale = Vector3.new(1, 1.29999995, 1.29999995)
  411. SpecialMesh12.VertexColor = Vector3.new(0.899999976, 0.899999976, 1)
  412. SpecialMesh12.TextureId = "http://www.roblox.com/asset/?id=168091402"
  413. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  414. Sound13.Name = "Fire"
  415. Sound13.Parent = Part9
  416. Sound13.EmitterSize = 0
  417. Sound13.MinDistance = 0
  418. Sound13.SoundId = "http://roblox.com/asset/?id=10209859"
  419. Sound13.Volume = 1
  420. Sound14.Name = "Reload"
  421. Sound14.Parent = Part9
  422. Sound14.EmitterSize = 0
  423. Sound14.MinDistance = 0
  424. Sound14.SoundId = "http://www.roblox.com/asset/?id=2691591"
  425. Sound14.Volume = 1
  426. Script15.Name = "Control"
  427. Script15.Parent = Model0
  428. table.insert(cors,sandbox(Script15,function()
  429. wait(.1)
  430. local ammo=3
  431. local w=.14
  432. local r=false
  433. local t=script.Parent
  434. Spawn(function()
  435. local c=t:Clone()
  436. wait(1)
  437. t.Humanoid.Died:wait()
  438. wait(65)
  439. c.Parent=workspace
  440. c:MakeJoints()
  441. t:Destroy()
  442. end)
  443. 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)}
  444. local c=LoadLibrary'RbxUtility'.Create
  445. 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
  446. local b2=b1:Clone()
  447. b1.Name,b2.Name='1','2'
  448. local mov=c'Part'{Transparency=1;CanCollide=false;Parent=t;Anchored=true}
  449. local h=t:WaitForChild'Handle'
  450. local function reload(boo)
  451. if(boo and ammo~=30)or ammo==0 then
  452. r=true
  453. if w then
  454. w=.03
  455. end
  456. h.Reload:Play()
  457. wait(3)
  458. ammo=30
  459. if w then
  460. w=.14
  461. end
  462. r=false
  463. elseif boo then
  464. wait(.1)
  465. end
  466. end
  467. local function near()
  468. local dis,pl=300,nil
  469. for _,v in ipairs(game.Players:GetPlayers())do
  470. if v.Character and v.Character:FindFirstChild'Humanoid'and v:DistanceFromCharacter(h.Position)<dis then
  471. dis,pl=v:DistanceFromCharacter(h.Position),v
  472. end
  473. end
  474. if pl then
  475. return pl.Character:GetModelCFrame(),dis,CFrame.new(pl.Character.Humanoid.WalkToPoint).lookVector
  476. else
  477. return nil
  478. end
  479. end
  480. Spawn(function()
  481. while true do
  482. t.Humanoid.Jump=true
  483. while not w do wait(.1)end
  484. for i=1,math.random(4,9)do
  485. wait(w)
  486. end
  487. end
  488. end)
  489. Spawn(function()
  490. while wait(math.random(2,7)/10)do
  491. local n=near()
  492. if n and math.random(1,3)==2 or not n then
  493. mov.CFrame=t.Torso.CFrame+t.Torso.CFrame.lookVector*Vector3.new(math.random(-25,25),0,math.random(-25,25))
  494. else
  495. 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))
  496. end
  497. wait(.1)
  498. t.Humanoid:MoveTo(mov.Position,mov)
  499. end
  500. end)
  501. while true do
  502. local n,mag,hum=near()
  503. if n then
  504. n=n.p
  505. if not r then
  506. w=.14
  507. local dir=h.Position-n
  508. local tst,_=workspace:FindPartOnRay(Ray.new(t.Torso.Position,(n-t.Torso.Position).Unit*999),t)
  509. 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
  510. if tst and tst.Parent and game.Players:GetPlayerFromCharacter(tst.Parent)then
  511. wait(.08)
  512. h.Fire:Play()
  513. local par,pos=workspace:FindPartOnRay(Ray.new(h.Position,(aim-h.Position).Unit*999),t)
  514. if par then
  515. local h=par.Parent:FindFirstChild'Humanoid'or par.Parent.Parent:FindFirstChild'Humanoid'
  516. if h and h.Health-10>0 then
  517. h.Health=h.Health-10
  518. elseif h then
  519. h.Health=0
  520. h.Parent:BreakJoints()
  521. end
  522. end
  523. ammo=ammo-1
  524. mag=(h.Position-pos).magnitude
  525. b1.Parent,b2.Parent=t,t
  526. b1.CFrame,b2.CFrame=CFrame.new(h.Position:Lerp(pos,.375),pos),CFrame.new(pos:Lerp(h.Position,.125),h.Position)
  527. b1.Mesh.Scale,b2.Mesh.Scale=Vector3.new(.2,.2,mag*.75),Vector3.new(.2,.2,mag/4)
  528. Delay(.03,function()b1.Parent=nil wait(.03)b2.Parent=nil end)
  529. end
  530. wait(.05)
  531. if ammo==0 then
  532. reload()
  533. end
  534. end
  535. else
  536. reload(true)
  537. w=false
  538. end
  539. end
  540.  
  541. end))
  542. Script16.Name = "Animate"
  543. Script16.Parent = Model0
  544. table.insert(cors,sandbox(Script16,function()
  545. wait(5)
  546. function waitForChild(parent, childName)
  547. local child = parent:findFirstChild(childName)
  548. if child then return child end
  549. while true do
  550. child = parent.ChildAdded:wait()
  551. if child.Name==childName then return child end
  552. end
  553. end
  554.  
  555. local Figure = script.Parent
  556. local Torso = waitForChild(Figure, "Torso")
  557. local RightHip = waitForChild(Torso, "Right Hip")
  558. local LeftHip = waitForChild(Torso, "Left Hip")
  559. local Neck = waitForChild(Torso, "Neck")
  560. local Humanoid = waitForChild(Figure, "Humanoid")
  561. local pose = "Standing"
  562.  
  563. local currentAnim = ""
  564. local currentAnimTrack = nil
  565. local currentAnimKeyframeHandler = nil
  566. local oldAnimTrack = nil
  567. local animTable = {}
  568. local animNames = {
  569. idle = {
  570. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  571. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  572. },
  573. walk = {
  574. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  575. },
  576. run = {
  577. { id = "run.xml", weight = 10 }
  578. },
  579. jump = {
  580. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  581. },
  582. fall = {
  583. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  584. },
  585. climb = {
  586. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  587. },
  588. toolnone = {
  589. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  590. },
  591. toolslash = {
  592. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  593. -- { id = "slash.xml", weight = 10 }
  594. },
  595. toollunge = {
  596. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  597. },
  598. wave = {
  599. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  600. },
  601. point = {
  602. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  603. },
  604. dance = {
  605. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  606. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  607. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  608. },
  609. laugh = {
  610. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  611. },
  612. cheer = {
  613. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  614. },
  615. }
  616.  
  617. -- Existance in this list signifies that it is an emote, the value indicates If it is a looping emote
  618. local emoteNames = { wave = false, point = false, dance = true, laugh = false, cheer = false}
  619.  
  620. math.randomseed(tick())
  621.  
  622. -- Setup animation objects
  623. for name, fileList in pairs(animNames) do
  624. animTable[name] = {}
  625. animTable[name].count = 0
  626. animTable[name].totalWeight = 0
  627.  
  628. -- check for config values
  629. local config = script:FindFirstChild(name)
  630. if (config ~= nil) then
  631. -- print("Loading anims " .. name)
  632. local idx = 1
  633. for _, childPart in pairs(config:GetChildren()) do
  634. animTable[name][idx] = {}
  635. animTable[name][idx].anim = childPart
  636. local weightObject = childPart:FindFirstChild("Weight")
  637. if (weightObject == nil) then
  638. animTable[name][idx].weight = 1
  639. else
  640. animTable[name][idx].weight = weightObject.Value
  641. end
  642. animTable[name].count = animTable[name].count + 1
  643. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  644. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  645. idx = idx + 1
  646. end
  647. end
  648.  
  649. -- fallback to defaults
  650. if (animTable[name].count <= 0) then
  651. for idx, anim in pairs(fileList) do
  652. animTable[name][idx] = {}
  653. animTable[name][idx].anim = Instance.new("Animation")
  654. animTable[name][idx].anim.Name = name
  655. animTable[name][idx].anim.AnimationId = anim.id
  656. animTable[name][idx].weight = anim.weight
  657. animTable[name].count = animTable[name].count + 1
  658. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  659. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  660. end
  661. end
  662. end
  663.  
  664. -- ANIMATION
  665.  
  666. -- declarations
  667. local toolAnim = "None"
  668. local toolAnimTime = 0
  669.  
  670. local jumpAnimTime = 0
  671. local jumpAnimDuration = 0.175
  672.  
  673. local toolTransitionTime = 0.1
  674. local fallTransitionTime = 0.2
  675. local jumpMaxLimbVelocity = 0.75
  676.  
  677. -- functions
  678.  
  679. function stopAllAnimations()
  680. local oldAnim = currentAnim
  681.  
  682. -- return to idle If finishing an emote
  683. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  684. oldAnim = "idle"
  685. end
  686.  
  687. currentAnim = ""
  688. if (currentAnimKeyframeHandler ~= nil) then
  689. currentAnimKeyframeHandler:disconnect()
  690. end
  691.  
  692. if (oldAnimTrack ~= nil) then
  693. oldAnimTrack:Stop()
  694. oldAnimTrack:Destroy()
  695. oldAnimTrack = nil
  696. end
  697. if (currentAnimTrack ~= nil) then
  698. currentAnimTrack:Stop()
  699. currentAnimTrack:Destroy()
  700. currentAnimTrack = nil
  701. end
  702. return oldAnim
  703. end
  704.  
  705. function keyFrameReachedFunc(frameName)
  706. if (frameName == "End") then
  707. -- print("Keyframe : ".. frameName)
  708. local repeatAnim = stopAllAnimations()
  709. playAnimation(repeatAnim, 0.0, Humanoid)
  710. end
  711. end
  712.  
  713. -- Preload animations
  714. function playAnimation(animName, transitionTime, humanoid)
  715. if (animName ~= currentAnim) then
  716.  
  717. if (oldAnimTrack ~= nil) then
  718. oldAnimTrack:Stop()
  719. oldAnimTrack:Destroy()
  720. end
  721.  
  722. local roll = math.random(1, animTable[animName].totalWeight)
  723. local origRoll = roll
  724. local idx = 1
  725. while (roll > animTable[animName][idx].weight) do
  726. roll = roll - animTable[animName][idx].weight
  727. idx = idx + 1
  728. end
  729. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  730. local anim = animTable[animName][idx].anim
  731.  
  732. -- load it to the humanoid; get AnimationTrack
  733. oldAnimTrack = currentAnimTrack
  734. currentAnimTrack = humanoid:LoadAnimation(anim)
  735.  
  736. -- play the animation
  737. currentAnimTrack:Play(transitionTime)
  738. currentAnim = animName
  739.  
  740. -- set up keyframe name triggers
  741. if (currentAnimKeyframeHandler ~= nil) then
  742. currentAnimKeyframeHandler:disconnect()
  743. end
  744. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  745. end
  746. end
  747.  
  748. -------------------------------------------------------------------------------------------
  749. -------------------------------------------------------------------------------------------
  750.  
  751. local toolAnimName = ""
  752. local toolOldAnimTrack = nil
  753. local toolAnimTrack = nil
  754. local currentToolAnimKeyframeHandler = nil
  755.  
  756. function toolKeyFrameReachedFunc(frameName)
  757. if (frameName == "End") then
  758. -- print("Keyframe : ".. frameName)
  759. local repeatAnim = stopToolAnimations()
  760. playToolAnimation(repeatAnim, 0.0, Humanoid)
  761. end
  762. end
  763.  
  764.  
  765. function playToolAnimation(animName, transitionTime, humanoid)
  766. if (animName ~= toolAnimName) then
  767.  
  768. if (toolAnimTrack ~= nil) then
  769. toolAnimTrack:Stop()
  770. toolAnimTrack:Destroy()
  771. transitionTime = 0
  772. end
  773.  
  774. local roll = math.random(1, animTable[animName].totalWeight)
  775. local origRoll = roll
  776. local idx = 1
  777. while (roll > animTable[animName][idx].weight) do
  778. roll = roll - animTable[animName][idx].weight
  779. idx = idx + 1
  780. end
  781. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  782. local anim = animTable[animName][idx].anim
  783.  
  784. -- load it to the humanoid; get AnimationTrack
  785. toolOldAnimTrack = toolAnimTrack
  786. toolAnimTrack = humanoid:LoadAnimation(anim)
  787.  
  788. -- play the animation
  789. toolAnimTrack:Play(transitionTime)
  790. toolAnimName = animName
  791.  
  792. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  793. end
  794. end
  795.  
  796. function stopToolAnimations()
  797. local oldAnim = toolAnimName
  798.  
  799. if (currentToolAnimKeyframeHandler ~= nil) then
  800. currentToolAnimKeyframeHandler:disconnect()
  801. end
  802.  
  803. toolAnimName = ""
  804. if (toolAnimTrack ~= nil) then
  805. toolAnimTrack:Stop()
  806. toolAnimTrack:Destroy()
  807. toolAnimTrack = nil
  808. end
  809.  
  810.  
  811. return oldAnim
  812. end
  813.  
  814. -------------------------------------------------------------------------------------------
  815. -------------------------------------------------------------------------------------------
  816.  
  817.  
  818. function onRunning(speed)
  819. if speed>0 then
  820. playAnimation("walk", 0.1, Humanoid)
  821. pose = "Running"
  822. else
  823. playAnimation("idle", 0.1, Humanoid)
  824. pose = "Standing"
  825. end
  826. end
  827.  
  828. function onDied()
  829. pose = "Dead"
  830. end
  831.  
  832. function onJumping()
  833. playAnimation("jump", 0.1, Humanoid)
  834. jumpAnimTime = jumpAnimDuration
  835. pose = "Jumping"
  836. end
  837.  
  838. function onClimbing()
  839. playAnimation("climb", 0.1, Humanoid)
  840. pose = "Climbing"
  841. end
  842.  
  843. function onGettingUp()
  844. pose = "GettingUp"
  845. end
  846.  
  847. function onFreeFall()
  848. if (jumpAnimTime <= 0) then
  849. playAnimation("fall", fallTransitionTime, Humanoid)
  850. end
  851. pose = "FreeFall"
  852. end
  853.  
  854. function onFallingDown()
  855. pose = "FallingDown"
  856. end
  857.  
  858. function onSeated()
  859. pose = "Seated"
  860. end
  861.  
  862. function onPlatformStanding()
  863. pose = "PlatformStanding"
  864. end
  865.  
  866. function onSwimming(speed)
  867. if speed>0 then
  868. pose = "Running"
  869. else
  870. pose = "Standing"
  871. end
  872. end
  873.  
  874. function getTool()
  875. for _, kid in ipairs(Figure:GetChildren()) do
  876. if kid.className == "Tool" then return kid end
  877. end
  878. return nil
  879. end
  880.  
  881. function getToolAnim(tool)
  882. for _, c in ipairs(tool:GetChildren()) do
  883. if c.Name == "toolanim" and c.className == "StringValue" then
  884. return c
  885. end
  886. end
  887. return nil
  888. end
  889.  
  890. function animateTool()
  891.  
  892. if (toolAnim == "None") then
  893. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  894. return
  895. end
  896.  
  897. if (toolAnim == "Slash") then
  898. playToolAnimation("toolslash", 0, Humanoid)
  899. return
  900. end
  901.  
  902. if (toolAnim == "Lunge") then
  903. playToolAnimation("toollunge", 0, Humanoid)
  904. return
  905. end
  906. end
  907.  
  908. function moveSit()
  909. RightHip:SetDesiredAngle(3.14 /2)
  910. LeftHip:SetDesiredAngle(-3.14 /2)
  911. end
  912.  
  913. local lastTick = 0
  914.  
  915. function move(time)
  916. local amplitude = 1
  917. local frequency = 1
  918. local deltaTime = time - lastTick
  919. lastTick = time
  920.  
  921. local climbFudge = 0
  922. local setAngles = false
  923.  
  924. if (jumpAnimTime > 0) then
  925. jumpAnimTime = jumpAnimTime - deltaTime
  926. end
  927.  
  928. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  929. playAnimation("fall", fallTransitionTime, Humanoid)
  930. elseif (pose == "Seated") then
  931. stopAllAnimations()
  932. moveSit()
  933. return
  934. elseif (pose == "Running") then
  935. playAnimation("walk", 0.1, Humanoid)
  936. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  937. -- print("Wha " .. pose)
  938. amplitude = 0.1
  939. frequency = 1
  940. setAngles = true
  941. end
  942.  
  943. if (setAngles) then
  944. desiredAngle = amplitude * math.sin(time * frequency)
  945.  
  946. RightHip:SetDesiredAngle(-desiredAngle)
  947. LeftHip:SetDesiredAngle(-desiredAngle)
  948. end
  949.  
  950. -- Tool Animation handling
  951. local tool = getTool()
  952. if tool then
  953.  
  954. animStringValueObject = getToolAnim(tool)
  955.  
  956. if animStringValueObject then
  957. toolAnim = animStringValueObject.Value
  958. -- message recieved, delete StringValue
  959. animStringValueObject.Parent = nil
  960. toolAnimTime = time + .3
  961. end
  962.  
  963. if time > toolAnimTime then
  964. toolAnimTime = 0
  965. toolAnim = "None"
  966. end
  967.  
  968. animateTool()
  969. else
  970. stopToolAnimations()
  971. toolAnim = "None"
  972. toolAnimTime = 0
  973. end
  974. end
  975.  
  976. -- connect events
  977. Humanoid.Died:connect(onDied)
  978. Humanoid.Running:connect(onRunning)
  979. Humanoid.Jumping:connect(onJumping)
  980. Humanoid.Climbing:connect(onClimbing)
  981. Humanoid.GettingUp:connect(onGettingUp)
  982. Humanoid.FreeFalling:connect(onFreeFall)
  983. Humanoid.FallingDown:connect(onFallingDown)
  984. Humanoid.Seated:connect(onSeated)
  985. Humanoid.PlatformStanding:connect(onPlatformStanding)
  986. Humanoid.Swimming:connect(onSwimming)
  987. -- main program
  988.  
  989. local runService = game:service("RunService");
  990.  
  991. -- initialize to idle
  992. playAnimation("idle", 0.1, Humanoid)
  993. pose = "Standing"
  994.  
  995. while Figure.Parent~=nil do
  996. local _, time = wait(0.1)
  997. move(time)
  998. end
  999.  
  1000. end))
  1001. StringValue17.Name = "walk"
  1002. StringValue17.Parent = Script16
  1003. Animation18.Name = "WalkAnim"
  1004. Animation18.Parent = StringValue17
  1005. Animation18.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  1006. StringValue19.Name = "toolnone"
  1007. StringValue19.Parent = Script16
  1008. Animation20.Name = "ToolNoneAnim"
  1009. Animation20.Parent = StringValue19
  1010. Animation20.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  1011. StringValue21.Name = "run"
  1012. StringValue21.Parent = Script16
  1013. Animation22.Name = "RunAnim"
  1014. Animation22.Parent = StringValue21
  1015. Animation22.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  1016. StringValue23.Name = "jump"
  1017. StringValue23.Parent = Script16
  1018. Animation24.Name = "JumpAnim"
  1019. Animation24.Parent = StringValue23
  1020. Animation24.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1021. StringValue25.Name = "idle"
  1022. StringValue25.Parent = Script16
  1023. Animation26.Name = "Animation2"
  1024. Animation26.Parent = StringValue25
  1025. Animation26.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  1026. NumberValue27.Name = "Weight"
  1027. NumberValue27.Parent = Animation26
  1028. NumberValue27.Value = 1
  1029. Animation28.Name = "Animation1"
  1030. Animation28.Parent = StringValue25
  1031. Animation28.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  1032. NumberValue29.Name = "Weight"
  1033. NumberValue29.Parent = Animation28
  1034. NumberValue29.Value = 9
  1035. StringValue30.Name = "fall"
  1036. StringValue30.Parent = Script16
  1037. Animation31.Name = "FallAnim"
  1038. Animation31.Parent = StringValue30
  1039. Animation31.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  1040. StringValue32.Name = "climb"
  1041. StringValue32.Parent = Script16
  1042. Animation33.Name = "ClimbAnim"
  1043. Animation33.Parent = StringValue32
  1044. Animation33.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  1045. Part34.Name = "HumanoidRootPart"
  1046. Part34.Parent = Model0
  1047. Part34.CFrame = CFrame.new(-9.84933376, 3.00001407, 26.3483276, 1.07288361e-06, -3.00177661e-11, 0.999990106, -1.60635949e-11, 1, 2.98063796e-11, -0.999990106, -1.64259717e-11, 1.07288361e-06)
  1048. Part34.Orientation = Vector3.new(0, 90, 0)
  1049. Part34.Position = Vector3.new(-9.84933376, 3.00001407, 26.3483276)
  1050. Part34.Rotation = Vector3.new(0, 89.75, 0)
  1051. Part34.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1052. Part34.Transparency = 1
  1053. Part34.Size = Vector3.new(2, 2, 1)
  1054. Part34.BottomSurface = Enum.SurfaceType.Smooth
  1055. Part34.BrickColor = BrickColor.new("Bright yellow")
  1056. Part34.LeftParamA = 0
  1057. Part34.LeftParamB = 0
  1058. Part34.RightParamA = 0
  1059. Part34.RightParamB = 0
  1060. Part34.TopSurface = Enum.SurfaceType.Smooth
  1061. Part34.brickColor = BrickColor.new("Bright yellow")
  1062. Part34.FormFactor = Enum.FormFactor.Symmetric
  1063. Part34.formFactor = Enum.FormFactor.Symmetric
  1064. Motor6D35.Name = "RootJoint"
  1065. Motor6D35.Parent = Part34
  1066. Motor6D35.MaxVelocity = 0.10000000149012
  1067. Motor6D35.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1068. Motor6D35.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1069. Motor6D35.Part0 = Part34
  1070. Motor6D35.Part1 = Part45
  1071. Motor6D35.part1 = Part45
  1072. Humanoid36.Parent = Model0
  1073. Humanoid36.JumpPower = 0
  1074. Humanoid36.LeftLeg = Part40
  1075. Humanoid36.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  1076. Humanoid36.RightLeg = Part37
  1077. Humanoid36.Torso = Part34
  1078. Humanoid36.WalkSpeed = 8
  1079. Part37.Name = "Right Leg"
  1080. Part37.Parent = Model0
  1081. Part37.CFrame = CFrame.new(-9.84933281, 1.00001407, 25.8483334, 1.07288361e-06, -3.00177661e-11, 0.999990106, -1.60635949e-11, 1, 2.98063796e-11, -0.999990106, -1.64259717e-11, 1.07288361e-06)
  1082. Part37.Orientation = Vector3.new(0, 90, 0)
  1083. Part37.Position = Vector3.new(-9.84933281, 1.00001407, 25.8483334)
  1084. Part37.Rotation = Vector3.new(0, 89.75, 0)
  1085. Part37.Color = Color3.new(1, 0.8, 0.6)
  1086. Part37.Size = Vector3.new(1, 2, 1)
  1087. Part37.BottomSurface = Enum.SurfaceType.Smooth
  1088. Part37.BrickColor = BrickColor.new("Pastel brown")
  1089. Part37.CanCollide = false
  1090. Part37.brickColor = BrickColor.new("Pastel brown")
  1091. Part37.FormFactor = Enum.FormFactor.Symmetric
  1092. Part37.formFactor = Enum.FormFactor.Symmetric
  1093. ManualWeld38.Name = "Right Leg Terrain Joint"
  1094. ManualWeld38.Parent = Part37
  1095. ManualWeld38.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
  1096. ManualWeld38.Part1 = Part37
  1097. ManualWeld38.part1 = Part37
  1098. ManualWeld39.Name = "Right Leg Terrain Joint"
  1099. ManualWeld39.Parent = Part37
  1100. ManualWeld39.C1 = CFrame.new(48.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
  1101. ManualWeld39.Part1 = Part37
  1102. ManualWeld39.part1 = Part37
  1103. Part40.Name = "Left Leg"
  1104. Part40.Parent = Model0
  1105. Part40.CFrame = CFrame.new(-9.84933472, 1.00001407, 26.8483219, 1.07288361e-06, -3.00177661e-11, 0.999990106, -1.60635949e-11, 1, 2.98063796e-11, -0.999990106, -1.64259717e-11, 1.07288361e-06)
  1106. Part40.Orientation = Vector3.new(0, 90, 0)
  1107. Part40.Position = Vector3.new(-9.84933472, 1.00001407, 26.8483219)
  1108. Part40.Rotation = Vector3.new(0, 89.75, 0)
  1109. Part40.Color = Color3.new(1, 0.8, 0.6)
  1110. Part40.Size = Vector3.new(1, 2, 1)
  1111. Part40.BottomSurface = Enum.SurfaceType.Smooth
  1112. Part40.BrickColor = BrickColor.new("Pastel brown")
  1113. Part40.CanCollide = false
  1114. Part40.brickColor = BrickColor.new("Pastel brown")
  1115. Part40.FormFactor = Enum.FormFactor.Symmetric
  1116. Part40.formFactor = Enum.FormFactor.Symmetric
  1117. ManualWeld41.Name = "Left Leg Terrain Joint"
  1118. ManualWeld41.Parent = Part40
  1119. ManualWeld41.C1 = CFrame.new(49.1884766, -1.0000329, -34.9884872, -1.23466252e-17, 0, 1, 0, 1, 0, -1, 0, 1.23466252e-17)
  1120. ManualWeld41.Part1 = Part40
  1121. ManualWeld41.part1 = Part40
  1122. Part42.Name = "Right Arm"
  1123. Part42.Parent = Model0
  1124. Part42.CFrame = CFrame.new(-10.4520111, 3.40001416, 25.1964836, -0.0871538073, 0.996185005, 1.19094041e-08, -1.86002654e-11, 1.19531736e-08, -1, -0.996185005, -0.0871538073, -1.02287268e-09)
  1125. Part42.Orientation = Vector3.new(90, 95, 0)
  1126. Part42.Position = Vector3.new(-10.4520111, 3.40001416, 25.1964836)
  1127. Part42.Rotation = Vector3.new(90, 0, -95)
  1128. Part42.Color = Color3.new(1, 0.8, 0.6)
  1129. Part42.Size = Vector3.new(1, 2, 1)
  1130. Part42.BrickColor = BrickColor.new("Pastel brown")
  1131. Part42.CanCollide = false
  1132. Part42.brickColor = BrickColor.new("Pastel brown")
  1133. Part42.FormFactor = Enum.FormFactor.Symmetric
  1134. Part42.formFactor = Enum.FormFactor.Symmetric
  1135. Weld43.Name = "RightGrip"
  1136. Weld43.Parent = Part42
  1137. Weld43.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1138. Weld43.C1 = CFrame.new(0, -0.200000003, 0.200000003, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1139. Weld43.Part0 = Part42
  1140. Weld43.Part1 = Part9
  1141. Weld43.part1 = Part9
  1142. Part44.Name = "Left Arm"
  1143. Part44.Parent = Model0
  1144. Part44.CFrame = CFrame.new(-10.7465773, 3.40001416, 26.6397648, 0.642782032, 0.766036153, 9.16490794e-09, 6.85374327e-12, 1.1958039e-08, -1, -0.766036153, 0.642782032, 7.68152564e-09)
  1145. Part44.Orientation = Vector3.new(90, 50, 0)
  1146. Part44.Position = Vector3.new(-10.7465773, 3.40001416, 26.6397648)
  1147. Part44.Rotation = Vector3.new(90, 0, -50)
  1148. Part44.Color = Color3.new(1, 0.8, 0.6)
  1149. Part44.Size = Vector3.new(1, 2, 1)
  1150. Part44.BrickColor = BrickColor.new("Pastel brown")
  1151. Part44.CanCollide = false
  1152. Part44.brickColor = BrickColor.new("Pastel brown")
  1153. Part44.FormFactor = Enum.FormFactor.Symmetric
  1154. Part44.formFactor = Enum.FormFactor.Symmetric
  1155. Part45.Name = "Torso"
  1156. Part45.Parent = Model0
  1157. Part45.CFrame = CFrame.new(-9.84933376, 3.00001407, 26.3483276, 1.07288361e-06, -3.00177661e-11, 0.999990106, -1.60635949e-11, 1, 2.98063796e-11, -0.999990106, -1.64259717e-11, 1.07288361e-06)
  1158. Part45.Orientation = Vector3.new(0, 90, 0)
  1159. Part45.Position = Vector3.new(-9.84933376, 3.00001407, 26.3483276)
  1160. Part45.Rotation = Vector3.new(0, 89.75, 0)
  1161. Part45.Color = Color3.new(1, 0.8, 0.6)
  1162. Part45.Size = Vector3.new(2, 2, 1)
  1163. Part45.BrickColor = BrickColor.new("Pastel brown")
  1164. Part45.LeftParamA = 0
  1165. Part45.LeftParamB = 0
  1166. Part45.LeftSurface = Enum.SurfaceType.Weld
  1167. Part45.RightParamA = 0
  1168. Part45.RightParamB = 0
  1169. Part45.RightSurface = Enum.SurfaceType.Weld
  1170. Part45.brickColor = BrickColor.new("Pastel brown")
  1171. Part45.FormFactor = Enum.FormFactor.Symmetric
  1172. Part45.formFactor = Enum.FormFactor.Symmetric
  1173. Weld46.Parent = Part45
  1174. Weld46.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)
  1175. Weld46.Part0 = Part45
  1176. Weld46.Part1 = Part42
  1177. Weld46.part1 = Part42
  1178. Weld47.Parent = Part45
  1179. Weld47.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)
  1180. Weld47.Part0 = Part45
  1181. Weld47.Part1 = Part44
  1182. Weld47.part1 = Part44
  1183. Motor6D48.Name = "Neck"
  1184. Motor6D48.Parent = Part45
  1185. Motor6D48.MaxVelocity = 0.10000000149012
  1186. Motor6D48.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1187. Motor6D48.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1188. Motor6D48.Part0 = Part45
  1189. Motor6D48.Part1 = Part51
  1190. Motor6D48.part1 = Part51
  1191. Motor6D49.Name = "Left Hip"
  1192. Motor6D49.Parent = Part45
  1193. Motor6D49.MaxVelocity = 0.10000000149012
  1194. Motor6D49.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1195. Motor6D49.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1196. Motor6D49.Part0 = Part45
  1197. Motor6D49.Part1 = Part40
  1198. Motor6D49.part1 = Part40
  1199. Motor6D50.Name = "Right Hip"
  1200. Motor6D50.Parent = Part45
  1201. Motor6D50.MaxVelocity = 0.10000000149012
  1202. Motor6D50.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1203. Motor6D50.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1204. Motor6D50.Part0 = Part45
  1205. Motor6D50.Part1 = Part37
  1206. Motor6D50.part1 = Part37
  1207. Part51.Name = "Head"
  1208. Part51.Parent = Model0
  1209. Part51.CFrame = CFrame.new(-9.84933376, 4.50001431, 26.3483276, 1.07288361e-06, -3.00177661e-11, 0.999990106, -1.60635949e-11, 1, 2.98063796e-11, -0.999990106, -1.64259717e-11, 1.07288361e-06)
  1210. Part51.Orientation = Vector3.new(0, 90, 0)
  1211. Part51.Position = Vector3.new(-9.84933376, 4.50001431, 26.3483276)
  1212. Part51.Rotation = Vector3.new(0, 89.75, 0)
  1213. Part51.Color = Color3.new(1, 0.8, 0.6)
  1214. Part51.Size = Vector3.new(2, 1, 1)
  1215. Part51.BrickColor = BrickColor.new("Pastel brown")
  1216. Part51.TopSurface = Enum.SurfaceType.Smooth
  1217. Part51.brickColor = BrickColor.new("Pastel brown")
  1218. Part51.FormFactor = Enum.FormFactor.Symmetric
  1219. Part51.formFactor = Enum.FormFactor.Symmetric
  1220. Weld52.Name = "HeadWeld"
  1221. Weld52.Parent = Part51
  1222. Weld52.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1223. Weld52.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1224. Weld52.Part0 = Part51
  1225. Weld52.Part1 = Part7
  1226. Weld52.part1 = Part7
  1227. Weld53.Name = "HeadWeld"
  1228. Weld53.Parent = Part51
  1229. Weld53.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1230. Weld53.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1231. Weld53.Part0 = Part51
  1232. Weld53.Part1 = Part7
  1233. Weld53.part1 = Part7
  1234. SpecialMesh54.Parent = Part51
  1235. SpecialMesh54.Scale = Vector3.new(1.25, 1.25, 1.25)
  1236. Weld55.Name = "HeadWeld"
  1237. Weld55.Parent = Part51
  1238. Weld55.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1239. Weld55.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1240. Weld55.Part0 = Part51
  1241. Weld55.Part1 = Part7
  1242. Weld55.part1 = Part7
  1243. Weld56.Name = "HeadWeld"
  1244. Weld56.Parent = Part51
  1245. Weld56.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1246. Weld56.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1247. Weld56.Part0 = Part51
  1248. Weld56.Part1 = Part7
  1249. Weld56.part1 = Part7
  1250. Weld57.Name = "HeadWeld"
  1251. Weld57.Parent = Part51
  1252. Weld57.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1253. Weld57.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1254. Weld57.Part0 = Part51
  1255. Weld57.Part1 = Part7
  1256. Weld57.part1 = Part7
  1257. Weld58.Name = "HeadWeld"
  1258. Weld58.Parent = Part51
  1259. Weld58.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1260. Weld58.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1261. Weld58.Part0 = Part51
  1262. Weld58.Part1 = Part7
  1263. Weld58.part1 = Part7
  1264. Weld59.Name = "HeadWeld"
  1265. Weld59.Parent = Part51
  1266. Weld59.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1267. Weld59.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1268. Weld59.Part0 = Part51
  1269. Weld59.Part1 = Part7
  1270. Weld59.part1 = Part7
  1271. Weld60.Name = "HeadWeld"
  1272. Weld60.Parent = Part51
  1273. Weld60.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1274. Weld60.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1275. Weld60.Part0 = Part51
  1276. Weld60.Part1 = Part7
  1277. Weld60.part1 = Part7
  1278. Weld61.Name = "HeadWeld"
  1279. Weld61.Parent = Part51
  1280. Weld61.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1281. Weld61.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1282. Weld61.Part0 = Part51
  1283. Weld61.Part1 = Part7
  1284. Weld61.part1 = Part7
  1285. Weld62.Name = "HeadWeld"
  1286. Weld62.Parent = Part51
  1287. Weld62.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1288. Weld62.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1289. Weld62.Part0 = Part51
  1290. Weld62.Part1 = Part7
  1291. Weld62.part1 = Part7
  1292. Weld63.Name = "HeadWeld"
  1293. Weld63.Parent = Part51
  1294. Weld63.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1295. Weld63.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1296. Weld63.Part0 = Part51
  1297. Weld63.Part1 = Part7
  1298. Weld63.part1 = Part7
  1299. Weld64.Name = "HeadWeld"
  1300. Weld64.Parent = Part51
  1301. Weld64.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1302. Weld64.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1303. Weld64.Part0 = Part51
  1304. Weld64.Part1 = Part7
  1305. Weld64.part1 = Part7
  1306. Weld65.Name = "HeadWeld"
  1307. Weld65.Parent = Part51
  1308. Weld65.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1309. Weld65.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1310. Weld65.Part0 = Part51
  1311. Weld65.Part1 = Part7
  1312. Weld65.part1 = Part7
  1313. Weld66.Name = "HeadWeld"
  1314. Weld66.Parent = Part51
  1315. Weld66.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1316. Weld66.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1317. Weld66.Part0 = Part51
  1318. Weld66.Part1 = Part7
  1319. Weld66.part1 = Part7
  1320. Weld67.Name = "HeadWeld"
  1321. Weld67.Parent = Part51
  1322. Weld67.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1323. Weld67.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1324. Weld67.Part0 = Part51
  1325. Weld67.Part1 = Part7
  1326. Weld67.part1 = Part7
  1327. Weld68.Name = "HeadWeld"
  1328. Weld68.Parent = Part51
  1329. Weld68.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1330. Weld68.C1 = CFrame.new(0.629999995, 0.300000012, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1331. Weld68.Part0 = Part51
  1332. Weld68.Part1 = Part7
  1333. Weld68.part1 = Part7
  1334. Decal69.Parent = Part51
  1335. Decal69.Texture = "http://www.roblox.com/asset/?id=383101611"
  1336. for i,v in pairs(mas:GetChildren()) do
  1337. v.Parent = workspace
  1338. pcall(function() v:MakeJoints() end)
  1339. end
  1340. mas:Destroy()
  1341. for i,v in pairs(cors) do
  1342. spawn(function()
  1343. pcall(v)
  1344. end)
  1345. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement