Advertisement
Zarcus

Final Fantasy

Aug 30th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. --Final Fantasy Gifted by TheRedAngel, Regular Script!
  2.  
  3. me = game.Players.Max5709
  4.  
  5. pcall(function()
  6. wait(0.1)
  7. me.Backpack["Final Fantasy"]:remove()
  8. wait(0.1)
  9. end)
  10.  
  11. h = Instance.new("HopperBin",me.Backpack)
  12. h.Name = "Final Fantasy"
  13. script.Parent = h
  14.  
  15. bin = script.Parent
  16.  
  17. ruincs = {"Dark grey", "Medium blue", "Medium stone grey"}
  18.  
  19. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  20. part.Parent = parent
  21. part.formFactor = form
  22. part.CanCollide = collide
  23. part.Transparency = tran
  24. part.Reflectance = ref
  25. part.Size = Vector3.new(x,y,z)
  26. part.BrickColor = BrickColor.new(color)
  27. part.TopSurface = 0
  28. part.BottomSurface = 0
  29. part.Anchored = anchor
  30. part:BreakJoints()
  31. end
  32.  
  33. function weld(w, p, p0, p1, a, b, c, x, y, z)
  34. w.Parent = p
  35. w.Part0 = p0
  36. w.Part1 = p1
  37. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  38. end
  39.  
  40. function mesh(mesh, parent, x, y, z, type)
  41. mesh.Parent = parent
  42. mesh.Scale = Vector3.new(x, y, z)
  43. mesh.MeshType = type
  44. end
  45.  
  46. torso = me.Character.Torso
  47.  
  48. rb = Instance.new("Part")
  49. prop(rb,me.Character,false,1,0,1,1,1,"White",false,"Symmetric")
  50. rt = Instance.new("Weld")
  51. weld(rt,torso,torso,rb,0,0,0,-1,-0.5,0)
  52.  
  53. lb = Instance.new("Part")
  54. prop(lb,me.Character,false,1,0,1,1,1,"White",false,"Symmetric")
  55. lt = Instance.new("Weld")
  56. weld(lt,torso,torso,lb,0,0,0,1.05,-0.5,0)
  57.  
  58. bars = 0
  59. barsnumber = 0
  60. increase = true
  61.  
  62. rarm = me.Character["Right Arm"]
  63. larm = me.Character["Left Arm"]
  64.  
  65. rw = Instance.new("Weld")
  66. weld(rw,rb,rb,nil,0.6,0,-0.4,-0.2,0.5,-0.2)
  67.  
  68. lw = Instance.new("Weld")
  69. weld(lw,lb,lb,nil,0.3,0,0.4,0.2,0.5,-0.12)
  70.  
  71. neck = me.Character.Torso.Neck
  72. neckorg = neck.C0
  73.  
  74. function makegui(player)
  75. local sc = Instance.new("ScreenGui",me.PlayerGui)
  76. sc.Name = "Attacks"
  77. local mf = Instance.new("Frame",sc)
  78. mf.Size = UDim2.new(0.45,0,0.35,0)
  79. mf.Position = UDim2.new(0,0,0.65,0)
  80. mf.BackgroundTransparency = 0.6
  81. mf.BackgroundColor3 = Color3.new(0.3,0.2,0.6)
  82. local ba = Instance.new("Frame",mf)
  83. ba.Size = UDim2.new(0.8,0,0.07,0)
  84. ba.BackgroundColor3 = Color3.new(0,0,0.4)
  85. ba.Position = UDim2.new(0.1,0,0.1,0)
  86. for i=0,0.8,0.2 do
  87. local lol = Instance.new("Frame",ba)
  88. lol.Size = UDim2.new(0.2,0,1,0)
  89. lol.Position = UDim2.new(i,0,0,0)
  90. lol.BackgroundColor3 = Color3.new(0,0,0.6)
  91. lol.BorderColor3 = Color3.new(0,0,0)
  92. end
  93. barmeter = Instance.new("Frame",ba)
  94. barmeter.Size = UDim2.new(barsnumber/5,0,1,0)
  95. barmeter.BackgroundColor3 = Color3.new(0.6,0.6,1)
  96. barmeter.BackgroundTransparency = 0.6
  97. coroutine.resume(coroutine.create(function()
  98. while true do
  99. wait()
  100. if increase and bars < 5 then
  101. barsnumber = barsnumber + 0.05
  102. bars = math.floor(barsnumber)
  103. barmeter.Size = UDim2.new(barsnumber/5,0,1,0)
  104. end
  105. end
  106. end))
  107. end
  108.  
  109. function removegui(player)
  110. for _,v in pairs(player.PlayerGui:GetChildren()) do
  111. if v.Name == "Attacks" then
  112. v:remove()
  113. end
  114. end
  115. end
  116.  
  117.  
  118. function eff(tab,part)
  119. local heh = math.random(1,#tab)
  120. local p = Instance.new("Part")
  121. prop(p,workspace,false,0.4,0,1,1,1,ruincs[heh],true,"Symmetric")
  122. p.CFrame = part.CFrame * CFrame.new(0,-1,0)
  123. local ms = math.random(60,150)/100
  124. local ms2 = math.random(60,150)/100
  125. local ms3 = math.random(60,150)/100
  126. local mef = Instance.new("SpecialMesh")
  127. mesh(mef,p,ms,ms2,ms3,"Sphere")
  128. coroutine.resume(coroutine.create(function()
  129. for kk=0.4,1,0.05 do
  130. wait()
  131. p.Transparency = kk
  132. mef.Scale = mef.Scale + Vector3.new(ms/10,ms2/10,ms3/10)
  133. end
  134. p:remove()
  135. end))
  136. end
  137.  
  138. function ruin(r,l,n,bar,player)
  139. for i=1, bar do
  140. bars = bars - 1
  141. barsnumber = bars
  142. barmeter.Size = UDim2.new(barsnumber/5,0,1,0)
  143. for o=1, 10 do
  144. r.C0 = r.C0 * CFrame.fromEulerAnglesXYZ(0.14,-0.07,-0.1)
  145. l.C0 = l.C0 * CFrame.fromEulerAnglesXYZ(0.1,0,0.06)
  146. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(0,0,0)
  147. eff(ruincs,rarm)
  148. wait()
  149. end
  150. wait(0.06)
  151. for i=1, 7 do
  152. r.C0 = r.C0 * CFrame.fromEulerAnglesXYZ(0.3,0,0)
  153. l.C0 = l.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.1)
  154. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(0,0,0)
  155. eff(ruincs,rarm)
  156. wait()
  157. end
  158. wait(0.04)
  159. for i=1, 3 do
  160. r.C0 = r.C0 * CFrame.fromEulerAnglesXYZ(0,0.38,0.28)
  161. l.C0 = l.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,-0.1)
  162. neck.C0 = neck.C0 * CFrame.fromEulerAnglesXYZ(0,0,0)
  163. wait()
  164. end
  165. r.C0 = CFrame.new(0,0,0)
  166. l.C0 = CFrame.new(0,0,0)
  167. neck.C0 = neckorg
  168. end
  169. end
  170.  
  171. deb = true
  172.  
  173. bin.Selected:connect(function(mouse)
  174. rw.Part1 = rarm
  175. lw.Part1 = larm
  176. makegui(me)
  177. mouse.Button1Down:connect(function()
  178. if deb then
  179. deb = false
  180. increase = false
  181. ruin(rw,lw,neck,bars)
  182. increase = true
  183. deb = true
  184. end
  185. end)
  186. end)
  187.  
  188. bin.Deselected:connect(function()
  189. rw.Part1 = nil
  190. lw.Part1 = nil
  191. removegui(me)
  192. end)
  193.  
  194. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement