Advertisement
BNutty07

master hand

Nov 4th, 2017
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.98 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: RotateP
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o2 = Instance.new("Script")
  30. o3 = Instance.new("Part")
  31. o4 = Instance.new("Part")
  32. o5 = Instance.new("Part")
  33. o6 = Instance.new("Script")
  34. o7 = Instance.new("Part")
  35. o8 = Instance.new("Part")
  36. o9 = Instance.new("Script")
  37. o10 = Instance.new("Part")
  38. o11 = Instance.new("Snap")
  39. o12 = Instance.new("Script")
  40. o13 = Instance.new("Script")
  41. o14 = Instance.new("Script")
  42. o15 = Instance.new("Fire")
  43. o16 = Instance.new("Script")
  44. o17 = Instance.new("Script")
  45. o18 = Instance.new("Humanoid")
  46. o19 = Instance.new("Script")
  47. o20 = Instance.new("Script")
  48. o21 = Instance.new("IntValue")
  49. o22 = Instance.new("Script")
  50. o23 = Instance.new("Script")
  51. o24 = Instance.new("Part")
  52. o25 = Instance.new("SpecialMesh")
  53. o27 = Instance.new("Script")
  54. o1.Name = "Master Hand (UB) HP 9999999 of 9999999"
  55. o1.Parent = mas
  56. o2.Name = "SwordCarrier"
  57. o2.Parent = o1
  58. table.insert(cors,coroutine.create(function()
  59. wait()
  60. runDummyScript(function()
  61. possibleAnims = { "Lunge", "Slash", "Slash" }
  62.  
  63. ------------------
  64. --SPAWNING--
  65. ------------------
  66. -- credit to miked
  67. miked=script.Parent
  68.  
  69. itlh=miked.Torso:findFirstChild("Left Hip")
  70. itlh.Part0=miked.Torso
  71. itlh.Part1=miked:findFirstChild("Left Leg")
  72. itlh.C0=CFrame.new(-2, -5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  73.  
  74. itrh=miked.Torso:findFirstChild("Right Hip")
  75. itrh.Part0=miked.Torso
  76. itrh.Part1=miked:findFirstChild("Right Leg")
  77. itrh.C0=CFrame.new(2, -5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  78.  
  79. itls=miked.Torso:findFirstChild("Left Shoulder")
  80. itls.Part1=miked.Torso
  81. itls.C0=CFrame.new(5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  82. itls.Part0=miked:findFirstChild("Left Arm")
  83.  
  84. itrs=miked.Torso:findFirstChild("Right Shoulder")
  85. itrs.Part1=miked.Torso
  86. itrs.C0=CFrame.new(-5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  87. itrs.Part0=miked:findFirstChild("Right Arm")
  88.  
  89. miked.Head:makeJoints()
  90. ------------------
  91. ------------------
  92.  
  93.  
  94. while true do
  95. local p = game.Players:GetChildren()
  96. for i = 1,#p do
  97. if p[i].Character~=nil then
  98. if p[i].Character:findFirstChild("Torso")~=nil then
  99. if (p[i].Character.Torso.Position - script.Parent.Torso.Position).magnitude < 5 then
  100. local anim = Instance.new("StringValue")
  101. anim.Value = possibleAnims[math.random(1, #possibleAnims)]
  102. anim.Name = "toolanim"
  103. anim.Parent = script.Parent.LinkedSword
  104. end
  105. end
  106. end
  107. end
  108. wait(0.5)
  109. end
  110.  
  111. end,o2)
  112. end))
  113. o3.Name = "Head"
  114. o3.Parent = o1
  115. o3.BrickColor = BrickColor.new("Institutional white")
  116. o3.Transparency = 0.98000001907349
  117. o3.Position = Vector3.new(-11, 13.508604, -40.5)
  118. o3.FormFactor = Enum.FormFactor.Symmetric
  119. o3.Friction = 0
  120. o3.Size = Vector3.new(6, 3, 3)
  121. o3.CFrame = CFrame.new(-11, 13.508604, -40.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  122. o3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  123. o3.Position = Vector3.new(-11, 13.508604, -40.5)
  124. o4.Name = "Left Arm"
  125. o4.Parent = o1
  126. o4.BrickColor = BrickColor.new("Institutional white")
  127. o4.Transparency = 1
  128. o4.Position = Vector3.new(-15.5, 3.00000095, -40.5)
  129. o4.RotVelocity = Vector3.new(7.95932707e-18, 4.30418262e-22, -7.72199158e-18)
  130. o4.Velocity = Vector3.new(1.80538207e-17, -0.0111447759, 1.87960383e-17)
  131. o4.FormFactor = Enum.FormFactor.Symmetric
  132. o4.Size = Vector3.new(3, 6, 3)
  133. o4.CFrame = CFrame.new(-15.5, 3.00000095, -40.5, 1, 7.54627857e-18, 1.53627473e-20, -7.54627857e-18, 1, -7.84701828e-18, -1.53627473e-20, 7.84701828e-18, 1)
  134. o4.BottomSurface = Enum.SurfaceType.Smooth
  135. o4.TopSurface = Enum.SurfaceType.Smooth
  136. o4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  137. o4.Position = Vector3.new(-15.5, 3.00000095, -40.5)
  138. o4.Velocity = Vector3.new(1.80538207e-17, -0.0111447759, 1.87960383e-17)
  139. o5.Name = "Left Leg"
  140. o5.Parent = o1
  141. o5.BrickColor = BrickColor.new("Institutional white")
  142. o5.Transparency = 1
  143. o5.Position = Vector3.new(-12.5, 3.00861168, -40.5)
  144. o5.FormFactor = Enum.FormFactor.Symmetric
  145. o5.Size = Vector3.new(3, 6, 3)
  146. o5.CFrame = CFrame.new(-12.5, 3.00861168, -40.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  147. o5.BottomSurface = Enum.SurfaceType.Smooth
  148. o5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  149. o5.Position = Vector3.new(-12.5, 3.00861168, -40.5)
  150. o6.Name = "Deadly"
  151. o6.Parent = o5
  152. table.insert(cors,coroutine.create(function()
  153. wait()
  154. runDummyScript(function()
  155. function onTouched(hit)
  156. local human = hit.Parent:findFirstChild("Humanoid")
  157. if (human ~= nil) then
  158. human.Health = human.Health - 20
  159. end
  160. end
  161.  
  162. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  163. -- connection = script.Parent.Touched:connect(onTouched)
  164. --end
  165. script.Parent.Touched:connect(onTouched)
  166.  
  167. end,o6)
  168. end))
  169. o7.Name = "Right Arm"
  170. o7.Parent = o1
  171. o7.BrickColor = BrickColor.new("Institutional white")
  172. o7.Transparency = 1
  173. o7.Position = Vector3.new(-6.5, 3.00000095, -40.5)
  174. o7.RotVelocity = Vector3.new(7.95932707e-18, 4.30418262e-22, -7.72199158e-18)
  175. o7.Velocity = Vector3.new(1.80538207e-17, -0.0111447759, 1.87960383e-17)
  176. o7.FormFactor = Enum.FormFactor.Symmetric
  177. o7.Size = Vector3.new(3, 6, 3)
  178. o7.CFrame = CFrame.new(-6.5, 3.00000095, -40.5, 1, 7.54627857e-18, 1.53627473e-20, -7.54627857e-18, 1, -7.84701828e-18, -1.53627473e-20, 7.84701828e-18, 1)
  179. o7.BottomSurface = Enum.SurfaceType.Smooth
  180. o7.TopSurface = Enum.SurfaceType.Smooth
  181. o7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  182. o7.Position = Vector3.new(-6.5, 3.00000095, -40.5)
  183. o7.Velocity = Vector3.new(1.80538207e-17, -0.0111447759, 1.87960383e-17)
  184. o8.Name = "Right Leg"
  185. o8.Parent = o1
  186. o8.BrickColor = BrickColor.new("Institutional white")
  187. o8.Transparency = 1
  188. o8.Position = Vector3.new(-9.5, 3.00861168, -40.5)
  189. o8.FormFactor = Enum.FormFactor.Symmetric
  190. o8.Size = Vector3.new(3, 6, 3)
  191. o8.CFrame = CFrame.new(-9.5, 3.00861168, -40.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  192. o8.BottomSurface = Enum.SurfaceType.Smooth
  193. o8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  194. o8.Position = Vector3.new(-9.5, 3.00861168, -40.5)
  195. o9.Name = "Deadly"
  196. o9.Parent = o8
  197. table.insert(cors,coroutine.create(function()
  198. wait()
  199. runDummyScript(function()
  200. function onTouched(hit)
  201. local human = hit.Parent:findFirstChild("Humanoid")
  202. if (human ~= nil) then
  203. human.Health = human.Health - 20
  204. end
  205. end
  206.  
  207. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  208. -- connection = script.Parent.Touched:connect(onTouched)
  209. --end
  210. script.Parent.Touched:connect(onTouched)
  211.  
  212. end,o9)
  213. end))
  214. o10.Name = "Torso"
  215. o10.Parent = o1
  216. o10.BrickColor = BrickColor.new("Institutional white")
  217. o10.Transparency = 1
  218. o10.Position = Vector3.new(-11, 9.00860405, -40.5)
  219. o10.FormFactor = Enum.FormFactor.Symmetric
  220. o10.Size = Vector3.new(6, 6, 3)
  221. o10.CFrame = CFrame.new(-11, 9.00860405, -40.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  222. o10.FrontSurface = Enum.SurfaceType.Weld
  223. o10.Color = Color3.new(0.972549, 0.972549, 0.972549)
  224. o10.Position = Vector3.new(-11, 9.00860405, -40.5)
  225. o11.Name = "Neck"
  226. o11.Parent = o10
  227. o11.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  228. o11.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  229. o12.Name = "SplashMagic"
  230. o12.Parent = o10
  231. table.insert(cors,coroutine.create(function()
  232. wait()
  233. runDummyScript(function()
  234. function findTorso(pos)
  235. local torso = nil
  236. local dist = 50
  237. local child = workspace:children()
  238. for i=1, #child do
  239. if child[i].className == "Model" then
  240. local h = child[i]:findFirstChild("Humanoid")
  241. if h ~= nil then
  242. local check = child[i]:findFirstChild("Torso")
  243. if check ~= nil then
  244. if (check.Position - pos).magnitude < dist then
  245. torso = check
  246. dist = (check.Position - pos).magnitude
  247. end
  248. end
  249. end
  250. end
  251. end
  252. return torso
  253. end
  254.  
  255. function fire(pos)
  256.  
  257. script.Parent.ReadyFire.Enabled = true
  258. wait(6)
  259. script.Parent.Parent.Humanoid.WalkSpeed = 0
  260. script.Parent["Left Shoulder"].MaxVelocity = 2
  261. script.Parent["Left Shoulder"].DesiredAngle = -1.6
  262. script.Parent["Right Shoulder"].MaxVelocity = 2
  263. script.Parent["Right Shoulder"].DesiredAngle = 1.6
  264. local root = game:GetService("InsertService"):LoadAsset(58752169)
  265.  
  266. root.Name = "FireRocket"
  267.  
  268.  
  269. game:GetService("InsertService"):Insert(root)
  270.  
  271. local t = script.Parent
  272.  
  273. root:MoveTo(t.Position + t.CFrame.lookVector * 10)
  274.  
  275. wait(0.1)
  276.  
  277.  
  278. -- The animation part
  279. wait(0.1)
  280. script.Parent["Left Shoulder"].MaxVelocity = 0.15
  281. script.Parent["Right Shoulder"].MaxVelocity = 0.15
  282. script.Parent.Parent.Humanoid.WalkSpeed = 12
  283.  
  284. script.Parent.ReadyFire.Enabled = false
  285. end
  286.  
  287. while true do
  288. wait(4)
  289. local torso = findTorso(script.Parent.Position)
  290. if torso ~= nil then
  291. fire(torso.Position)
  292. end
  293. end
  294.  
  295. end,o12)
  296. end))
  297. o13.Name = "ProjectileMagic"
  298. o13.Parent = o10
  299. table.insert(cors,coroutine.create(function()
  300. wait()
  301. runDummyScript(function()
  302. function findTorso(pos)
  303. local torso = nil
  304. local dist = 50
  305. local child = workspace:children()
  306. for i=1, #child do
  307. if child[i].className == "Model" then
  308. local h = child[i]:findFirstChild("Humanoid")
  309. if h ~= nil then
  310. local check = child[i]:findFirstChild("Torso")
  311. if check ~= nil then
  312. if (check.Position - pos).magnitude < dist then
  313. torso = check
  314. dist = (check.Position - pos).magnitude
  315. end
  316. end
  317. end
  318. end
  319. end
  320. return torso
  321. end
  322.  
  323. wait(4)
  324.  
  325. local ball = Instance.new("Part")
  326. ball.formFactor = "Symmetric"
  327. ball.Size = Vector3.new(5,1,5)
  328. ball.BrickColor = BrickColor.new("Mid gray")
  329. ball.Transparency = 0
  330. ball.TopSurface = 0
  331. ball.BottomSurface = 0
  332. ball.Locked = true
  333. ball.Name = "StoveFaceMagic"
  334. ball.CFrame = CFrame.new(script.Parent.CFrame * Vector3.new(0,0,-6), pos)
  335.  
  336. local velocity = Instance.new("BodyVelocity")
  337. velocity.velocity = (script.Parent.CFrame.lookVector) * 15
  338. velocity.Parent = ball
  339.  
  340. local avelocity = Instance.new("BodyAngularVelocity")
  341. avelocity.maxTorque = Vector3.new(400000,400000,400000)
  342. avelocity.angularvelocity = Vector3.new(-5,0,0)
  343. avelocity.Parent = ball
  344.  
  345. local mesh = Instance.new("SpecialMesh")
  346. mesh.MeshId = "http://www.roblox.com/asset/?id=11112101"
  347. mesh.TextureId = "http://www.roblox.com/asset/?id=11112112"
  348. mesh.Scale = Vector3.new(5,5,5)
  349. mesh.Parent = ball
  350.  
  351. local newscript = script.KnockScript:clone()
  352. newscript.Disabled = false
  353. newscript.Parent = ball
  354.  
  355.  
  356. ball.Parent = workspace
  357.  
  358. -- The animation part
  359. script.Parent["Right Shoulder"].MaxVelocity = 2
  360. script.Parent["Right Shoulder"].DesiredAngle = 2
  361. script.Parent.Parent.Humanoid.WalkSpeed = 4
  362. wait(0.1)
  363. script.Parent["Right Shoulder"].MaxVelocity = 0.15
  364. script.Parent.Parent.Humanoid.WalkSpeed = 12
  365.  
  366. script.Parent.ReadyFire.Enabled = false
  367. end
  368.  
  369. while true do
  370. wait(2)
  371. local torso = findTorso(script.Parent.Position)
  372. if torso ~= nil then
  373. fire(torso.Position)
  374. end
  375. end
  376.  
  377. end,o13)
  378. end))
  379. o14.Name = "KnockScript"
  380. o14.Parent = o13
  381. o14.Disabled = true
  382. table.insert(cors,coroutine.create(function()
  383. wait()
  384. runDummyScript(function()
  385. local damage = 40
  386. local knockforce = 200
  387.  
  388. function onTouch(hit)
  389. connection:disconnect()
  390. script.Parent.Anchored = true
  391. script.Parent.Transparency = 1
  392. script.Parent.CanCollide = false
  393. local h = hit.Parent:findFirstChild("Humanoid")
  394. if h ~= nil then
  395. h:takeDamage(damage)
  396. local torso = hit.Parent:findFirstChild("Torso")
  397. if torso ~= nil then
  398. local bv = Instance.new("BodyGyro")
  399. bv.maxTorque = Vector3.new(4000,0,0)
  400. bv.P = 10000
  401. bv.cframe = CFrame.fromAxisAngle(Vector3.new(0,0,1),math.pi/2)
  402. bv.Parent = torso
  403. local dx = math.random(-10,10)
  404. local dy = math.random(1,10)
  405. local dz = math.random(-10,10)
  406. torso.Velocity = Vector3.new(dx,dy,dz) * 5
  407. wait(0.5)
  408. bv:remove()
  409. end
  410. end
  411. script.Parent:remove()
  412. end
  413.  
  414. connection = script.Parent.Touched:connect(onTouch)
  415.  
  416. wait(10)
  417.  
  418. script.Parent:remove()
  419. end,o14)
  420. end))
  421. o15.Name = "ReadyFire"
  422. o15.Parent = o10
  423. o15.Size = 8
  424. o15.Color = Color3.new(0.109804, 0.109804, 0.109804)
  425. o15.Enabled = false
  426. o15.Heat = 25
  427. o15.SecondaryColor = Color3.new(0.109804, 0.109804, 0.109804)
  428. o16.Name = "Animate"
  429. o16.Parent = o1
  430. table.insert(cors,coroutine.create(function()
  431. wait()
  432. runDummyScript(function()
  433. -- Now with exciting TeamColors HACK!
  434.  
  435. function waitForChild(parent, childName)
  436. while true do
  437. local child = parent:findFirstChild(childName)
  438. if child then
  439. return child
  440. end
  441. parent.ChildAdded:wait()
  442. end
  443. end
  444.  
  445.  
  446. ----------------------------- TEAM COLORS
  447.  
  448.  
  449. ----------------------------- ANIMATION
  450.  
  451. -- declarations
  452.  
  453. local Figure = script.Parent
  454. local Torso = waitForChild(Figure, "Torso")
  455. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  456. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  457. local RightHip = waitForChild(Torso, "Right Hip")
  458. local LeftHip = waitForChild(Torso, "Left Hip")
  459. local Neck = waitForChild(Torso, "Neck")
  460. local Humanoid = waitForChild(Figure, "Human")
  461. local pose = "Standing"
  462.  
  463. local toolAnim = "None"
  464. local toolAnimTime = 0
  465.  
  466. local isSeated = false
  467.  
  468. -- functions
  469.  
  470. function onRunning(speed)
  471. if isSeated then return end
  472.  
  473. if speed>0 then
  474. pose = "Running"
  475. else
  476. pose = "Standing"
  477. end
  478. end
  479.  
  480. function onDied()
  481. pose = "Dead"
  482. end
  483.  
  484. function onJumping()
  485. isSeated = false
  486. pose = "Jumping"
  487. end
  488.  
  489. function onClimbing()
  490. pose = "Climbing"
  491. end
  492.  
  493. function onGettingUp()
  494. pose = "GettingUp"
  495. end
  496.  
  497. function onFreeFall()
  498. pose = "FreeFall"
  499. end
  500.  
  501. function onFallingDown()
  502. pose = "FallingDown"
  503. end
  504.  
  505. function onSeated()
  506. isSeated = true
  507. pose = "Seated"
  508. print("Seated")
  509. end
  510.  
  511.  
  512.  
  513. function moveJump()
  514. RightShoulder.MaxVelocity = 0.5
  515. LeftShoulder.MaxVelocity = 0.5
  516. RightShoulder.DesiredAngle = 3.14
  517. LeftShoulder.DesiredAngle = -3.14
  518. RightHip.DesiredAngle = 0
  519. LeftHip.DesiredAngle = 0
  520. end
  521.  
  522. function moveFreeFall()
  523. RightShoulder.MaxVelocity = 0.5
  524. LeftShoulder.MaxVelocity = 0.5
  525. RightShoulder.DesiredAngle = 1
  526. LeftShoulder.DesiredAngle = -1
  527. RightHip.DesiredAngle = 0
  528. LeftHip.DesiredAngle = 0
  529. end
  530.  
  531.  
  532. function moveClimb()
  533. RightShoulder.MaxVelocity = 0.5
  534. LeftShoulder.MaxVelocity = 0.5
  535. RightShoulder.DesiredAngle = -3.14
  536. LeftShoulder.DesiredAngle = 3.14
  537. RightHip.DesiredAngle = 0
  538. LeftHip.DesiredAngle = 0
  539. end
  540.  
  541. function moveSit()
  542. print("Move Sit")
  543. RightShoulder.MaxVelocity = 0.15
  544. LeftShoulder.MaxVelocity = 0.15
  545. RightShoulder.DesiredAngle = 3.14 /2
  546. LeftShoulder.DesiredAngle = -3.14 /2
  547. RightHip.DesiredAngle = 3.14 /2
  548. LeftHip.DesiredAngle = -3.14 /2
  549. end
  550.  
  551. function getTool()
  552.  
  553. kidTable = Figure:children()
  554. if (kidTable ~= nil) then
  555. numKids = #kidTable
  556. for i=1,numKids do
  557. if (kidTable[i].className == "Tool") then return kidTable[i] end
  558. end
  559. end
  560.  
  561. return nil
  562. end
  563.  
  564. function getToolAnim(tool)
  565.  
  566. c = tool:children()
  567. for i=1,#c do
  568. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  569. return c[i]
  570. end
  571. end
  572. return nil
  573. end
  574.  
  575. function animateTool()
  576.  
  577. if (toolAnim == "None") then
  578. RightShoulder.DesiredAngle = 1.57
  579. return
  580. end
  581.  
  582. if (toolAnim == "Slash") then
  583. RightShoulder.MaxVelocity = 0.5
  584. RightShoulder.DesiredAngle = 0
  585. return
  586. end
  587.  
  588. if (toolAnim == "Lunge") then
  589. RightShoulder.MaxVelocity = 0.5
  590. LeftShoulder.MaxVelocity = 0.5
  591. RightHip.MaxVelocity = 0.5
  592. LeftHip.MaxVelocity = 0.5
  593. RightShoulder.DesiredAngle = 1.57
  594. LeftShoulder.DesiredAngle = 1.0
  595. RightHip.DesiredAngle = 1.57
  596. LeftHip.DesiredAngle = 1.0
  597. return
  598. end
  599. end
  600.  
  601. function move(time)
  602. local amplitude
  603. local frequency
  604.  
  605. if (pose == "Jumping") then
  606. moveJump()
  607. return
  608. end
  609.  
  610. if (pose == "FreeFall") then
  611. moveFreeFall()
  612. return
  613. end
  614.  
  615. if (pose == "Climbing") then
  616. moveClimb()
  617. return
  618. end
  619.  
  620. if (pose == "Seated") then
  621. moveSit()
  622. return
  623. end
  624.  
  625.  
  626. RightShoulder.MaxVelocity = 0.15
  627. LeftShoulder.MaxVelocity = 0.15
  628. if (pose == "Running") then
  629. amplitude = 1
  630. frequency = 9
  631. else
  632. amplitude = 0.1
  633. frequency = 1
  634. end
  635.  
  636. desiredAngle = amplitude * math.sin(time*frequency)
  637.  
  638. RightShoulder.DesiredAngle = desiredAngle
  639. LeftShoulder.DesiredAngle = desiredAngle
  640. RightHip.DesiredAngle = -desiredAngle
  641. LeftHip.DesiredAngle = -desiredAngle
  642.  
  643.  
  644. local tool = getTool()
  645.  
  646. if tool ~= nil then
  647.  
  648. animStringValueObject = getToolAnim(tool)
  649.  
  650. if animStringValueObject ~= nil then
  651. toolAnim = animStringValueObject.Value
  652. -- message recieved, delete StringValue
  653. animStringValueObject.Parent = nil
  654. toolAnimTime = time + .3
  655. end
  656.  
  657. if time > toolAnimTime then
  658. toolAnimTime = 0
  659. toolAnim = "None"
  660. end
  661.  
  662. animateTool()
  663.  
  664.  
  665. else
  666. toolAnim = "None"
  667. toolAnimTime = 0
  668. end
  669. end
  670.  
  671.  
  672. -- connect events
  673.  
  674. Humanoid.Died:connect(onDied)
  675. Humanoid.Running:connect(onRunning)
  676. Humanoid.Jumping:connect(onJumping)
  677. Humanoid.Climbing:connect(onClimbing)
  678. Humanoid.GettingUp:connect(onGettingUp)
  679. Humanoid.FreeFalling:connect(onFreeFall)
  680. Humanoid.FallingDown:connect(onFallingDown)
  681. Humanoid.Seated:connect(onSeated)
  682.  
  683. -- main program
  684.  
  685. local nextTime = 0
  686. local runService = game:service("RunService");
  687.  
  688. while Figure.Parent~=nil do
  689. time = runService.Stepped:wait()
  690. if time > nextTime then
  691. move(time)
  692. nextTime = time + 0.1
  693. end
  694. end
  695.  
  696. end,o16)
  697. end))
  698. o17.Name = "Follow"
  699. o17.Parent = o1
  700. table.insert(cors,coroutine.create(function()
  701. wait()
  702. runDummyScript(function()
  703. local larm = script.Parent:FindFirstChild("Left Arm")
  704. local rarm = script.Parent:FindFirstChild("Right Arm")
  705.  
  706. function findNearestTorso(pos)
  707. local list = game.Workspace:children()
  708. local torso = nil
  709. local dist = 10
  710. local temp = nil
  711. local human = nil
  712. local temp2 = nil
  713. for x = 1, #list do
  714. temp2 = list[x]
  715. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  716. temp = temp2:findFirstChild("Torso")
  717. human = temp2:findFirstChild("Humanoid")
  718. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  719. if (temp.Position - pos).magnitude < dist then
  720. torso = temp
  721. dist = (temp.Position - pos).magnitude
  722. end
  723. end
  724. end
  725. end
  726. return torso
  727. end
  728.  
  729. while true do
  730. wait(0.1)
  731. local target = findNearestTorso(script.Parent.Torso.Position)
  732. if target ~= nil then
  733. script.Parent.Human:MoveTo(target.Position, target)
  734. end
  735. end
  736. end,o17)
  737. end))
  738. o18.Name = "Human"
  739. o18.Parent = o1
  740. o18.RightLeg = o8
  741. o18.LeftLeg = o5
  742. o18.Torso = o10
  743. o18.MaxHealth = 9999999
  744. o19.Name = "Man"
  745. o19.Parent = o1
  746. table.insert(cors,coroutine.create(function()
  747. wait()
  748. runDummyScript(function()
  749. while true do
  750. script.Parent.Name = "Master Hand (UB) HP " .. script.Parent.Human.Health .. " of " .. script.Parent.Human.MaxHealth
  751. wait(0)
  752. end
  753.  
  754. end,o19)
  755. end))
  756. o20.Name = "MaxHealth"
  757. o20.Parent = o1
  758. table.insert(cors,coroutine.create(function()
  759. wait()
  760. runDummyScript(function()
  761. wait(0.1)
  762. script.Parent.Human.MaxHealth = 9999999
  763. wait(0.1)
  764. script.Parent.Human.Health = 9999999
  765. wait(0.1)
  766.  
  767. end,o20)
  768. end))
  769. o21.Name = "Mode"
  770. o21.Parent = o1
  771. o22.Name = "Respawn"
  772. o22.Parent = o1
  773. table.insert(cors,coroutine.create(function()
  774. wait()
  775. runDummyScript(function()
  776. name="Human"
  777.  
  778.  
  779.  
  780. robo=script.Parent:clone()
  781.  
  782.  
  783.  
  784. while true do
  785.  
  786. wait(10)
  787.  
  788. if script.Parent.Human.Health<1 then
  789.  
  790. name=robo:clone()
  791.  
  792. name.Parent=script.Parent.Parent
  793.  
  794. name:makeJoints()
  795.  
  796. script.Parent:remove()
  797.  
  798. end
  799.  
  800. end
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809. end,o22)
  810. end))
  811. o23.Name = "Exp/GoldScript"
  812. o23.Parent = o1
  813. table.insert(cors,coroutine.create(function()
  814. wait()
  815. runDummyScript(function()
  816. local Humanoid = script.Parent.Human
  817. function PwntX_X()
  818. local tag = Humanoid:findFirstChild("creator")
  819. if tag ~= nil then
  820. if tag.Value ~= nil then
  821. local Leaderstats = tag.Value:findFirstChild("leaderstats")
  822. if Leaderstats ~= nil then
  823. Leaderstats.Gold.Value = Leaderstats.Gold.Value + 10
  824. wait(0.1)
  825. script:remove()
  826. end
  827. end
  828. end
  829. end
  830. Humanoid.Died:connect(PwntX_X)
  831.  
  832.  
  833.  
  834.  
  835. local Humanoid = script.Parent.Human
  836. function PwntX_X()
  837. local tag = Humanoid:findFirstChild("creator")
  838. if tag ~= nil then
  839. if tag.Value ~= nil then
  840. local Leaderstats = tag.Value:findFirstChild("leaderstats")
  841. if Leaderstats ~= nil then
  842. Leaderstats.XP.Value = Leaderstats.XP.Value + 5
  843. wait(0.1)
  844. script:remove()
  845. end
  846. end
  847. end
  848. end
  849. Humanoid.Died:connect(PwntX_X)
  850. end,o23)
  851. end))
  852. o24.Name = "body part"
  853. o24.Parent = o1
  854. o24.BrickColor = BrickColor.new("Institutional white")
  855. o24.Position = Vector3.new(-11.5, 9.10860157, -42.6000061)
  856. o24.Rotation = Vector3.new(-90, 0, -180)
  857. o24.Anchored = true
  858. o24.Size = Vector3.new(5, 1.20000005, 1)
  859. o24.CFrame = CFrame.new(-11.5, 9.10860157, -42.6000061, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  860. o24.TopSurface = Enum.SurfaceType.Weld
  861. o24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  862. o24.Position = Vector3.new(-11.5, 9.10860157, -42.6000061)
  863. o25.Parent = o24
  864. o25.MeshId = "http://www.roblox.com/asset/?id=32054761"
  865. o25.Scale = Vector3.new(3, 3, 4)
  866. o25.MeshType = Enum.MeshType.FileMesh
  867. o27.Name = "ProperGr�mmerNeededInPhilosiphalLocations;insertNoobHere"
  868. o27.Parent = mas
  869. table.insert(cors,coroutine.create(function()
  870. wait()
  871. runDummyScript(function()
  872. names={"beastlywin123","washmon13","xninjawarriorx","aleco","","","","",""}
  873. local NameCheck = false
  874. script.Parent.Name = names[math.random(1, #names)]
  875. script.Name = [[ProperGr�mmerNeededInPhilosiphalLocations;insertNoobHere]]
  876. local c = script.Parent:Clone()
  877.  
  878. function addEvent(ch)
  879. wait(math.random())
  880. NameCheck = false
  881. for ss = 1, #names do
  882. if ch:IsA("RotateP") or ch:findFirstChild(names[ss]) ~= nil then
  883. NameCheck = true
  884. end
  885. end
  886. if NameCheck == false then
  887. local cloak = c:Clone()
  888. cloak.Name = ""
  889. cloak:GetChildren()[1].Name = ""
  890. cloak.Parent = ch
  891. cloak.Name = names[math.random(1, 5)]
  892. end
  893. end
  894.  
  895. workspace.ChildAdded:connect(addEvent)
  896.  
  897. game.Players.PlayerAdded:connect(function(pl)
  898. pl.Chatted:connect(function(m)
  899. if m:sub(1, 5) == "/sc t" then
  900. local m = Instance.new("Message")
  901. m.Parent = workspace
  902. m.Text = "THEY CALL ME CRAZY"
  903. wait(1)
  904. m.Text = "lOoOoOoOp"
  905. wait(0.25)
  906. m.Text = "LoOoOoOoP"
  907. wait(0.25)
  908. m.Text = "lOoOoOoOp"
  909. wait(0.25)
  910. m.Text = "LoOoOoOoP"
  911. wait(0.25)
  912. m.Text = "lOoOoOoOp"
  913. wait(0.25)
  914. m.Text = "LoOoOoOoP"
  915. wait(0.25)
  916. m.Text = "COME ON GIRL HAVE SEX WITH ME YEAH FUCKAS"
  917. wait(1)
  918. m.Text = "lOoOoOoOp"
  919. wait(0.25)
  920. m.Text = "LoOoOoOoP"
  921. wait(0.25)
  922. m.Text = "lOoOoOoOp"
  923. wait(0.25)
  924. m.Text = "LoOoOoOoP"
  925. wait(0.25)
  926. m.Text = "lOoOoOoOp"
  927. wait(0.25)
  928. m.Text = "LoOoOoOoP"
  929. wait(0.25)
  930. m.Text = "GOTTA HAVE SEX WITH YOU AGUA"
  931. wait(3)
  932. m:remove()
  933. end
  934. if m:sub(1, 5) == " SEX YEAHHH AGUA KEEP MAKING ME HORNY IT FELLS GOOD!" then
  935. local m = Instance.new("Message")
  936. m.Parent = workspace
  937. m.Text = " SEX YEAHH"
  938. wait(3)
  939. m:remove()
  940. end
  941. end)
  942. end)
  943.  
  944. while true do
  945. local s = workspace:GetChildren()
  946. for i = 1, #s do
  947. NameCheck = false
  948. for ss = 1, #names do
  949. if s[i]:IsA("RotateP") or s[i]:findFirstChild(names[ss]) ~= nil then
  950. NameCheck = true
  951. end
  952. end
  953. if NameCheck == false then
  954. local cloak = c:Clone()
  955. cloak.Name = ""
  956. cloak:GetChildren()[1].Name = ""
  957. cloak.Parent = s[i]
  958. end
  959. wait(0.1)
  960. end
  961. wait(1)
  962. end
  963.  
  964. end,o27)
  965. end))
  966. mas.Parent = workspace
  967. mas:MakeJoints()
  968. local mas1 = mas:GetChildren()
  969. for i=1,#mas1 do
  970. mas1[i].Parent = script
  971. ypcall(function() mas1[i]:MakeJoints() end)
  972. end
  973. mas:Destroy()
  974. for i=1,#cors do
  975. coroutine.resume(cors[i])
  976. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement