Advertisement
leguwbrian1234

Untitled

Feb 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.40 KB | None | 0 0
  1. local sg = Instance.new("ScreenGui")
  2.  
  3. sg.Parent = game.Players.leguwbrian1234.PlayerGui
  4.  
  5. local tb = Instance.new("TextButton")
  6.  
  7. tb.Text = "Punch"
  8.  
  9. tb.Position = UDim2.new(0.95, 0, 0.5, 0)
  10.  
  11. tb.Size = UDim2.new(0.05, 0, 0.05, 0)
  12.  
  13. tb.Parent = sg
  14.  
  15. local tb2 = Instance.new("TextButton")
  16.  
  17. tb2.Text = "Block"
  18.  
  19. tb2.Position = UDim2.new(0.95, 0, 0.55, 0)
  20.  
  21. tb2.Size = UDim2.new(0.05, 0, 0.05, 0)
  22.  
  23. tb2.Parent = sg
  24.  
  25.  
  26.  
  27.  
  28. punch = false
  29.  
  30. ready = true
  31.  
  32. lazer = false
  33.  
  34.  
  35. wait(1)
  36.  
  37. player = game.Workspace.leguwbrian1234
  38.  
  39. local arm1 = Instance.new("Weld")
  40.  
  41. local arm2 = Instance.new("Weld")
  42.  
  43. arm1.Parent = player.Torso
  44.  
  45. arm2.Parent = player.Torso
  46.  
  47. arm1.Part0 = player.Torso
  48.  
  49. arm2.Part0 = player.Torso
  50.  
  51. arm1.Part1 = player["Right Arm"]
  52.  
  53. arm2.Part1 = player["Left Arm"]
  54.  
  55. arm1.C0 = CFrame.new(1.5, 0, 0)
  56.  
  57. arm2.C0 = CFrame.new(-1.5, 0, 0)
  58.  
  59.  
  60.  
  61. local p = Instance.new("Part")
  62.  
  63. p.Parent = player
  64.  
  65. p.Size = Vector3.new(1, 1, 1)
  66.  
  67. p.FormFactor = "Symmetric"
  68.  
  69. p.Name = "RAP"
  70.  
  71. p.CanCollide = false
  72.  
  73. local p = Instance.new("Part")
  74.  
  75. p.Parent = player
  76.  
  77. p.Size = Vector3.new(1, 1, 1)
  78.  
  79. p.FormFactor = "Symmetric"
  80.  
  81. p.Name = "LAP"
  82.  
  83. p.CanCollide = false
  84.  
  85.  
  86. local w = Instance.new("Weld")
  87.  
  88. local w2 = Instance.new("Weld")
  89.  
  90. w.Parent = player["Right Arm"]
  91.  
  92. w2.Parent = player["Left Arm"]
  93.  
  94. w.Part0 = player["Right Arm"]
  95.  
  96. w2.Part0 = player["Left Arm"]
  97.  
  98. w.Part1 = player.RAP
  99.  
  100. w2.Part1 = player.LAP
  101.  
  102. w.C0 = CFrame.new(0, -0.5, 0)
  103.  
  104. w2.C0 = CFrame.new(0, -0.5, 0)
  105.  
  106.  
  107.  
  108. function Punch()
  109.  
  110. print("punch")
  111.  
  112. --Charge
  113.  
  114. arm1.C0 = CFrame.new(1.5, 0.1, 0)*CFrame.fromEulerAnglesXYZ(0.2, 0, -0)
  115.  
  116. wait(0.025)
  117.  
  118. arm1.C0 = CFrame.new(1.5, 0.2, 0)*CFrame.fromEulerAnglesXYZ(0.4, 0, -0.1)
  119.  
  120. wait(0.025)
  121.  
  122. arm1.C0 = CFrame.new(1.5, 0.3, 0)*CFrame.fromEulerAnglesXYZ(0.6, 0, -0.1)
  123.  
  124. wait(0.025)
  125.  
  126. arm1.C0 = CFrame.new(1.5, 0.4, 0)*CFrame.fromEulerAnglesXYZ(0.8, 0, -0.2)
  127.  
  128. wait(0.025)
  129.  
  130. arm1.C0 = CFrame.new(1.5, 0.4, 0)*CFrame.fromEulerAnglesXYZ(1, 0, -0.2)
  131.  
  132. wait(0.025)
  133.  
  134. arm1.C0 = CFrame.new(1.5, 0.4, 0)*CFrame.fromEulerAnglesXYZ(1.2, 0, -0.3)
  135.  
  136. wait(0.025)
  137.  
  138. arm1.C0 = CFrame.new(1.5, 0.4, 0)*CFrame.fromEulerAnglesXYZ(1.4, 0, -0.3)
  139.  
  140. wait(0.025)
  141.  
  142. arm1.C0 = CFrame.new(1.5, 0.4, 0)*CFrame.fromEulerAnglesXYZ(1.6, 0, -0.4)
  143.  
  144. wait(0.025)
  145.  
  146. arm1.C0 = CFrame.new(1.4, 0.4, 0)*CFrame.fromEulerAnglesXYZ(1.8, 0, -0.4)
  147.  
  148. wait(0.025)
  149.  
  150. arm1.C0 = CFrame.new(1.3, 0.4, 0)*CFrame.fromEulerAnglesXYZ(2, 0, -0.5)
  151.  
  152. wait(0.025)
  153.  
  154. --Punch
  155.  
  156. punch = true
  157.  
  158. ready = true
  159.  
  160. arm1.C0 = CFrame.new(1.2, 0.4, -0.2)*CFrame.fromEulerAnglesXYZ(2, 0, -0.5)
  161.  
  162. wait(0.025)
  163.  
  164. arm1.C0 = CFrame.new(1.1, 0.5, -0.4)*CFrame.fromEulerAnglesXYZ(2, 0, -0.5)
  165.  
  166. wait(0.025)
  167.  
  168. arm1.C0 = CFrame.new(1, 0.6, -0.6)*CFrame.fromEulerAnglesXYZ(2, 0, -0.5)
  169.  
  170. wait(0.025)
  171.  
  172. arm1.C0 = CFrame.new(0.9, 0.7, -0.8)*CFrame.fromEulerAnglesXYZ(2, 0, -0.5)
  173.  
  174. wait(0.025)
  175.  
  176. --wait(1) was here
  177.  
  178. arm1.C0 = CFrame.new(1, 0.6, -0.7)*CFrame.fromEulerAnglesXYZ(1.8, 0, -0.4)
  179.  
  180. wait(0.025)
  181.  
  182. arm1.C0 = CFrame.new(1.1, 0.5, -0.6)*CFrame.fromEulerAnglesXYZ(1.6, 0, -0.3)
  183.  
  184. wait(0.025)
  185.  
  186. arm1.C0 = CFrame.new(1.2, 0.4, -0.5)*CFrame.fromEulerAnglesXYZ(1.4, 0, -0.2)
  187.  
  188. wait(0.025)
  189.  
  190. arm1.C0 = CFrame.new(1.3, 0.3, -0.4)*CFrame.fromEulerAnglesXYZ(1.2, 0, -0.1)
  191.  
  192. wait(0.025)
  193.  
  194. arm1.C0 = CFrame.new(1.4, 0.2, -0.3)*CFrame.fromEulerAnglesXYZ(1, 0, 0)
  195.  
  196. wait(0.025)
  197.  
  198. arm1.C0 = CFrame.new(1.5, 0.1, -0.2)*CFrame.fromEulerAnglesXYZ(0.8, 0, 0)
  199.  
  200. wait(0.025)
  201.  
  202. arm1.C0 = CFrame.new(1.5, 0, -0.1)*CFrame.fromEulerAnglesXYZ(0.6, 0, 0)
  203.  
  204. wait(0.025)
  205.  
  206. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.4, 0, 0)
  207.  
  208. wait(0.025)
  209.  
  210. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.2, 0, 0)
  211.  
  212. wait(0.025)
  213.  
  214. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  215.  
  216. punch = false
  217.  
  218. end
  219.  
  220.  
  221.  
  222.  
  223. function lazer()
  224.  
  225.  
  226. -----new
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234. arm1.C0 = CFrame.new(1.5, 0, -0.1)*CFrame.fromEulerAnglesXYZ(0.2, 0.1, -0.1)
  235.  
  236. arm2.C0 = CFrame.new(-1.5, 0, -0.1)*CFrame.fromEulerAnglesXYZ(0.2, -0.1, 0.1)
  237.  
  238. wait(0.05)
  239.  
  240.  
  241. arm1.C0 = CFrame.new(1.4, 0, -0.2)*CFrame.fromEulerAnglesXYZ(0.4, 0.2, -0.2)
  242.  
  243. arm2.C0 = CFrame.new(-1.4, 0, -0.2)*CFrame.fromEulerAnglesXYZ(0.4, -0.2, 0.2)
  244.  
  245. wait(0.05)
  246.  
  247.  
  248. arm1.C0 = CFrame.new(1.3, 0, -0.3)*CFrame.fromEulerAnglesXYZ(0.6, 0.3, -0.3)
  249.  
  250. arm2.C0 = CFrame.new(-1.3, 0, -0.3)*CFrame.fromEulerAnglesXYZ(0.6, -0.3, 0.3)
  251.  
  252. wait(0.05)
  253.  
  254.  
  255. arm1.C0 = CFrame.new(1.2, 0, -0.4)*CFrame.fromEulerAnglesXYZ(0.8, 0.4, -0.4)
  256.  
  257. arm2.C0 = CFrame.new(-1.2, 0, -0.4)*CFrame.fromEulerAnglesXYZ(0.8, -0.4, 0.4)
  258.  
  259. wait(0.05)
  260.  
  261.  
  262. arm1.C0 = CFrame.new(1.1, 0, -0.5)*CFrame.fromEulerAnglesXYZ(1, 0.5, -0.5)
  263.  
  264. arm2.C0 = CFrame.new(-1.1, 0, -0.5)*CFrame.fromEulerAnglesXYZ(1, -0.5, 0.5)
  265.  
  266. wait(0.05)
  267.  
  268. --Blocks
  269.  
  270. local p = Instance.new("Part")
  271.  
  272. p.BrickColor = BrickColor.new("Bright red")
  273.  
  274. p.Transparency = 0.5
  275.  
  276. p.Size = Vector3.new(2, 2, 2)
  277.  
  278. p.Parent = player
  279.  
  280. p.Name = "p1"
  281.  
  282. local sh1 = Instance.new("BlockMesh")
  283.  
  284. sh1.Scale = Vector3.new(sz, sz, sz)
  285.  
  286. sh1.Parent = player["p1"]
  287.  
  288. local w1 = Instance.new("Weld")
  289.  
  290. w1.Parent = player["Right Arm"]
  291.  
  292. w1.Part0 = player["Right Arm"]
  293.  
  294. w1.Part1 = player["p1"]
  295.  
  296. w1.C0 = CFrame.new(0, -0.5, 0)
  297.  
  298. sz = 0.75
  299.  
  300. local p = Instance.new("Part")
  301.  
  302. p.BrickColor = BrickColor.new("Bright red")
  303.  
  304. p.Transparency = 0.5
  305.  
  306. p.Size = Vector3.new(2, 2, 2)
  307.  
  308. p.Parent = player
  309.  
  310. p.Name = "p0"
  311.  
  312. local sh = Instance.new("BlockMesh")
  313.  
  314. sh.Scale = Vector3.new(sz, sz, sz)
  315.  
  316. sh.Parent = player["p0"]
  317.  
  318. local w = Instance.new("Weld")
  319.  
  320. w.Parent = player["Right Arm"]
  321.  
  322. w.Part0 = player["Right Arm"]
  323.  
  324. w.Part1 = player["p0"]
  325.  
  326. w.C0 = CFrame.new(0, -0.5, 0)
  327.  
  328.  
  329. xp = player.Torso.Position.X
  330.  
  331. zp = player.Torso.Position.Y
  332.  
  333. local b = Instance.new("BodyPosition")
  334.  
  335. b.maxForce = Vector3.new(0, 9600, 0)
  336.  
  337. b.position = Vector3.new(xp, 0, zp)
  338.  
  339. b.Parent = player.Torso
  340.  
  341. d = 0
  342.  
  343. for i = 1, 150 do
  344.  
  345. if d < 45 then
  346.  
  347. d = d + 1.2
  348.  
  349. end
  350.  
  351. b.position = Vector3.new(xp, d ,zp)
  352.  
  353. w.C0 = CFrame.new(0, -2, -0.5)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  354.  
  355. w1.C0 = CFrame.new(0, -2, -0.5)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  356.  
  357. sh1.Scale = Vector3.new(sz, sz, sz)
  358.  
  359. sh.Scale = Vector3.new(sz, sz, sz)
  360.  
  361. sz = sz + 0.025
  362.  
  363. wait(0.025)
  364.  
  365. end
  366.  
  367. player.p0:Remove()
  368.  
  369. player.p1:Remove()
  370.  
  371.  
  372. xp = player.Torso.Position.X
  373.  
  374. zp = player.Torso.Position.Z
  375.  
  376. local block = Instance.new("Part")
  377.  
  378. block.BrickColor = BrickColor.new("Bright red")
  379.  
  380. block.Transparency = 0.5
  381.  
  382. block.BottomSurface = "Smooth"
  383.  
  384. block.Size = Vector3.new(25,25,25)
  385.  
  386. block.Parent = player
  387.  
  388. block.Position = Vector3.new(xp, 5, zp)
  389.  
  390. block.CanCollide = false
  391.  
  392. block.Name = "IAO"
  393.  
  394. local bs = Instance.new("BlockMesh")
  395.  
  396. bs.Parent = block
  397.  
  398. block.Velocity = player.Head.CFrame.lookVector*350
  399.  
  400. function block(part)
  401.  
  402. if part.Name ~= "Base" then
  403.  
  404. part:Remove()
  405.  
  406. end
  407.  
  408. end
  409.  
  410. player.IAO.Touched:connect(block)
  411.  
  412.  
  413.  
  414. arm1.C0 = CFrame.new(1.2, 0, -0.4)*CFrame.fromEulerAnglesXYZ(0.9, 0.4, -0.4)
  415.  
  416. arm2.C0 = CFrame.new(-1.2, 0, -0.4)*CFrame.fromEulerAnglesXYZ(0.9, -0.4, 0.4)
  417.  
  418. wait(0.05)
  419.  
  420. arm1.C0 = CFrame.new(1.3, 0, -0.3)*CFrame.fromEulerAnglesXYZ(0.8, 0.3, -0.3)
  421.  
  422. arm2.C0 = CFrame.new(-1.3, 0, -0.3)*CFrame.fromEulerAnglesXYZ(0.8, -0.3, 0.3)
  423.  
  424. wait(0.05)
  425.  
  426. arm1.C0 = CFrame.new(1.4, 0, -0.2)*CFrame.fromEulerAnglesXYZ(0.7, 0.2, -0.2)
  427.  
  428. arm2.C0 = CFrame.new(-1.4, 0, -0.2)*CFrame.fromEulerAnglesXYZ(0.7, -0.2, 0.2)
  429.  
  430. wait(0.05)
  431.  
  432. arm1.C0 = CFrame.new(1.5, 0, -0.1)*CFrame.fromEulerAnglesXYZ(0.6, 0.1, -0.1)
  433.  
  434. arm2.C0 = CFrame.new(-1.5, 0, -0.1)*CFrame.fromEulerAnglesXYZ(0.6, -0.1, 0.1)
  435.  
  436. wait(0.05)
  437.  
  438. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.5, 0, 0)
  439.  
  440. arm2.C0 = CFrame.new(-1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.5, 0, 0)
  441.  
  442. wait(0.05)
  443.  
  444. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.4, 0, 0)
  445.  
  446. arm2.C0 = CFrame.new(-1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.4, 0, 0)
  447.  
  448. wait(0.05)
  449.  
  450. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.3, 0, 0)
  451.  
  452. arm2.C0 = CFrame.new(-1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.3, 0, 0)
  453.  
  454. wait(0.05)
  455.  
  456. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.2, 0, 0)
  457.  
  458. arm2.C0 = CFrame.new(-1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.2, 0, 0)
  459.  
  460. wait(0.05)
  461.  
  462. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  463.  
  464. arm2.C0 = CFrame.new(-1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  465.  
  466. wait(0.05)
  467.  
  468. arm1.C0 = CFrame.new(1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  469.  
  470. arm2.C0 = CFrame.new(-1.5, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  471.  
  472. wait(2)
  473.  
  474. b:Remove()
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482. end
  483.  
  484.  
  485.  
  486.  
  487.  
  488. wait(1)
  489.  
  490.  
  491. function touch(part)
  492.  
  493. hum = part.Parent:FindFirstChild("Humanoid")
  494.  
  495. if hum then
  496.  
  497. if punch==true then
  498.  
  499. if ready==true then
  500.  
  501. ready = false
  502.  
  503. damg = math.random(5, 25)
  504.  
  505. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - damg
  506.  
  507. print(damg)
  508.  
  509. end
  510.  
  511. end
  512.  
  513. end
  514.  
  515.  
  516. local pa = Instance.new("Part")
  517.  
  518. pa.BrickColor = BrickColor.new("Bright blue")
  519.  
  520. pa.Size = Vector3.new(2, 2, 2)
  521.  
  522. pa.Transparency = 0.5
  523.  
  524. pa.CanCollide = false
  525.  
  526. pa.Parent = player
  527.  
  528. local shape = Instance.new("BlockMesh")
  529.  
  530. shape.Scale = Vector3.new(0.75, 0.75, 0.75)
  531.  
  532. shape.Parent = pa
  533.  
  534. local w = Instance.new("Weld")
  535.  
  536. w.Parent = player.RAP
  537.  
  538. w.Part0 = player.RAP
  539.  
  540. w.Part1 = pa
  541.  
  542. w.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  543.  
  544. wait(0.1)
  545.  
  546. w.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  547.  
  548. wait(0.1)
  549.  
  550. w.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  551.  
  552. wait(0.1)
  553.  
  554. w.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  555.  
  556. wait(0.1)
  557.  
  558. w.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(1,5), math.random(1,5), math.random(1,5))
  559.  
  560. wait(0.1)
  561.  
  562. pa:Remove()
  563.  
  564. end
  565.  
  566.  
  567. player.RAP.Touched:connect(touch)
  568.  
  569. tb.MouseButton1Click:connect(Punch)
  570.  
  571. tb2.MouseButton1Click:connect(lazer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement