Advertisement
gokusteve

Untitled

Jun 14th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1.  
  2. --Final Fantasy Gifted by TheRedAngel, Regular Script!
  3.  
  4.  
  5. 2.
  6.  
  7.  
  8. 3.me = game.Players.gokusteve
  9.  
  10.  
  11. 4.
  12.  
  13.  
  14. 5.pcall(function()
  15.  
  16.  
  17. 6. wait(0.1)
  18.  
  19.  
  20. 7. me.Backpack["Final Fantasy"]:remove()
  21.  
  22.  
  23. 8. wait(0.1)
  24.  
  25.  
  26. 9.end)
  27.  
  28.  
  29. 10.
  30.  
  31.  
  32. 11.h = Instance.new("HopperBin",me.Backpack)
  33.  
  34.  
  35. 12.h.Name = "Final Fantasy"
  36.  
  37.  
  38. 13.script.Parent = h
  39.  
  40.  
  41. 14.
  42.  
  43.  
  44. 15.bin = script.Parent
  45.  
  46.  
  47. 16.
  48.  
  49.  
  50. 17.ruincs = {"Dark grey", "Medium blue", "Medium stone grey"}
  51.  
  52.  
  53. 18.
  54.  
  55.  
  56. 19.function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  57.  
  58.  
  59. 20.part.Parent = parent
  60.  
  61.  
  62. 21.part.formFactor = form
  63.  
  64.  
  65. 22.part.CanCollide = collide
  66.  
  67.  
  68. 23.part.Transparency = tran
  69.  
  70.  
  71. 24.part.Reflectance = ref
  72.  
  73.  
  74. 25.part.Size = Vector3.new(x,y,z)
  75.  
  76.  
  77. 26.part.BrickColor = BrickColor.new(color)
  78.  
  79.  
  80. 27.part.TopSurface = 0
  81.  
  82.  
  83. 28.part.BottomSurface = 0
  84.  
  85.  
  86. 29.part.Anchored = anchor
  87.  
  88.  
  89. 30.part:BreakJoints()
  90.  
  91.  
  92. 31.end
  93.  
  94.  
  95. 32.
  96.  
  97.  
  98. 33.function weld(w, p, p0, p1, a, b, c, x, y, z)
  99.  
  100.  
  101. 34.w.Parent = p
  102.  
  103.  
  104. 35.w.Part0 = p0
  105.  
  106.  
  107. 36.w.Part1 = p1
  108.  
  109.  
  110. 37.w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  111.  
  112.  
  113. 38.end
  114.  
  115.  
  116. 39.
  117.  
  118.  
  119. 40.function mesh(mesh, parent, x, y, z, type)
  120.  
  121.  
  122. 41.mesh.Parent = parent
  123.  
  124.  
  125. 42.mesh.Scale = Vector3.new(x, y, z)
  126.  
  127.  
  128. 43.mesh.MeshType = type
  129.  
  130.  
  131. 44.end
  132.  
  133.  
  134. 45.
  135.  
  136.  
  137. 46.torso = me.Character.Torso
  138.  
  139.  
  140. 47.
  141.  
  142.  
  143. 48.rb = Instance.new("Part")
  144.  
  145.  
  146. 49.prop(rb,me.Character,false,1,0,1,1,1,"White",false,"Symmetric")
  147.  
  148.  
  149. 50.rt = Instance.new("Weld")
  150.  
  151.  
  152. 51.weld(rt,torso,torso,rb,0,0,0,-1,-0.5,0)
  153.  
  154.  
  155. 52.
  156.  
  157.  
  158. 53.lb = Instance.new("Part")
  159.  
  160.  
  161. 54.prop(lb,me.Character,false,1,0,1,1,1,"White",false,"Symmetric")
  162.  
  163.  
  164. 55.lt = Instance.new("Weld")
  165.  
  166.  
  167. 56.weld(lt,torso,torso,lb,0,0,0,1.05,-0.5,0)
  168.  
  169.  
  170. 57.
  171.  
  172.  
  173. 58.bars = 0
  174.  
  175.  
  176. 59.barsnumber = 0
  177.  
  178.  
  179. 60.increase = true
  180.  
  181.  
  182. 61.
  183.  
  184.  
  185. 62.rarm = me.Character["Right Arm"]
  186.  
  187.  
  188. 63.larm = me.Character["Left Arm"]
  189.  
  190.  
  191. 64.
  192.  
  193.  
  194. 65.rw = Instance.new("Weld")
  195.  
  196.  
  197. 66.weld(rw,rb,rb,nil,0.6,0,-0.4,-0.2,0.5,-0.2)
  198.  
  199.  
  200. 67.
  201.  
  202.  
  203. 68.lw = Instance.new("Weld")
  204.  
  205.  
  206. 69.weld(lw,lb,lb,nil,0.3,0,0.4,0.2,0.5,-0.12)
  207.  
  208.  
  209. 70.
  210.  
  211.  
  212. 71.neck = me.Character.Torso.Neck
  213.  
  214.  
  215. 72.neckorg = neck.C0
  216.  
  217.  
  218. 73.
  219.  
  220.  
  221. 74.function makegui(player)
  222.  
  223.  
  224. 75. local sc = Instance.new("ScreenGui",me.PlayerGui)
  225.  
  226.  
  227. 76. sc.Name = "Attacks"
  228.  
  229.  
  230. 77. local mf = Instance.new("Frame",sc)
  231.  
  232.  
  233. 78. mf.Size = UDim2.new(0.45,0,0.35,0)
  234.  
  235.  
  236. 79. mf.Position = UDim2.new(0,0,0.65,0)
  237.  
  238.  
  239. 80. mf.BackgroundTransparency = 0.6
  240.  
  241.  
  242. 81. mf.BackgroundColor3 = Color3.new(0.3,0.2,0.6)
  243.  
  244.  
  245. 82. local ba = Instance.new("Frame",mf)
  246.  
  247.  
  248. 83. ba.Size = UDim2.new(0.8,0,0.07,0)
  249.  
  250.  
  251. 84. ba.BackgroundColor3 = Color3.new(0,0,0.4)
  252.  
  253.  
  254. 85. ba.Position = UDim2.new(0.1,0,0.1,0)
  255.  
  256.  
  257. 86. for i=0,0.8,0.2 do
  258.  
  259.  
  260. 87. local lol = Instance.new("Frame",ba)
  261.  
  262.  
  263. 88. lol.Size = UDim2.new(0.2,0,1,0)
  264.  
  265.  
  266. 89. lol.Position = UDim2.new(i,0,0,0)
  267.  
  268.  
  269. 90. lol.BackgroundColor3 = Color3.new(0,0,0.6)
  270.  
  271.  
  272. 91. lol.BorderColor3 = Color3.new(0,0,0)
  273.  
  274.  
  275. 92. end
  276.  
  277.  
  278. 93. barmeter = Instance.new("Frame",ba)
  279.  
  280.  
  281. 94. barmeter.Size = UDim2.new(barsnumber/5,0,1,0)
  282.  
  283.  
  284. 95. barmeter.BackgroundColor3 = Color3.new(0.6,0.6,1)
  285.  
  286.  
  287. 96. barmeter.BackgroundTransparency = 0.6
  288.  
  289.  
  290. 97. coroutine.resume(coroutine.create(function()
  291.  
  292.  
  293. 98. while true do
  294.  
  295.  
  296. 99. wait()
  297.  
  298.  
  299. 100. if increase and bars < 5 then
  300.  
  301.  
  302. 101. barsnumber = barsnumber + 0.05
  303.  
  304.  
  305. 102. bars = math.floor(barsnumber)
  306.  
  307.  
  308. 103. barmeter.Size = UDim2.new(barsnumber/5,0,1,0)
  309.  
  310.  
  311. 104. end
  312.  
  313.  
  314. 105. end
  315.  
  316.  
  317. 106. end))
  318.  
  319.  
  320. 107.end
  321.  
  322.  
  323. 108.
  324.  
  325.  
  326. 109.function removegui(player)
  327.  
  328.  
  329. 110. for _,v in pairs(player.PlayerGui:GetChildren()) do
  330.  
  331.  
  332. 111. if v.Name == "Attacks" then
  333.  
  334.  
  335. 112. v:remove()
  336.  
  337.  
  338. 113. end
  339.  
  340.  
  341. 114. end
  342.  
  343.  
  344. 115.end
  345.  
  346.  
  347. 116.
  348.  
  349.  
  350. 117.
  351.  
  352.  
  353. 118.function eff(tab,part)
  354.  
  355.  
  356. 119. local heh = math.random(1,#tab)
  357.  
  358.  
  359. 120. local p = Instance.new("Part")
  360.  
  361.  
  362. 121. prop(p,workspace,false,0.4,0,1,1,1,ruincs[heh],true,"Symmetric")
  363.  
  364.  
  365. 122. p.CFrame = part.CFrame * CFrame.new(0,-1,0)
  366.  
  367.  
  368. 123. local ms = math.random(60,150)/100
  369.  
  370.  
  371. 124. local ms2 = math.random(60,150)/100
  372.  
  373.  
  374. 125. local ms3 = math.random(60,150)/100
  375.  
  376.  
  377. 126. local mef = Instance.new("SpecialMesh")
  378.  
  379.  
  380. 127. mesh(mef,p,ms,ms2,ms3,"Sphere")
  381.  
  382.  
  383. 128. coroutine.resume(coroutine.create(function()
  384.  
  385.  
  386. 129. for kk=0.4,1,0.05 do
  387.  
  388.  
  389. 130. wait()
  390.  
  391.  
  392. 131. p.Transparency = kk
  393.  
  394.  
  395. 132. mef.Scale = mef.Scale + Vector3.new(ms/10,ms2/10,ms3/10)
  396.  
  397.  
  398. 133. end
  399.  
  400.  
  401. 134. p:remove()
  402.  
  403.  
  404. 135. end))
  405.  
  406.  
  407. 136.end
  408.  
  409.  
  410. 137.
  411.  
  412.  
  413. 138.function ruin(r,l,n,bar,player)
  414.  
  415.  
  416. 139. for i=1, bar do
  417.  
  418.  
  419. 140. bars = bars - 1
  420.  
  421.  
  422. 141. barsnumber = bars
  423.  
  424.  
  425. 142. barmeter.Size = UDim2.new(barsnumber/5,0,1,0)
  426.  
  427.  
  428. 143. for o=1, 10 do
  429.  
  430.  
  431. 144. r.C0 = r.C0 * CFrame.fromEulerAnglesXYZ(0.14,-0.07,-0.1)
  432.  
  433.  
  434. 145. l.C0 = l.C0 * CFrame.fromEulerAnglesXYZ(0.1,0,0.06)
  435.  
  436.  
  437. 146. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(0,0,0)
  438.  
  439.  
  440. 147. eff(ruincs,rarm)
  441.  
  442.  
  443. 148. wait()
  444.  
  445.  
  446. 149. end
  447.  
  448.  
  449. 150. wait(0.06)
  450.  
  451.  
  452. 151. for i=1, 7 do
  453.  
  454.  
  455. 152. r.C0 = r.C0 * CFrame.fromEulerAnglesXYZ(0.3,0,0)
  456.  
  457.  
  458. 153. l.C0 = l.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.1)
  459.  
  460.  
  461. 154. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(0,0,0)
  462.  
  463.  
  464. 155. eff(ruincs,rarm)
  465.  
  466.  
  467. 156. wait()
  468.  
  469.  
  470. 157. end
  471.  
  472.  
  473. 158. wait(0.04)
  474.  
  475.  
  476. 159. for i=1, 3 do
  477.  
  478.  
  479. 160. r.C0 = r.C0 * CFrame.fromEulerAnglesXYZ(0,0.38,0.28)
  480.  
  481.  
  482. 161. l.C0 = l.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,-0.1)
  483.  
  484.  
  485. 162. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(0,0,0)
  486.  
  487.  
  488. 163. wait()
  489.  
  490.  
  491. 164. end
  492.  
  493.  
  494. 165. r.C0 = CFrame.new(0,0,0)
  495.  
  496.  
  497. 166. l.C0 = CFrame.new(0,0,0)
  498.  
  499.  
  500. 167. neck.C0 = neckorg
  501.  
  502.  
  503. 168. end
  504.  
  505.  
  506. 169.end
  507.  
  508.  
  509. 170.
  510.  
  511.  
  512. 171.deb = true
  513.  
  514.  
  515. 172.
  516.  
  517.  
  518. 173.bin.Selected:connect(function(mouse)
  519.  
  520.  
  521. 174. rw.Part1 = rarm
  522.  
  523.  
  524. 175. lw.Part1 = larm
  525.  
  526.  
  527. 176. makegui(me)
  528.  
  529.  
  530. 177. mouse.Button1Down:connect(function()
  531.  
  532.  
  533. 178. if deb then
  534.  
  535.  
  536. 179. deb = false
  537.  
  538.  
  539. 180. increase = false
  540.  
  541.  
  542. 181. ruin(rw,lw,neck,bars)
  543.  
  544.  
  545. 182. increase = true
  546.  
  547.  
  548. 183. deb = true
  549.  
  550.  
  551. 184. end
  552.  
  553.  
  554. 185. end)
  555.  
  556.  
  557. 186.end)
  558.  
  559.  
  560. 187.
  561.  
  562.  
  563. 188.bin.Deselected:connect(function()
  564.  
  565.  
  566. 189. rw.Part1 = nil
  567.  
  568.  
  569. 190. lw.Part1 = nil
  570.  
  571.  
  572. 191. removegui(me)
  573.  
  574.  
  575. 192.end)
  576.  
  577.  
  578. 193.
  579.  
  580.  
  581. 194.--lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement