Advertisement
DaOMEGAa32

last pig

Nov 12th, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.83 KB | None | 0 0
  1. --go duck
  2. --note. this is a stupid script
  3. --lets get moms credit card
  4. Player = game.Players.LocalPlayer
  5. Mouse = Player:GetMouse()
  6. Mouse.KeyDown:Connect(function(key)
  7. key = key:lower()
  8. if key == "e" then
  9. local x = Instance.new("Part")
  10. x.Shape = "Ball"
  11. x.CanCollide = false
  12. x.Anchored = false
  13. x.CFrame = Player.Character.Torso.CFrame * CFrame.new(0,3,-12)
  14. local v = Instance.new("BodyVelocity", x)
  15. v.Velocity = Player.Character.Torso.CFrame.lookVector * 90
  16.  
  17. v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  18. x.Parent = workspace
  19.  
  20. end
  21.  
  22.  
  23. end)
  24. Player = game.Players.LocalPlayer
  25. Mouse = Player:GetMouse()
  26. Mouse.KeyDown:Connect(function(key)
  27. key = key:lower()
  28. if key == "r" then
  29. local s = Instance.new("Sound")
  30.  
  31. s.Name = "Name"
  32. s.SoundId = "rbxassetid://2568843432"
  33. s.Volume = 4
  34. s.Looped = false
  35. s.archivable = false
  36.  
  37. s.Parent = game.Workspace
  38.  
  39. wait(0.2)
  40.  
  41. s:play()
  42.  
  43. end
  44.  
  45.  
  46. end)
  47. print ("wired by me. go duck sr.")
  48. print ("I SEE U FOUND A WIRED SCRIPT")
  49. print ("WHEN A DAY U GOT A PIG. A CANT SPELL PIG. AND HE MAYBE SING. I DUNNOOOOOOOOOOOOOOOOO")
  50. print ("AND THEY SAW NOOBS ACROSS THE STREET.........")
  51. warn ("by zeddikuss123")
  52. print ("controls. ee- throw a ball")
  53. print ("rr. sqweek")
  54. print ("yy. P O O P")
  55. print ("using the lord of pigs can summon demon pigs")
  56. --
  57. -----the crappy starting
  58. --
  59.  
  60.  
  61. local s = Instance.new("Sound")
  62.  
  63. s.Name = "Name"
  64. s.SoundId = "rbxassetid://598782463"
  65. s.Volume = 4
  66. s.Looped = true
  67. s.archivable = false
  68.  
  69. s.Parent = game.Workspace
  70.  
  71. wait(0.2)
  72.  
  73. s:play()
  74. local pchar = game.Players.LocalPlayer.Character -- Can change player here --
  75.  
  76. for i,v in pairs(pchar.Torso:GetChildren()) do
  77. if v.ClassName == 'Decal' then
  78. v:Destroy()
  79. end
  80. end
  81. for i,v in pairs(pchar:GetChildren()) do
  82. if v.ClassName == 'Hat' then
  83. v:Destroy()
  84. end
  85. end
  86.  
  87. for i,v in pairs(pchar.Head:GetChildren()) do
  88. if v.ClassName == 'Decal' then
  89. v:Destroy()
  90. end
  91. end
  92. --
  93. ---generating
  94. --
  95. local duck = Instance.new('SpecialMesh', pchar.Torso)
  96. duck.MeshType = 'FileMesh'
  97. duck.MeshId = 'rbxassetid://1719079794'
  98. duck.TextureId = 'rbxassetid://1719079844'
  99. duck.Scale = Vector3.new(0.1, 0.1, 0.1)
  100. pchar.Head.Transparency = 1
  101. pchar['Left Arm'].Transparency = 1
  102. pchar['Right Arm'].Transparency = 1
  103. pchar['Left Leg'].Transparency = 1
  104. pchar['Right Leg'].Transparency = 1
  105. CV="White"
  106.  
  107. p = game.Players.LocalPlayer
  108. char = p.Character
  109. local txt = Instance.new("BillboardGui", char)
  110. txt.Adornee = char .Head
  111. txt.Name = "_status"
  112. txt.Size = UDim2.new(2, 0, 1.2, 0)
  113. txt.StudsOffset = Vector3.new(-9, 8, 0)
  114. local text = Instance.new("TextLabel", txt)
  115. text.Size = UDim2.new(10, 0, 7, 0)
  116. text.FontSize = "Size24"
  117. text.TextScaled = true
  118. text.TextTransparency = 0
  119. text.BackgroundTransparency = 1
  120. text.TextTransparency = 0
  121. text.TextStrokeTransparency = 1
  122. text.Font = "Highway"
  123. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  124.  
  125. v=Instance.new("Part")
  126. v.Name = "ColorBrick"
  127. v.Parent=p.Character
  128. v.FormFactor="Symmetric"
  129. v.Anchored=true
  130. v.CanCollide=false
  131. v.BottomSurface="Smooth"
  132. v.TopSurface="Smooth"
  133. v.Size=Vector3.new(10,5,3)
  134. v.Transparency=1
  135. v.CFrame=char.Torso.CFrame
  136. v.BrickColor=BrickColor.new(CV)
  137. v.Transparency=1
  138. text.TextColor3 = Color3.fromRGB(255,192,203)
  139. v.Shape="Block"
  140. text.Text = "guinea pig"
  141. --
  142. --other crap
  143. --
  144.  
  145. --Converted with ttyyuu12345's model to script plugin v4
  146. function sandbox(var,func)
  147. local env = getfenv(func)
  148. local newenv = setmetatable({},{
  149. __index = function(self,k)
  150. if k=="script" then
  151. return var
  152. else
  153. return env[k]
  154. end
  155. end,
  156. })
  157. setfenv(func,newenv)
  158. return func
  159. end
  160. cors = {}
  161. mas = Instance.new("Model",game:GetService("Lighting"))
  162. Tool0 = Instance.new("Tool")
  163. Part1 = Instance.new("Part")
  164. SpecialMesh2 = Instance.new("SpecialMesh")
  165. Script3 = Instance.new("Script")
  166. Script4 = Instance.new("Script")
  167. Script5 = Instance.new("Script")
  168. Script6 = Instance.new("Script")
  169. Script7 = Instance.new("Script")
  170. Script8 = Instance.new("Script")
  171. Sound9 = Instance.new("Sound")
  172. Sound10 = Instance.new("Sound")
  173. Sound11 = Instance.new("Sound")
  174. Tool0.Name = "ZombieStaff"
  175. Tool0.Parent = mas
  176. Tool0.TextureId = "http://www.roblox.com/asset/?id=26337878"
  177. Tool0.Grip = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  178. Tool0.GripForward = Vector3.new(-0, -0, 1)
  179. Tool0.GripRight = Vector3.new(-1, 0, 0)
  180. Part1.Name = "Handle"
  181. Part1.Parent = Tool0
  182. Part1.CFrame = CFrame.new(44.3200378, 0.500189006, 9.29339027, -0.000186681747, -0.807089865, -0.590428591, -0.99999994, 1.18017197e-05, 0.000300019979, -0.000235140324, 0.590428591, -0.807089806)
  183. Part1.Orientation = Vector3.new(-0.0199999996, -143.809998, -90)
  184. Part1.Position = Vector3.new(44.3200378, 0.500189006, 9.29339027)
  185. Part1.Rotation = Vector3.new(-179.979996, -36.1899986, 90.0100021)
  186. Part1.Size = Vector3.new(1, 6, 1)
  187. Part1.Locked = true
  188. SpecialMesh2.Parent = Part1
  189. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=25922532"
  190. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=25922670"
  191. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  192. Script3.Name = "SummonZombies!"
  193. Script3.Parent = Tool0
  194. table.insert(cors,sandbox(Script3,function()
  195. Tool = script.Parent
  196.  
  197. local debris = game:service("Debris")
  198. zombies = 5
  199. reloadTime = 30
  200. Tool.Enabled = true
  201.  
  202. function fire(targetPos, humanoid)
  203.  
  204. insertZombies(targetPos, humanoid)
  205.  
  206. end
  207.  
  208. function insertZombies(pos, humanoid)
  209.  
  210. amountInFront = 15
  211. torsoNormal = humanoid.Parent.Torso.CFrame.lookVector
  212. denom = math.abs(torsoNormal.x) + math.abs(torsoNormal.z)
  213. posX = amountInFront * (torsoNormal.x/denom)
  214. posZ = amountInFront * (torsoNormal.z/denom)
  215. pos = Vector3.new(pos.x + posX,pos.y, pos.z + posZ)
  216.  
  217. smoker = Instance.new("Smoke")
  218.  
  219. smokeEmitter = Instance.new("Part")
  220. smokeEmitter.Size = Vector3.new(1,1,1)
  221. smokeEmitter.Transparency = 1
  222. smokeEmitter.Position = pos
  223. smokeEmitter.Anchored = true
  224. smokeEmitter.CanCollide = false
  225.  
  226. smoker.Parent = smokeEmitter
  227. smokeEmitter.Parent = game.Workspace
  228.  
  229. debris:AddItem(smokeEmitter, 10)
  230.  
  231. wait(1)
  232.  
  233.  
  234. for i = 1, 5 do
  235.  
  236. --This call will cause a "wait" until the data comes back
  237. local root = game:GetService("InsertService"):LoadAsset(4363576022)
  238.  
  239. local instances = root:GetChildren()
  240. if #instances == 0 then
  241. root:Remove()
  242. return
  243. end
  244.  
  245. --Continue the insert process
  246.  
  247. local zombeh = root.SummonedZombie
  248. zombeh.Owner.Value = humanoid
  249.  
  250. local keepYoHead = Instance.new("Weld")
  251. keepYoHead.Part0 = zombeh.Head
  252. keepYoHead.Part1 = zombeh.Torso
  253. keepYoHead.C0 = CFrame.new(0,-1.5,0)
  254. keepYoHead.Parent = zombeh.Head
  255.  
  256. local Robotron = Tool.Robot:clone()
  257. local Chaser = Tool.ChaseScript:clone()
  258. local SoundMan = Tool.PlaySounds:clone()
  259. local GarbageMan = Tool.Timer:clone()
  260. Chaser.Parent = zombeh
  261. Robotron.Parent = zombeh
  262. SoundMan.Parent = zombeh.Head
  263. GarbageMan.Parent = zombeh
  264. local spacing = 4
  265. --game:GetService("InsertService"):Insert(zombeh)
  266. zombeh.Parent = game.Workspace
  267. if i == 1 then
  268. zombeh:moveTo(Vector3.new(pos.x + spacing, pos.y,pos.z + spacing))
  269. elseif i == 2 then
  270. zombeh:moveTo(Vector3.new(pos.x - spacing, pos.y,pos.z + spacing))
  271. elseif i == 3 then
  272. zombeh:moveTo(Vector3.new(pos.x + spacing, pos.y,pos.z - spacing))
  273. elseif i == 4 then
  274. zombeh:moveTo(Vector3.new(pos.x - spacing, pos.y,pos.z - spacing))
  275. elseif i == 5 then
  276. zombeh:moveTo(pos)
  277. end
  278.  
  279. end
  280.  
  281. end
  282.  
  283.  
  284. function onActivated()
  285.  
  286. if not Tool.Enabled then
  287. return
  288. end
  289.  
  290. Tool.GripPos = Vector3.new(0,0.5,0)
  291.  
  292. Tool.Enabled = false
  293.  
  294. local character = Tool.Parent;
  295. local humanoid = character.Humanoid
  296. if humanoid == nil then
  297. print("Humanoid not found")
  298. return
  299. end
  300.  
  301. local targetPos = humanoid.Parent.Torso.Position
  302.  
  303. wait(0.5)
  304. Tool.GripPos = Vector3.new(0,0,0)
  305.  
  306. fire(targetPos, humanoid)
  307. wait(reloadTime)
  308.  
  309. Tool.Enabled = true
  310. end
  311.  
  312. Tool.Activated:connect(onActivated)
  313.  
  314. end))
  315. Script4.Name = "ChaseScript"
  316. Script4.Parent = Tool0
  317. table.insert(cors,sandbox(Script4,function()
  318. wait(3)
  319. zombieParent = false
  320.  
  321. while zombieParent == false do
  322.  
  323. wait(1)
  324. if script.Parent.Name == "SummonedZombie" then
  325. zombieParent = true
  326. end
  327.  
  328. end
  329.  
  330. local larm = script.Parent:FindFirstChild("Left Arm")
  331. local rarm = script.Parent:FindFirstChild("Right Arm")
  332. local waitTimer = 0
  333.  
  334. function findNearestTorso(pos)
  335. local list = game.Workspace:children()
  336. local torso = nil
  337. local dist = 100
  338. local temp = nil
  339. local human = nil
  340. local temp2 = nil
  341. for x = 1, #list do
  342. temp2 = list[x]
  343. if (temp2.className == "Model") and (temp2 ~= script.Parent) and (temp2.Name ~= "SummonedZombie") then
  344. temp = temp2:findFirstChild("Torso")
  345. human = temp2:findFirstChild("Humanoid")
  346. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (human ~= script.Parent.Owner.Value) then
  347. if (temp.Position - pos).magnitude < dist then
  348. torso = temp
  349. dist = (temp.Position - pos).magnitude
  350. end
  351. end
  352. end
  353. end
  354. return torso
  355. end
  356.  
  357. function Hit(hit)
  358. local human = hit.Parent:FindFirstChild("Humanoid")
  359. if human ~= nil and human ~= script.Parent.Owner.Value and waitTimer == 0 and human.Parent.Name ~= "SummonedZombie" then
  360. human:TakeDamage(20)
  361. waitTimer = 3
  362. end
  363. end
  364.  
  365. larm.Touched:connect(Hit)
  366. rarm.Touched:connect(Hit)
  367.  
  368. while true do
  369. wait(1)
  370. local target = findNearestTorso(script.Parent.Torso.Position)
  371. if target ~= nil then
  372. script.Parent.Humanoid:MoveTo(target.Position, target)
  373. end
  374. if waitTimer > 0 then
  375. waitTimer = waitTimer - 1
  376. end
  377. if script.Parent.Humanoid.Health < 1 then
  378. wait(3)
  379. script.Parent:remove()
  380. end
  381. jumper = math.random(1,2)
  382. if jumper == 2 then
  383. script.Parent.Humanoid.Jump = true
  384. end
  385. end
  386.  
  387. end))
  388. Script5.Name = "Robot"
  389. Script5.Parent = Tool0
  390. table.insert(cors,sandbox(Script5,function()
  391. zombieParent = false
  392.  
  393. while zombieParent == false do
  394.  
  395. wait(0.5)
  396. if script.Parent.Name == "SummonedZombie" then
  397. zombieParent = true
  398. end
  399.  
  400. end
  401.  
  402. model = script.Parent
  403. backup = model:Clone()
  404. regentime = 1 --5 minutes
  405.  
  406. ------------------
  407. --SPAWNING--
  408. ------------------
  409. miked=script.Parent
  410.  
  411. itlh=miked.Torso:findFirstChild("Left Hip")
  412. itlh.Part0=miked.Torso
  413. itlh.Part1=miked:findFirstChild("Left Leg")
  414. itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  415.  
  416. itrh=miked.Torso:findFirstChild("Right Hip")
  417. itrh.Part0=miked.Torso
  418. itrh.Part1=miked:findFirstChild("Right Leg")
  419. itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  420.  
  421. itls=miked.Torso:findFirstChild("Left Shoulder")
  422. itls.Part1=miked.Torso
  423. itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  424. itls.Part0=miked:findFirstChild("Left Arm")
  425.  
  426. itrs=miked.Torso:findFirstChild("Right Shoulder")
  427. itrs.Part1=miked.Torso
  428. itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, -1, 0, 1, 0, 0)
  429. itrs.Part0=miked:findFirstChild("Right Arm")
  430.  
  431. miked.Head:makeJoints()
  432.  
  433. wait(3)
  434. miked:findFirstChild("Left Arm").Anchored = false
  435. miked:findFirstChild("Right Arm").Anchored = false
  436. ------------------
  437. ------------------
  438.  
  439.  
  440. function waitForChild(parent, childName)
  441. while true do
  442. local child = parent:findFirstChild(childName)
  443. if child then
  444. return child
  445. end
  446. parent.ChildAdded:wait()
  447. end
  448. end
  449.  
  450. local Figure = script.Parent
  451. local Torso = waitForChild(Figure, "Torso")
  452. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  453. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  454. local RightHip = waitForChild(Torso, "Right Hip")
  455. local LeftHip = waitForChild(Torso, "Left Hip")
  456. local Neck = waitForChild(Torso, "Neck")
  457. local Humanoid = waitForChild(Figure, "Zombie")
  458. local pose = "Standing"
  459.  
  460. local toolAnim = "None"
  461. local toolAnimTime = 0
  462.  
  463. local isSeated = false
  464.  
  465.  
  466. function onRunning(speed)
  467. if isSeated then return end
  468.  
  469. if speed>0 then
  470. pose = "Running"
  471. else
  472. pose = "Standing"
  473. end
  474. end
  475.  
  476. function onDied()
  477. pose = "Dead"
  478. wait(regentime)
  479. wait(1)
  480. model:remove()
  481. model = backup:Clone()
  482. wait(3)
  483. model.Parent = game.Workspace
  484. model:MakeJoints()
  485. end
  486.  
  487. function onJumping()
  488. isSeated = false
  489. pose = "Jumping"
  490. end
  491.  
  492. function onClimbing()
  493. pose = "Climbing"
  494. end
  495.  
  496. function onGettingUp()
  497. pose = "GettingUp"
  498. end
  499.  
  500. function onFreeFall()
  501. pose = "FreeFall"
  502. end
  503.  
  504. function onDancing()
  505. pose = "Dancing"
  506. end
  507.  
  508. function onFallingDown()
  509. pose = "FallingDown"
  510. end
  511.  
  512. function onSeated()
  513. isSeated = true
  514. pose = "Seated"
  515. end
  516.  
  517.  
  518.  
  519. function moveJump()
  520. RightShoulder.MaxVelocity = 0.5
  521. LeftShoulder.MaxVelocity = 0.5
  522. RightShoulder.DesiredAngle = -3.14
  523. LeftShoulder.DesiredAngle = -3.14
  524. RightHip.DesiredAngle = 0
  525. LeftHip.DesiredAngle = 0
  526. end
  527.  
  528. function moveFreeFall()
  529. RightShoulder.MaxVelocity = 0.5
  530. LeftShoulder.MaxVelocity = 0.5
  531. RightShoulder.DesiredAngle = -1
  532. LeftShoulder.DesiredAngle = -1
  533. RightHip.DesiredAngle = 0
  534. LeftHip.DesiredAngle = 0
  535. end
  536.  
  537. function moveFloat()
  538. RightShoulder.MaxVelocity = 0.5
  539. LeftShoulder.MaxVelocity = 0.5
  540. RightShoulder.DesiredAngle = -1.57
  541. LeftShoulder.DesiredAngle = 1.57
  542. RightHip.DesiredAngle = 1.57
  543. LeftHip.DesiredAngle = -1.57
  544. end
  545.  
  546. function moveBoogy()
  547. while pose=="Boogy" do
  548. wait(.5)
  549. RightShoulder.MaxVelocity = 1
  550. LeftShoulder.MaxVelocity = 1
  551. RightShoulder.DesiredAngle = -3.14
  552. LeftShoulder.DesiredAngle = 0
  553. RightHip.DesiredAngle = 1.57
  554. LeftHip.DesiredAngle = 0
  555. wait(.5)
  556. RightShoulder.MaxVelocity = 1
  557. LeftShoulder.MaxVelocity = 1
  558. RightShoulder.DesiredAngle = 0
  559. LeftShoulder.DesiredAngle = -3.14
  560. RightHip.DesiredAngle = 0
  561. LeftHip.DesiredAngle = 1.57
  562. end
  563. end
  564.  
  565. function moveZombie()
  566. RightShoulder.MaxVelocity = 0.5
  567. LeftShoulder.MaxVelocity = 0.5
  568. RightShoulder.DesiredAngle = -1.57
  569. LeftShoulder.DesiredAngle = 1.57
  570. RightHip.DesiredAngle = 0
  571. LeftHip.DesiredAngle = 0
  572. end
  573.  
  574. function movePunch()
  575. script.Parent.Torso.Anchored=true
  576. RightShoulder.MaxVelocity = 60
  577. LeftShoulder.MaxVelocity = 0.5
  578. RightShoulder.DesiredAngle = -1.57
  579. LeftShoulder.DesiredAngle = 0
  580. RightHip.DesiredAngle = 0
  581. LeftHip.DesiredAngle = 0
  582. wait(1)
  583. script.Parent.Torso.Anchored=false
  584. pose="Standing"
  585.  
  586. end
  587.  
  588. function moveKick()
  589. RightShoulder.MaxVelocity = 0.5
  590. LeftShoulder.MaxVelocity = 0.5
  591. RightShoulder.DesiredAngle = 0
  592. LeftShoulder.DesiredAngle = 0
  593. RightHip.MaxVelocity = 40
  594. RightHip.DesiredAngle = 1.57
  595. LeftHip.DesiredAngle = 0
  596. wait(1)
  597. pose="Standing"
  598.  
  599. end
  600.  
  601. function moveFly()
  602. RightShoulder.MaxVelocity = 0.5
  603. LeftShoulder.MaxVelocity = 0.5
  604. RightShoulder.DesiredAngle = 0
  605. LeftShoulder.DesiredAngle = 0
  606. RightHip.MaxVelocity = 40
  607. RightHip.DesiredAngle = 1.57
  608. LeftHip.DesiredAngle = 0
  609. wait(1)
  610. pose="Standing"
  611.  
  612. end
  613.  
  614.  
  615. function moveClimb()
  616. RightShoulder.MaxVelocity = 0.5
  617. LeftShoulder.MaxVelocity = 0.5
  618. RightShoulder.DesiredAngle = -3.14
  619. LeftShoulder.DesiredAngle = 3.14
  620. RightHip.DesiredAngle = 0
  621. LeftHip.DesiredAngle = 0
  622. end
  623.  
  624. function moveSit()
  625. RightShoulder.MaxVelocity = 0.15
  626. LeftShoulder.MaxVelocity = 0.15
  627. RightShoulder.DesiredAngle = -3.14 /2
  628. LeftShoulder.DesiredAngle = -3.14 /2
  629. RightHip.DesiredAngle = 3.14 /2
  630. LeftHip.DesiredAngle = -3.14 /2
  631. end
  632.  
  633. function getTool()
  634.  
  635. kidTable = Figure:children()
  636. if (kidTable ~= nil) then
  637. numKids = #kidTable
  638. for i=1,numKids do
  639. if (kidTable[i].className == "Tool") then return kidTable[i] end
  640. end
  641. end
  642.  
  643. return nil
  644. end
  645.  
  646. function getToolAnim(tool)
  647.  
  648. c = tool:children()
  649. for i=1,#c do
  650. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  651. return c[i]
  652. end
  653. end
  654. return nil
  655. end
  656.  
  657. function animateTool()
  658.  
  659. if (toolAnim == "None") then
  660. RightShoulder.DesiredAngle = -1.57
  661. return
  662. end
  663.  
  664. if (toolAnim == "Slash") then
  665. RightShoulder.MaxVelocity = 0.5
  666. RightShoulder.DesiredAngle = 0
  667. return
  668. end
  669.  
  670. if (toolAnim == "Lunge") then
  671. RightShoulder.MaxVelocity = 0.5
  672. LeftShoulder.MaxVelocity = 0.5
  673. RightHip.MaxVelocity = 0.5
  674. LeftHip.MaxVelocity = 0.5
  675. RightShoulder.DesiredAngle = -1.57
  676. LeftShoulder.DesiredAngle = 1.0
  677. RightHip.DesiredAngle = 1.57
  678. LeftHip.DesiredAngle = 1.0
  679. return
  680. end
  681. end
  682.  
  683. function move(time)
  684. local amplitude
  685. local frequency
  686.  
  687. if (pose == "Jumping") then
  688. moveJump()
  689. return
  690. end
  691.  
  692. if (pose == "Zombie") then
  693. moveZombie()
  694. return
  695. end
  696.  
  697. if (pose == "Boogy") then
  698. moveBoogy()
  699. return
  700. end
  701.  
  702. if (pose == "Float") then
  703. moveFloat()
  704. return
  705. end
  706.  
  707. if (pose == "Punch") then
  708. movePunch()
  709. return
  710. end
  711.  
  712. if (pose == "Kick") then
  713. moveKick()
  714. return
  715. end
  716.  
  717. if (pose == "Fly") then
  718. moveFly()
  719. return
  720. end
  721.  
  722. if (pose == "FreeFall") then
  723. moveFreeFall()
  724. return
  725. end
  726.  
  727. if (pose == "Climbing") then
  728. moveClimb()
  729. return
  730. end
  731.  
  732. if (pose == "Seated") then
  733. moveSit()
  734. return
  735. end
  736.  
  737. amplitude = 0.1
  738. frequency = 1
  739.  
  740. RightShoulder.MaxVelocity = 0.15
  741. LeftShoulder.MaxVelocity = 0.15
  742. if (pose == "Running") then
  743. amplitude = 1
  744. frequency = 9
  745. elseif (pose == "Dancing") then
  746. amplitude = 2
  747. frequency = 16
  748. end
  749.  
  750.  
  751. desiredAngle = amplitude * math.sin(time*frequency)
  752. if pose~="Dancing" then
  753. RightShoulder.DesiredAngle = -desiredAngle
  754. LeftShoulder.DesiredAngle = desiredAngle
  755. RightHip.DesiredAngle = -desiredAngle
  756. LeftHip.DesiredAngle = -desiredAngle
  757. else
  758. RightShoulder.DesiredAngle = desiredAngle
  759. LeftShoulder.DesiredAngle = desiredAngle
  760. RightHip.DesiredAngle = -desiredAngle
  761. LeftHip.DesiredAngle = -desiredAngle
  762. end
  763.  
  764.  
  765.  
  766. local tool = getTool()
  767.  
  768. if tool ~= nil then
  769.  
  770. animStringValueObject = getToolAnim(tool)
  771.  
  772. if animStringValueObject ~= nil then
  773. toolAnim = animStringValueObject.Value
  774. -- message recieved, delete StringValue
  775. animStringValueObject.Parent = nil
  776. toolAnimTime = time + .3
  777. end
  778.  
  779. if time > toolAnimTime then
  780. toolAnimTime = 0
  781. toolAnim = "None"
  782. end
  783.  
  784. animateTool()
  785.  
  786.  
  787. else
  788. toolAnim = "None"
  789. toolAnimTime = 0
  790. end
  791. end
  792.  
  793.  
  794. -- connect events
  795. -----------------------------------------------------------------------------------------------------------------------
  796.  
  797. function unequip()
  798. local items=script.Parent:children()
  799. for i=1, #items do
  800. if items[i].className=="Tool" then items[i]:remove() end
  801. end
  802. end
  803.  
  804. function onChatted(msg, recipient)
  805. msg = string.lower(msg)
  806.  
  807. if string.match(msg, string.lower(script.Parent.Name))~=nil or string.match(msg, "everyone") then
  808. if string.match(msg, "equip") then
  809. if game.Workspace:findFirstChild("Hub") then
  810. if string.match(msg, "rocket") then unequip()
  811. game.Workspace.Hub.Rocket:clone().Parent=script.Parent
  812. elseif string.match(msg, "slingshot") then unequip()
  813. game.Workspace.Hub.Slingshot:clone().Parent=script.Parent
  814. elseif string.match(msg, "sword") then unequip()
  815. game.Workspace.Hub.Sword:clone().Parent=script.Parent
  816. elseif string.match(msg, "pbg") then unequip()
  817. game.Workspace.Hub.PBG:clone().Parent=script.Parent
  818. elseif string.match(msg, "superball") then unequip()
  819. game.Workspace.Hub.Superball:clone().Parent=script.Parent
  820. elseif string.match(msg, "trowel") then unequip()
  821. game.Workspace.Hub.Trowel:clone().Parent=script.Parent
  822. elseif string.match(msg, "bomb") then unequip()
  823. game.Workspace.Hub.Bomb:clone().Parent=script.Parent
  824. end
  825. end
  826. end
  827. if string.match(msg, "unequip") then unequip() end
  828. if string.match(msg, "run") then onRunning(1) end
  829. if string.match(msg, "climb") then onClimbing() end
  830. if string.match(msg, "jump") then onJumping() end
  831. if string.match(msg, "zombie") then pose="Zombie" end
  832. if string.match(msg, "disco") then pose="Boogy" end
  833. if string.match(msg, "float") then pose="Float" end
  834. if string.match(msg, "punch") then pose="Punch" end
  835. if string.match(msg, "kick") then pose="Kick" end
  836. if string.match(msg, "fly") then pose="Fly" end
  837. if string.match(msg, "heal") then script.Parent.Humanoid.Health=script.Parent.Humanoid.MaxHealth end
  838. if string.match(msg, "defend") then defence() end
  839. if string.match(msg, "stop") then pose="Standing"; proxkill=false; following=false; stopmoving() end
  840. if string.match(msg, "go home") then following=false; gohome() end
  841. if string.match(msg, "follow") then
  842. if string.match(msg, "all") then
  843. followany()
  844. else
  845. local egg=game.Players:children()
  846. for i=1, #egg do
  847. if string.match(msg, string.lower(egg[i].Name)) then
  848. follow(egg[i].Name)
  849. return
  850. end
  851. end
  852. end
  853. end
  854. if string.match(msg, "kill") then
  855. if string.match(msg, "all") then
  856. attackany()
  857. else
  858. local egg=game.Players:children()
  859. for i=1, #egg do
  860. if string.match(msg, string.lower(egg[i].Name)) then
  861. attack(egg[i].Name)
  862. return
  863. end
  864. end
  865. end
  866. end
  867.  
  868. end
  869. end
  870.  
  871. if game.Players.NumPlayers>1 then
  872. x=game.Players:children()
  873.  
  874. for i=1, #x do
  875. if script.Parent:findFirstChild("Commander")~=nil then
  876. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  877. local ch=script.Parent.Commander:children()
  878. for i=1, #ch do
  879. if string.lower(ch[i].Name)==string.lower(x[i].Name) then
  880. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  881. end
  882. end
  883. elseif string.lower(script.Parent.Commander.Value)==string.lower(x[i].Name) then
  884. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  885. end
  886. else
  887. x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  888. end
  889. end
  890. end
  891.  
  892.  
  893. function onPlayerEntered(Player)
  894. while Player.Name==nil do
  895. wait(2)
  896. end
  897. if script.Parent:findFirstChild("Commander")~=nil then
  898. if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
  899. local ch=script.Parent.Commander:children()
  900. for i=1, #ch do
  901. if string.lower(ch[i].Name)==string.lower(Player.Name) then
  902. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  903. end
  904. end
  905. elseif string.lower(script.Parent.Commander.Value)==string.lower(Player.Name) then
  906. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  907. end
  908. else
  909. Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
  910. end
  911. end
  912.  
  913. game.Players.ChildAdded:connect(onPlayerEntered)
  914.  
  915.  
  916.  
  917. -----------------------------------------------------------------------------------------------------------------------
  918. -----------------------------------------------------------------------------------------------------------------------
  919. -----------------------------------------------------------------------------------------------------------------------
  920. -----------------------------------------------------------------------------------------------------------------------
  921. -----------------------------------------------------------------------------------------------------------------------
  922. -----------------------------------------------------------------------------------------------------------------------
  923. -----------------------------------------------------------------------------------------------------------------------
  924. -----------------------------------------------------------------------------------------------------------------------
  925. -----------------------------------------------------------------------------------------------------------------------
  926. -----------------------------------------------------------------------------------------------------------------------
  927. -----------------------------------------------------------------------------------------------------------------------
  928. -----------------------------------------------------------------------------------------------------------------------
  929. dist=20
  930.  
  931. function followany()
  932. following=true
  933. while following==true do
  934.  
  935. local ch=game.Players:children()
  936. for i=1, #ch do
  937. local l=game.Workspace:findFirstChild(ch[i].Name)
  938. if l~=nil then
  939. local s=l.Torso
  940. local p=l.Torso.Position
  941. local q=script.Parent.Torso.Position
  942. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  943. if smallest==nil then
  944. smallest=d
  945. target=s
  946. elseif d<smallest then
  947. smallest=d
  948. target=s
  949. end
  950. end
  951. end
  952.  
  953. if smallest==nil then stopmoving() return end
  954.  
  955. if smallest>6*dist then return end
  956.  
  957. script.Parent.Humanoid:MoveTo(target.Position, target)
  958.  
  959. wait(0.5)
  960. for i=1, 6 do
  961. if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
  962. end
  963. end
  964. end
  965.  
  966.  
  967.  
  968. function gohome()
  969. script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
  970. end
  971. function stopmoving()
  972. script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
  973. end
  974.  
  975. function follow(name)
  976. following=true
  977.  
  978. local p=game.Workspace:findFirstChild(name)
  979. if p==nil then return end
  980. while following==true do
  981. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  982. wait(0.5)
  983. for i=1, 3 do
  984. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  985. wait(0.5)
  986. end
  987. end
  988. end
  989.  
  990. function attack(name)
  991. if script.Parent:findFirstChild("Sword")~=nil then
  992. following=true
  993. local p=game.Workspace:findFirstChild(name)
  994. if p==nil then return end
  995. while following==true do
  996. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
  997. wait(0.5)
  998. for i=1, 3 do
  999. if p.Humanoid.Health<1 then following=false; stopmoving() return end
  1000. local l=p.Torso.Position
  1001. local q=script.Parent.Torso.Position
  1002. local d=math.sqrt( ((l.x-q.x)^2)+((l.y-q.y)^2)+((l.z-q.z)^2) )
  1003. if d<10 then
  1004. script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso); slash()
  1005. if (q.y-l.y)>3 and (q.y-l.y)<7 then
  1006. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  1007. end
  1008. end
  1009. wait(1)
  1010. end
  1011. end
  1012. end
  1013. end
  1014.  
  1015. function attackany()
  1016. if script.Parent:findFirstChild("Sword")~=nil then
  1017.  
  1018. following=true
  1019. while following==true do
  1020.  
  1021. local ch=game.Players:children()
  1022. for i=1, #ch do
  1023. local l=game.Workspace:findFirstChild(ch[i].Name)
  1024. if l~=nil then
  1025. local s=l.Torso
  1026. local p=l.Torso.Position
  1027. local q=script.Parent.Torso.Position
  1028. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1029. if smallest==nil then
  1030. smallest=d
  1031. target=s
  1032. elseif d<smallest then
  1033. smallest=d
  1034. target=s
  1035. end
  1036. end
  1037. end
  1038.  
  1039. if smallest==nil then stopmoving() return end
  1040.  
  1041. if smallest>6*dist then return end
  1042.  
  1043. script.Parent.Humanoid:MoveTo(target.Position, target)
  1044.  
  1045. if smallest<10 then
  1046. slash()
  1047. end
  1048. if target.Parent==nil then stopmoving() return end
  1049. wait(0.5)
  1050. for i=1, 3 do
  1051. if target.Parent.Humanoid.Health<1 then
  1052. stopmoving()
  1053. else
  1054. local p=target.Position
  1055. local q=script.Parent.Torso.Position
  1056. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1057. if d<10 then
  1058. script.Parent.Humanoid:MoveTo(target.Position, target); slash()
  1059. if (q.y-p.y)>3 and (q.y-p.y)<7 then
  1060. script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
  1061. end
  1062. end
  1063. wait(1)
  1064. end
  1065. end
  1066. end
  1067. end
  1068. end
  1069.  
  1070.  
  1071. function patrol()
  1072. if points==nil then
  1073. points=0
  1074. if game.Workspace:findFirstChild("pp1")~=nil then
  1075. pp1=game.Workspace:findFirstChild("pp1")
  1076. local points=points+1
  1077. if game.Workspace:findFirstChild("pp2")~=nil then
  1078. pp2=game.Workspace:findFirstChild("pp2")
  1079. local points=points+1
  1080. if game.Workspace:findFirstChild("pp3")~=nil then
  1081. pp3=game.Workspace:findFirstChild("pp3")
  1082. local points=points+1
  1083. if game.Workspace:findFirstChild("pp4")~=nil then
  1084. pp4=game.Workspace:findFirstChild("pp4")
  1085. local points=points+1
  1086. if game.Workspace:findFirstChild("pp5")~=nil then
  1087. pp5=game.Workspace:findFirstChild("pp5")
  1088. local points=points+1
  1089. if game.Workspace:findFirstChild("pp6")~=nil then
  1090. pp6=game.Workspace:findFirstChild("pp6")
  1091. local points=points+1
  1092. if game.Workspace:findFirstChild("pp7")~=nil then
  1093. pp7=game.Workspace:findFirstChild("pp7")
  1094. local points=points+1
  1095. if game.Workspace:findFirstChild("pp8")~=nil then
  1096. pp8=game.Workspace:findFirstChild("pp8")
  1097. local points=points+1
  1098. if game.Workspace:findFirstChild("pp9")~=nil then
  1099. pp9=game.Workspace:findFirstChild("pp9")
  1100. local points=points+1
  1101. end
  1102. end
  1103. end
  1104. end
  1105. end
  1106. end
  1107. end
  1108. end
  1109. end
  1110. end
  1111.  
  1112. if points<1 then return end
  1113. patrolling=true
  1114. local time=2
  1115. if points==1 then return end
  1116. if points>1 then
  1117. while patrolling==true do
  1118. script.Parent.Humanoid:MoveTo(pp1.Position, pp1)
  1119. wait(time)
  1120. script.Parent.Humanoid:MoveTo(pp2.Position, pp2)
  1121. wait(time)
  1122. if points>2 then
  1123. script.Parent.Humanoid:MoveTo(pp3.Position, pp3)
  1124. wait(time)
  1125. if points>3 then
  1126. script.Parent.Humanoid:MoveTo(pp4.Position, pp4)
  1127. wait(time)
  1128. if points>4 then
  1129. script.Parent.Humanoid:MoveTo(pp5.Position, pp5)
  1130. wait(time)
  1131. if points>5 then
  1132. script.Parent.Humanoid:MoveTo(pp6.Position, pp6)
  1133. wait(time)
  1134. if points>6 then
  1135. script.Parent.Humanoid:MoveTo(pp7.Position, pp7)
  1136. wait(time)
  1137. if points>7 then
  1138. script.Parent.Humanoid:MoveTo(pp8.Position, pp8)
  1139. wait(time)
  1140. if points>8 then
  1141. script.Parent.Humanoid:MoveTo(pp9.Position, pp9)
  1142. wait(time)
  1143. end
  1144. end
  1145. end
  1146. end
  1147. end
  1148. end
  1149. end
  1150. end
  1151. end
  1152. end
  1153.  
  1154.  
  1155. function goto(pos,part)
  1156. while true do
  1157. end
  1158. end
  1159.  
  1160.  
  1161. function slash()
  1162. for i=1, 3 do
  1163. wait(.3)
  1164. RightShoulder.MaxVelocity = 2
  1165. LeftShoulder.MaxVelocity = 1
  1166. RightShoulder.DesiredAngle = -2.14
  1167. LeftShoulder.DesiredAngle = 0
  1168. RightHip.DesiredAngle = 0
  1169. LeftHip.DesiredAngle = 0
  1170. wait(.2)
  1171. RightShoulder.MaxVelocity = 2
  1172. LeftShoulder.MaxVelocity = 1
  1173. RightShoulder.DesiredAngle = 0
  1174. LeftShoulder.DesiredAngle = 0
  1175. RightHip.DesiredAngle = 0
  1176. LeftHip.DesiredAngle = 0
  1177. end
  1178. end
  1179.  
  1180. function defence()
  1181. proxkill=true
  1182. while proxkill==true do
  1183. local ch=game.Players:children()
  1184. for i=1, #ch do
  1185. local p=game.Workspace:findFirstChild(ch[i].Name)
  1186. if p~=nil then
  1187. local p=p.Torso.Position
  1188. local q=script.Parent.Torso.Position
  1189. local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
  1190. if d<dist and d>8 then
  1191. local ex=Instance.new("Explosion")
  1192. ex.Position=p
  1193. ex.Parent=game.Workspace
  1194. end
  1195. end
  1196. end
  1197. wait(1)
  1198. end
  1199. end
  1200.  
  1201.  
  1202.  
  1203.  
  1204. -----------------------------------------------------------------------------------------------------------------------
  1205. -----------------------------------------------------------------------------------------------------------------------
  1206. -----------------------------------------------------------------------------------------------------------------------
  1207. -----------------------------------------------------------------------------------------------------------------------
  1208. -----------------------------------------------------------------------------------------------------------------------
  1209. -----------------------------------------------------------------------------------------------------------------------
  1210. -----------------------------------------------------------------------------------------------------------------------
  1211. -----------------------------------------------------------------------------------------------------------------------
  1212. -----------------------------------------------------------------------------------------------------------------------
  1213. -----------------------------------------------------------------------------------------------------------------------
  1214. -----------------------------------------------------------------------------------------------------------------------
  1215. -----------------------------------------------------------------------------------------------------------------------
  1216.  
  1217.  
  1218. Humanoid.Died:connect(onDied)
  1219. Humanoid.Running:connect(onRunning)
  1220. Humanoid.Jumping:connect(onJumping)
  1221. Humanoid.Climbing:connect(onClimbing)
  1222. Humanoid.GettingUp:connect(onGettingUp)
  1223. Humanoid.FreeFalling:connect(onFreeFall)
  1224. Humanoid.FallingDown:connect(onFallingDown)
  1225. Humanoid.Seated:connect(onSeated)
  1226.  
  1227.  
  1228. --[[
  1229.  
  1230. function newSound(id)
  1231. local sound = Instance.new("Sound")
  1232. sound.SoundId = id
  1233. sound.Parent = script.Parent.Head
  1234. return sound
  1235. end
  1236.  
  1237.  
  1238. local sDied = newSound("rbxasset://sounds/uuhhh.wav")
  1239. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  1240. local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
  1241. local sGettingUp = newSound("rbxasset://sounds/hit.wav")
  1242. local sJumping = newSound("rbxasset://sounds/button.wav")
  1243. local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
  1244. sRunning.Looped = true
  1245.  
  1246. local Figure = script.Parent
  1247. local Head = waitForChild(Figure, "Head")
  1248. local Humanoid = waitForChild(Figure, "Humanoid")
  1249.  
  1250.  
  1251. function onDied()
  1252. sDied:play()
  1253. end
  1254.  
  1255. function onState(state, sound)
  1256. if state then
  1257. sound:play()
  1258. else
  1259. sound:pause()
  1260. end
  1261. end
  1262.  
  1263. function onRunning(speed)
  1264. if speed>0 then
  1265. sRunning:play()
  1266. else
  1267. sRunning:pause()
  1268. end
  1269. end
  1270.  
  1271.  
  1272. Humanoid.Died:connect(onDied)
  1273. Humanoid.Running:connect(onRunning)
  1274. Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
  1275. Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
  1276. Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
  1277. Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
  1278. --]]
  1279.  
  1280. local nextTime = 0
  1281. local runService = game:service("RunService");
  1282.  
  1283. while Figure.Parent~=nil do
  1284. time = runService.Stepped:wait()
  1285. if time > nextTime then
  1286. move(time)
  1287. nextTime = time + 0.1
  1288. end
  1289. end
  1290.  
  1291. end))
  1292. Script6.Name = "PlaySounds"
  1293. Script6.Parent = Tool0
  1294. table.insert(cors,sandbox(Script6,function()
  1295. zombieParent = false
  1296.  
  1297. local soundIds = {25954372, 25954392, 25954407}
  1298. local sounds = {}
  1299. for i=1,#soundIds do
  1300. local s = Instance.new("Sound")
  1301. s.SoundId = "http://www.roblox.com/asset/?id=" .. soundIds[i]
  1302. s.Volume = 1
  1303. s.Parent = script.Parent
  1304. sounds[#sounds + 1] = s
  1305. end
  1306.  
  1307. while zombieParent == false do
  1308.  
  1309. wait(1)
  1310. if script.Parent.Name == "Head" then
  1311. zombieParent = true
  1312. end
  1313.  
  1314. end
  1315.  
  1316. while true do
  1317. wait(math.random(5,10))
  1318. local i = math.random(1, #sounds)
  1319. sounds[i].Pitch = .8 + (math.random() * .2)
  1320. sounds[i]:Play()
  1321. end
  1322. end))
  1323. Script7.Name = "Timer"
  1324. Script7.Parent = Tool0
  1325. table.insert(cors,sandbox(Script7,function()
  1326. zombieParent = false
  1327.  
  1328. while zombieParent == false do
  1329.  
  1330. wait(1)
  1331. if script.Parent.Name == "SummonedZombie" then
  1332. zombieParent = true
  1333. end
  1334.  
  1335. end
  1336.  
  1337. wait(30)
  1338. script.Parent:remove()
  1339. end))
  1340. Script8.Name = "WeldScript"
  1341. Script8.Parent = Tool0
  1342. table.insert(cors,sandbox(Script8,function()
  1343. zombieParent = false
  1344.  
  1345. while zombieParent == false do
  1346.  
  1347. wait(1)
  1348. if script.Parent.Name == "SummonedZombie" then
  1349. zombieParent = true
  1350. end
  1351.  
  1352. end
  1353.  
  1354.  
  1355. local p=script.Parent:GetChildren()
  1356. for i=1,#p do
  1357. if p[i].className=="Part" then
  1358.  
  1359. local weld = Instance.new("Weld")
  1360. weld.Name="Hold"
  1361. weld.Part0 = p[i]
  1362. weld.Part1 = script.Parent.Parent.Torso
  1363.  
  1364. local HitPos = p[i].Position + (p[i].CFrame.lookVector * .5)
  1365.  
  1366. local CJ = CFrame.new(HitPos)
  1367. local C0 = p[i].CFrame:inverse() *CJ
  1368. local C1 = script.Parent.Parent.Torso.CFrame:inverse() * CJ
  1369.  
  1370. weld.C0 = C0
  1371. weld.C1 = C1
  1372.  
  1373. weld.Parent = p[i]
  1374. end
  1375. end
  1376. end))
  1377. Sound9.Parent = Tool0
  1378. Sound9.SoundId = "http://www.roblox.com/asset/?id=25954372"
  1379. Sound9.Volume = 1
  1380. Sound10.Parent = Tool0
  1381. Sound10.SoundId = "http://www.roblox.com/asset/?id=25954392"
  1382. Sound10.Volume = 1
  1383. Sound11.Parent = Tool0
  1384. Sound11.SoundId = "http://www.roblox.com/asset/?id=25954407"
  1385. Sound11.Volume = 1
  1386. for i,v in pairs(mas:GetChildren()) do
  1387. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1388. pcall(function() v:MakeJoints() end)
  1389. end
  1390. mas:Destroy()
  1391. for i,v in pairs(cors) do
  1392. spawn(function()
  1393. pcall(v)
  1394. end)
  1395. end
  1396.  
  1397. while true do
  1398. duck.TextureId = 'rbxassetid://1719079844'
  1399. wait (3)
  1400. duck.TextureId = 'rbxassetid://4363442248'
  1401. wait (0.2)
  1402. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement