Advertisement
marioisdabomb

aaaaaaaaaaa

Dec 4th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. Player = owner
  87. Character = Player.Character
  88. PlayerGui = Player.PlayerGui
  89. Backpack = Player.Backpack
  90. Torso = Character.Torso
  91. Head = Character.Head
  92. Humanoid = Character.Humanoid
  93. LeftArm = Character["Left Arm"]
  94. LeftLeg = Character["Left Leg"]
  95. RightArm = Character["Right Arm"]
  96. RightLeg = Character["Right Leg"]
  97. LS = Torso["Left Shoulder"]
  98. LH = Torso["Left Hip"]
  99. RS = Torso["Right Shoulder"]
  100. RH = Torso["Right Hip"]
  101. Neck = Torso.Neck
  102. it=Instance.new
  103. vt=Vector3.new
  104. cf=CFrame.new
  105. euler=CFrame.fromEulerAnglesXYZ
  106. angles=CFrame.Angles
  107. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  108. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  109. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  110. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  111. attack = false
  112. attacktype = 1
  113. damage = 5
  114. oridamage = 50
  115. attackdebounce = false
  116. MMouse=nil
  117. combo=0
  118. Charge=0
  119. con1=nil
  120. --player
  121. player = nil
  122. --save shoulders
  123. RSH, LSH = nil, nil
  124. --welds
  125. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  126. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  127. if Character:findFirstChild("Rocket Hammer",true) ~= nil then
  128. Character:findFirstChild("Rocket Hammer",true).Parent = nil
  129. end
  130. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  131. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  132. end
  133. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  134. local fp = it("Part")
  135. fp.formFactor = formfactor
  136. fp.Parent = parent
  137. fp.Reflectance = reflectance
  138. fp.Transparency = transparency
  139. fp.CanCollide = false
  140. fp.Locked=true
  141. fp.BrickColor = brickcolor
  142. fp.Name = name
  143. fp.Size = size
  144. fp.Position = Torso.Position
  145. fp.BottomSurface="Smooth"
  146. fp.TopSurface="Smooth"
  147. fp:BreakJoints()
  148. return fp
  149. end
  150. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  151. local mesh = it(Mesh)
  152. mesh.Parent = part
  153. if Mesh=="SpecialMesh" then
  154. mesh.MeshType = meshtype
  155. mesh.MeshId = meshid
  156. end
  157. mesh.Offset=offset
  158. mesh.Scale=scale
  159. return mesh
  160. end
  161. function weld(parent,part0,part1,c0)
  162. local weld = it("Weld")
  163. weld.Parent = parent
  164. weld.Part0 = part0
  165. weld.Part1 = part1
  166. weld.C0 = c0
  167. return weld
  168. end
  169. local fengui = it("GuiMain")
  170. fengui.Parent = Player.PlayerGui
  171. fengui.Name = "WeaponGUI"
  172. local fenframe = it("Frame")
  173. fenframe.Parent = fengui
  174. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  175. fenframe.BackgroundTransparency = 1
  176. fenframe.BorderColor3 = Color3.new(17,17,17)
  177. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  178. fenframe.Position=UDim2.new(0,1300,0,300)
  179. local fentext = it("TextLabel")
  180. fentext.Parent = fenframe
  181. fentext.Text = " "
  182. fentext.BackgroundTransparency = 0
  183. fentext.BackgroundColor3 = Color3.new(0,0,0)
  184. fentext.SizeConstraint = "RelativeXY"
  185. fentext.TextXAlignment = "Center"
  186. fentext.TextYAlignment = "Center"
  187. fentext.Position = UDim2.new(0,0,0,0)
  188. fentext.Size = UDim2.new(0.710000306,0,2.79999995,0)
  189. local fentext2 = it("TextLabel")
  190. fentext2.Parent = fenframe
  191. fentext2.Text = " "
  192. fentext2.BackgroundTransparency = 0
  193. fentext2.BackgroundColor3 = Color3.new(1,0,0)
  194. fentext2.SizeConstraint = "RelativeXY"
  195. fentext2.TextXAlignment = "Center"
  196. fentext2.TextYAlignment = "Center"
  197. fentext2.Position = UDim2.new(0,0,2.8,0)
  198. fentext2.Size = UDim2.new(0.710000306,0,-2.8*Charge,0)
  199. local modelzorz = Instance.new("Model")
  200. modelzorz.Parent = Character
  201. modelzorz.Name = "Rocket Hammer"
  202. local prt1=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part1",vt(0.5,0.5,0.5))
  203. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part2",vt(0.5,0.5,0.5))
  204. local prt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt(0.5,0.5,0.5))
  205. local prt4=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part4",vt(0.5,0.5,0.5))
  206. local prt5=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part5",vt(0.5,0.5,0.5))
  207. local prt6=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part6",vt(0.5,0.5,0.5))
  208. local prt7=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part7",vt(0.5,0.5,0.5))
  209. local prt8=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(0.5,0.5,0.5))
  210. local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(0.5,0.5,0.5))
  211. local prt10=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part10",vt(0.5,0.5,0.5))
  212. local prt11=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part11",vt(0.5,0.5,0.5))
  213. local prt12=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt(0.5,0.5,0.5))
  214. local prt13=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part13",vt(0.5,0.5,0.5))
  215. local prt14=part(3,modelzorz,0,0,BrickColor.new("Dark red"),"Part14",vt(0.5,0.5,0.5))
  216. local prt15=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part15",vt(0.5,0.5,0.5))
  217. local prt16=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part16",vt(0.5,0.5,0.5))
  218. local prt17=part(3,modelzorz,0,0,BrickColor.new("Dark red"),"Part17",vt(0.5,0.5,0.5))
  219. local prt17b=part(3,modelzorz,0,1,BrickColor.new("Bright yellow"),"Part17b",vt(0.5,0.5,0.5))
  220. local prt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(0.5,0.5,0.5))
  221. local prt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(0.5,0.5,0.5))
  222. local prt20=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part20",vt(0.5,0.5,0.5))
  223. local prt21=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part21",vt(0.5,0.5,0.5))
  224. local prt22=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part22",vt(0.5,0.5,0.5))
  225. local prt23=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part23",vt(0.5,0.5,0.5))
  226. local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(1,2,1))
  227. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.7,3,0.7))
  228. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1,1.5,1.3))
  229. local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(1.5,1.5,1.5))
  230. local msh5=mesh("CylinderMesh",prt5,"","",vt(0,0,0),vt(1,1.6,1))
  231. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.3,3,0.3))
  232. local msh7=mesh("CylinderMesh",prt7,"","",vt(0,0,0),vt(1.5,2.5,1.5))
  233. local msh8=mesh("CylinderMesh",prt8,"","",vt(0,0,0),vt(1.6,1.5,1.6))
  234. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(1.2,2.51,1.2))
  235. local msh10=mesh("CylinderMesh",prt10,"","",vt(0,0,0),vt(0.5,2,0.5))
  236. local msh11=mesh("CylinderMesh",prt11,"","",vt(0,0,0),vt(0.5,2,0.5))
  237. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(1,5,1))
  238. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,4,2))
  239. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(2,2,2.1))
  240. local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(2.5,1,2.5))
  241. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(2.5,1,3))
  242. local msh17=mesh("CylinderMesh",prt17,"","",vt(0,0,0),vt(3,3,3))
  243. local msh17b=mesh("CylinderMesh",prt17b,"","",vt(0,0,0),vt(3.001,3,3.01))
  244. local msh18=mesh("CylinderMesh",prt18,"","",vt(0,0,0),vt(3.2,1.5,3.2))
  245. local msh19=mesh("CylinderMesh",prt19,"","",vt(0,0,0),vt(3.2,1,3.2))
  246. local msh20=mesh("CylinderMesh",prt20,"","",vt(0,0,0),vt(3.2,1,3.2))
  247. local msh21=mesh("CylinderMesh",prt21,"","",vt(0,0,0),vt(2.5,1,2.5))
  248. local msh22=mesh("CylinderMesh",prt22,"","",vt(0,0,0),vt(0.5,2,0.5))
  249. local msh23=mesh("CylinderMesh",prt23,"","",vt(0,0,0),vt(0.5,2.1,0.5))
  250. local wld1=weld(prt1,prt1,Torso,euler(3.14,-1.57,0)*cf(0,-4,-0.5))
  251. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  252. local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
  253. local wld4=weld(prt4,prt4,prt3,euler(0,0,1.57)*cf(0,0.5,-0.1))
  254. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,0,0))
  255. local wld6=weld(prt6,prt6,prt3,euler(1.57,0,0)*cf(0,0,0))
  256. local wld7=weld(prt7,prt7,prt6,euler(1.57,0,0)*cf(0,-0.8,0))
  257. local wld8=weld(prt8,prt8,prt7,euler(0,0,0)*cf(0,0,0))
  258. local wld9=weld(prt9,prt9,prt7,euler(0,0,0)*cf(0,0,0))
  259. local wld10=weld(prt10,prt10,prt7,euler(-0.2,0,0)*cf(0,1,0))
  260. local wld11=weld(prt11,prt11,prt1,euler(1.57+0.3,0,0)*cf(0,-0.5,0.3))
  261. local wld12=weld(prt12,prt12,prt1,euler(0,0,0)*cf(0,-2,0))
  262. local wld13=weld(prt13,prt13,prt12,euler(0,0,0)*cf(0,-1.75,0))
  263. local wld14=weld(prt14,prt14,prt13,euler(0,0,0)*cf(0,-1,0))
  264. local wld15=weld(prt15,prt15,prt14,euler(0,0,0)*cf(0,-0.6,0.4))
  265. local wld16=weld(prt16,prt16,prt14,euler(1.57,0,0)*cf(0,0.4,0.77))
  266. local wld17=weld(prt17,prt17,prt14,euler(1.57,0,0)*cf(0,0,-1.4))
  267. local wld17b=weld(prt17b,prt17b,prt17,euler(0,0,0)*cf(0,0,0))
  268. local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,0,0))
  269. local wld19=weld(prt19,prt19,prt17,euler(0,0,0)*cf(0,0.8,0))
  270. local wld20=weld(prt20,prt20,prt17,euler(0,0,0)*cf(0,-0.8,0))
  271. local wld21=weld(prt21,prt21,prt19,euler(0,0,0)*cf(0,0.01,0))
  272. local wld22=weld(prt22,prt22,prt13,euler(0.5,0,0)*cf(0,1.2,-0.6))
  273. local wld23=weld(prt23,prt23,prt22,euler(-1.2,0,0)*cf(0,0.6,0.5))
  274. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox",vt(3,3,3))
  275. local hitboxwld=weld(hitbox,hitbox,prt14,euler(0,0,0)*cf(0,0,0))
  276. local BoosterFire = Instance.new("Fire")
  277. BoosterFire.Parent = prt19
  278. BoosterFire.Heat = -25
  279. BoosterFire.Size = 1
  280. function MakeRocketPart(x,y,z)
  281. local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"RocketPart",vt(0.5,0.5,0.5))
  282. local prta=part(3,modelzorz,0,0,BrickColor.new("Dark red"),"RocketPart",vt(0.5,0.5,0.5))
  283. local prtb=part(3,modelzorz,0,0,BrickColor.new("Bright yellow"),"RocketPart",vt(0.5,0.5,0.5))
  284. local prtc=part(3,modelzorz,0,0,BrickColor.new("Really black"),"RocketPart",vt(0.5,0.5,0.5))
  285. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(1.5,2.5,1.5))
  286. local msha=mesh("CylinderMesh",prta,"","",vt(0,0,0),vt(1.6,1.5,1.6))
  287. local mshb=mesh("SpecialMesh",prtb,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(0.55,0.3,0.55))
  288. local mshc=mesh("CylinderMesh",prtc,"","",vt(0,0,0),vt(1.3,2.5,1.3))
  289. local wld=weld(prt,prt,prt14,euler(1.57,0,0)*cf(x,y,z))
  290. local wlda=weld(prta,prta,prt,euler(0,0,0)*cf(0,0,0))
  291. local wldb=weld(prtb,prtb,prt,euler(0,0,0)*cf(0,-0.8,0))
  292. local wldc=weld(prtc,prtc,prt,euler(0,0,0)*cf(0,0.01,0))
  293. local BoosterFire = Instance.new("Fire")
  294. BoosterFire.Parent = prt
  295. BoosterFire.Heat = -25
  296. BoosterFire.Size = 0.2
  297. end
  298. MakeRocketPart(0.8,0,0.5)
  299. MakeRocketPart(-0.8,0,0.5)
  300. MakeRocketPart(0,-0.8,0.5)
  301. if (script.Parent.className ~= "HopperBin") then
  302. Tool = Instance.new("HopperBin")
  303. Tool.Parent = Backpack
  304. Tool.Name = "Rocket Hammer"
  305. script.Parent = Tool
  306. end
  307. Bin = script.Parent
  308. local bg = it("BodyGyro")
  309. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  310. bg.P = 20e+003
  311. bg.Parent = nil
  312. so = function(id,par,vol,pit)
  313. coroutine.resume(coroutine.create(function()
  314. local sou = Instance.new("Sound",par or workspace)
  315. sou.Volume=vol
  316. sou.Pitch=pit or 1
  317. sou.SoundId=id
  318. wait()
  319. sou:play()
  320. wait(6)
  321. sou:Remove()
  322. end))
  323. end
  324. function unequipweld()
  325. wld1.Part1=Torso
  326. wld1.C0=euler(3.14,-1.57,0)*cf(0,-4,-0.5)
  327. end
  328. function equipweld()
  329. wld1.Part1=RightArm
  330. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  331. end
  332. function hideanim()
  333. equipped=false
  334. wait(0.1)
  335. bg.Parent=nil
  336. unequipweld()
  337. end
  338. function equipanim()
  339. equipped=true
  340. wait(0.1)
  341. equipweld()
  342. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  343. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,-0.2)
  344. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  345. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  346. end
  347. Damagefunc1=function(hit,Damage,Knockback)
  348.         if hit.Parent==nil then
  349.                 return
  350.         end
  351.         CPlayer=Bin
  352.         h=hit.Parent:FindFirstChild("Humanoid")
  353.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  354.         if attackdebounce == false then
  355.         attackdebounce = true
  356.         coroutine.resume(coroutine.create(function()
  357.         wait(0.2)
  358.         attackdebounce = false
  359.         end))
  360.         Damage=Damage
  361. --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  362.                         return
  363.                 end]]
  364. --                        hs(hit,1.2)
  365.                         c=Instance.new("ObjectValue")
  366.                         c.Name="creator"
  367.                         c.Value=game.Players.LocalPlayer
  368.                         c.Parent=h
  369.                         game:GetService("Debris"):AddItem(c,.5)
  370.                 Damage=Damage+math.random(0,10)
  371.                 so("http://www.roblox.com/asset/?id=2697431",hit,5,0.4)
  372.                 MagicCircle(BrickColor.new("Bright red"),hit.CFrame,1,1,1,0,0,0,2,2,2)
  373. --                h:TakeDamage(Damage)
  374. --                showDamage(hit.Parent,Damage,.5)
  375.                 blocked=false
  376.                 block=hit.Parent:findFirstChild("Block")
  377.                 if block~=nil then
  378.                 print("herp")
  379.                 if block.Value>0 then
  380.                 blocked=true
  381.                 block.Value=block.Value-3
  382.                 print(block.Value)
  383.                 end
  384.                 end
  385.                 if blocked==false then
  386. --                h:TakeDamage(Damage)
  387.                 h.Health=h.Health-Damage
  388.                 showDamage(hit.Parent,Damage,.5)
  389.                 else
  390.                 h:TakeDamage(1)
  391.                 showDamage(hit.Parent,1,.5)
  392.                 end
  393.                 vp=Instance.new("BodyVelocity")
  394.                 vp.P=500
  395.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  396. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  397.                 vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  398.                 if Knockback>0 then
  399.                         vp.Parent=hit.Parent.Torso
  400.                 end
  401.                 game:GetService("Debris"):AddItem(vp,.25)
  402.                                 c=Instance.new("ObjectValue")
  403.                         c.Name="creator"
  404.                         c.Value=Player
  405.                         c.Parent=h
  406.                         game:GetService("Debris"):AddItem(c,.5)
  407.                 CRIT=false
  408.                 hitDeb=true
  409.                 AttackPos=6
  410.         end
  411.         end
  412. end
  413. Damagefunc2=function(hit,Damage,Knockback)
  414.         if attackdebounce == false then
  415.         attackdebounce = true
  416.         coroutine.resume(coroutine.create(function()
  417.         wait(0.1)
  418.         attackdebounce = false
  419.         end))
  420.         if hit.Parent==nil then
  421.                 return
  422.         end
  423.         CPlayer=Bin
  424.         blocked=false
  425.         h=hit.Parent:FindFirstChild("Humanoid")
  426.         if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  427.                 Damage=Damage
  428.                         c=it("ObjectValue")
  429.                         c.Name="creator"
  430.                         c.Value=game.Players.LocalPlayer
  431.                         c.Parent=h
  432.                         game:GetService("Debris"):AddItem(c,.5)
  433. --                        print(c.Value)
  434. --[[                if math.random(0,99)+math.random()<=7.8 then
  435.                         CRIT=true
  436.                         Damage=Damage*2
  437.                         s=it("Sound")
  438.                         s.SoundId="http://www.roblox.com/asset/?id=2801263"
  439.                         s.Volume=1
  440.                         s.Pitch=2
  441.                         s.Parent=hit
  442.                         s.PlayOnRemove=true
  443.                         s.Parent=nil
  444.        
  445.                 end]]
  446.                 Damage=Damage+math.random(0,10)
  447. --                Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  448.                 blocked=false
  449.                 block=hit.Parent:findFirstChild("Block")
  450.                 if block~=nil then
  451.                 print("herp")
  452.                 if block.Value>0 then
  453.                 blocked=true
  454.                 block.Value=block.Value-10
  455.                 print(block.Value)
  456.                 end
  457.                 end
  458.                 if blocked==false then
  459. --                h:TakeDamage(Damage)
  460.                 h.Health=h.Health-Damage
  461.                 showDamage(hit.Parent,Damage,.5)
  462.                 else
  463.                 h:TakeDamage(1)
  464.                 showDamage(hit.Parent,1,.5)
  465.                 end
  466. --if blocked==false then
  467. local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
  468. print(angle)
  469. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  470.                 rl=Instance.new("BodyAngularVelocity")
  471.                 rl.P=3000
  472.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  473.                 rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  474.                 rl.Parent=hit
  475. coroutine.resume(coroutine.create(function(vel)
  476. wait(1)
  477. vel:Remove()
  478. end),rl)
  479. --end
  480. local bodyVelocity=Instance.new("BodyVelocity")
  481. bodyVelocity.velocity=angle*40
  482. bodyVelocity.P=5000
  483. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  484. bodyVelocity.Parent=hit
  485. coroutine.resume(coroutine.create(function(Vel)
  486. wait(0.3)
  487. Vel:Remove()
  488. end),bodyVelocity)
  489.                 game:GetService("Debris"):AddItem(vp,1)
  490.                                 c=it("ObjectValue")
  491.                         c.Name="creator"
  492.                         c.Value=Player
  493.                         c.Parent=h
  494.                         game:GetService("Debris"):AddItem(c,.5)
  495.                 CRIT=false
  496.                 hitDeb=true
  497.                 AttackPos=6
  498.         end
  499.         end
  500. end
  501. showDamage=function(Char,Dealt,du)
  502.         m=Instance.new("Model")
  503.         m.Name=tostring(Dealt)
  504.         h=Instance.new("Humanoid")
  505.         h.Health=0
  506.         h.MaxHealth=0
  507.         h.Parent=m
  508.         c=Instance.new("Part")
  509.         c.Transparency=0
  510.         c.BrickColor=BrickColor:Red()
  511.         if CRIT==true then
  512.                 c.BrickColor=BrickColor.new("Really red")
  513.         end
  514.         c.Name="Head"
  515.         c.TopSurface=0
  516.         c.BottomSurface=0
  517.         c.formFactor="Plate"
  518.         c.Size=Vector3.new(1,.4,1)
  519.         ms=Instance.new("CylinderMesh")
  520.         ms.Scale=Vector3.new(.8,.8,.8)
  521.         if CRIT==true then
  522.                 ms.Scale=Vector3.new(1,1.25,1)
  523.         end
  524.         ms.Parent=c
  525.         c.Reflectance=0
  526.         Instance.new("BodyGyro").Parent=c
  527.         c.Parent=m
  528.         c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  529.         f=Instance.new("BodyPosition")
  530.         f.P=2000
  531.         f.D=100
  532.         f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  533.         f.position=c.Position+Vector3.new(0,3,0)
  534.         f.Parent=c
  535.         game:GetService("Debris"):AddItem(m,.5+du)
  536.         c.CanCollide=false
  537.         m.Parent=workspace
  538.         c.CanCollide=false
  539. end
  540. function MagicBlock(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  541. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  542. prt.Anchored=true
  543. prt.CFrame=cframe*cf(x2,y2,z2)
  544. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  545. coroutine.resume(coroutine.create(function()
  546. for i=0,1,0.1 do
  547. wait()
  548. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  549. prt.Transparency=i
  550. msh.Scale=msh.Scale+vt(0.2,0.2,0.2)
  551. end
  552. prt.Parent=nil
  553. end))
  554. end
  555. function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  556. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  557. prt.Anchored=true
  558. prt.CFrame=cframe*cf(x2,y2,z2)
  559. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  560. coroutine.resume(coroutine.create(function()
  561. for i=0,1,0.1 do
  562. wait()
  563. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  564. prt.Transparency=i
  565. msh.Scale=msh.Scale+vt(x3,y3,z3)
  566. end
  567. prt.Parent=nil
  568. end))
  569. end
  570. function SwirlEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  571. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  572. prt.Anchored=true
  573. prt.CFrame=cframe*cf(x2,y2,z2)*euler(1.57,0,0)
  574. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  575. coroutine.resume(coroutine.create(function()
  576. for i=0,1,0.07 do
  577. wait()
  578. prt.CFrame=prt.CFrame*cf(0,0.5,0)*euler(0,0.5,0)
  579. prt.Transparency=i
  580. msh.Scale=msh.Scale+vt(0.4,1,0.4)
  581. end
  582. prt.Parent=nil
  583. end))
  584. end
  585. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  586. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  587. prt.Anchored=true
  588. prt.CFrame=cframe*cf(x2,y2,z2)
  589. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  590. coroutine.resume(coroutine.create(function()
  591. for i=0,1,0.1 do
  592. wait()
  593. prt.Transparency=i
  594. msh.Scale=msh.Scale+vt(0.05,0.05,0.05)
  595. end
  596. prt.Parent=nil
  597. end))
  598. end
  599. local function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , Ignore Descendants
  600. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  601. end
  602. function oneslash()
  603. attack=true
  604. combo=1
  605. for i=0,1,0.1 do
  606. wait()
  607. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(1+0.57*i,0,0)
  608. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6-0.97*i,-0.2+1.2*i)
  609. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2-1.37*i)
  610. LW.C1=cf(0, 0.5, 0) * euler(0.5*i,0,0)
  611. end
  612. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,30,40) end)
  613. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.6)
  614. for i=0,1,0.2 do
  615. wait()
  616. for i=1,3 do
  617. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  618. end
  619. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,0)
  620. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(1.57,0,0)
  621. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1-2.5*i)
  622. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0,0,-1.57)
  623. LW.C1=cf(0, 0.5, 0) * euler(0.5-2.5*i,0,0)
  624. end
  625. con1:disconnect()
  626. for i=0,1,0.1 do
  627. wait()
  628. wld1.C0=euler(2.07,0,0)*cf(0,1,0)
  629. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  630. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,-1.5-0.2*i)
  631. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  632. LW.C1=cf(0, 0.5, 0) * euler(0.5-2.5-0.2*i,0,0)
  633. end
  634. attack=false
  635. end
  636. function twoslash()
  637. attack=true
  638. combo=2
  639. for i=0,1,0.1 do
  640. wait()
  641. eul=1*i
  642. Torso.Neck.C0=necko*euler(0,0,-1*i)
  643. wld1.C0=euler(2.07-0.5*i,0,0)*cf(0,1,0)
  644. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  645. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,-1.7+2*i)
  646. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  647. LW.C1=cf(0, 0.5, 0) * euler(0.5-2.7,0,0)
  648. end
  649. con1=Torso.Touched:connect(function(hit) Damagefunc1(hit,10,10) end)
  650. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.4)
  651. local vel2 = Instance.new("BodyVelocity")
  652. vel2.Parent = Torso
  653. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  654. vel2.velocity = Head.CFrame.lookVector*70
  655. for i=0,1,0.1 do
  656. wait(0)
  657. MagicBlock(BrickColor.new("Bright stone grey"),Torso.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  658. end
  659. con1:disconnect()
  660. vel2.Parent=nil
  661. attack=false
  662. end
  663. function threeslash()
  664. attack=true
  665. combo=3
  666. local vel2 = Instance.new("BodyVelocity")
  667. vel2.Parent = Torso
  668. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  669. vel2.velocity = Head.CFrame.lookVector*20
  670. for i=0,1,0.1 do
  671. wait()
  672. eul=1-6.32*i
  673. end
  674. vel2.Parent=nil
  675. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,30,60) end)
  676. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.7)
  677. for i=0,1,0.15 do
  678. wait()
  679. for i=1,3 do
  680. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  681. end
  682. eul=1-2*i
  683. Torso.Neck.C0=necko*euler(0,0,-1+2*i)
  684. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,0)
  685. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  686. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,0.3-2*i)
  687. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  688. LW.C1=cf(0, 0.5, 0) * euler(-2.2,0,0)
  689. end
  690. for i=0,1,0.1 do
  691. wait()
  692. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,0)
  693. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57,0.3-2-0.1*i)
  694. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(0,0,-1.57)
  695. LW.C1=cf(0, 0.5, 0) * euler(-2.2,0,0)
  696. end
  697. con1:disconnect()
  698. attack=false
  699. end
  700. function GrandSlam()
  701. attack=true
  702. Humanoid.WalkSpeed=0
  703. for i=0,1,0.1 do
  704. wait(0)
  705. wld1.C0=euler(1.57+0.5*i,0,0)*cf(0,1,0)
  706. RW.C0=cf(1.5, 0.5, 0) * euler(1+2*i,0,0)
  707. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+0.2*i)
  708. LW.C0=cf(-1.5, 0.5, 0) * euler(0.3*i,0,-0.2)
  709. end
  710. coroutine.resume(coroutine.create(function(v)
  711. wait()
  712. while attack==true do
  713. wait(0)
  714. bg.Parent = Torso
  715. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  716. bg.cframe = cf(Torso.Position,pos4) * euler(0,eul,0) * cf(0,0,0)
  717. end
  718. eul=0
  719. bg.Parent=nil
  720. end))
  721. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.5)
  722. for i=0,1,0.1 do
  723. wait(0)
  724. for i=1,3 do
  725. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  726. end
  727. eul=1*i
  728. Torso.Neck.C0=necko*euler(0,0,-1*i)
  729. RW.C0=cf(1.5, 0.5, 0) * euler(3.2-1.63*i,0,1*i)
  730. RW.C1=cf(0, 0.5, 0) * euler(1.2*i,0,0)
  731. LW.C0=cf(-1.5, 0.5, 0) * euler(0.4-0.9*i,0,-0.2)
  732. end
  733. Charge=Charge+0.2
  734. local c = game.Workspace:GetChildren();
  735. for i = 1, #c do
  736. local hum = c[i]:findFirstChild("Humanoid")
  737. if hum ~= nil and hum.Health ~= 0 then
  738. local head = c[i]:findFirstChild("Head");
  739. if head ~= nil then
  740. local targ = head.Position - hitbox.Position;
  741. local mag = targ.magnitude;
  742. if mag <= 20 and c[i].Name ~= Player.Name then
  743. attackdebounce=false
  744. Damagefunc2(head,40,80)
  745. end
  746. end
  747. end
  748. end
  749. so("http://www.roblox.com/asset/?id=2697431",hitbox,5,0.2)
  750. MagicCircle(BrickColor.new("Bright red"),hitbox.CFrame,2,2,2,0,0,0,6,6,6)
  751. SwirlEffect(BrickColor.new("Bright red"),hitbox.CFrame,10,10,10,0,0,0)
  752. for i=1,8 do
  753. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,2,2,2,math.random(-9,9),math.random(-9,9),math.random(-9,9))
  754. end
  755. wait(0.2)
  756. for i=1,8 do
  757. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,2,2,2,math.random(-20,20),math.random(-20,20),math.random(-20,20))
  758. end
  759. attack=false
  760. wait(0)
  761. attack=true
  762. wait(0.3)
  763. for i=0,1,0.1 do
  764. wait(0)
  765. wld1.C0=euler(1.57+0.5-0.5*i,0,0)*cf(0,1,0)
  766. RW.C0=cf(1.5, 0.5, 0) * euler(1.57,0,1)
  767. RW.C1=cf(0, 0.5, 0) * euler(1.2-0.1*i,0,0)
  768. end
  769. for i=0,1,0.1 do
  770. wait(0)
  771. Torso.Neck.C0=necko*euler(0,0,-1+1*i)
  772. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-0.57*i,0,1-1*i)
  773. RW.C1=cf(0, 0.5, 0) * euler(1.1-1.1*i,-0.6*i,-0.2*i)
  774. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+0.5*i,0,-0.2)
  775. end
  776. Humanoid.WalkSpeed=16
  777. attack=false
  778. end
  779. function HammerCharge()
  780. attack=true
  781. for i=0,1,0.1 do
  782. wait()
  783. RW.C0=cf(1.5, 0.5, 0) * euler(1+0.57*i,0,0)
  784. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6-0.97*i,-0.2+0.2*i)
  785. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57*i,0,-0.2+0.2*i)
  786. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  787. end
  788. con1=hitbox.Touched:connect(function(hit) Damagefunc1(hit,15,40) end)
  789. local vel2 = Instance.new("BodyVelocity")
  790. vel2.Parent = Torso
  791. vel2.maxForce = vt(4e+005,4e+005,4e+005)*1
  792. vel2.velocity = Head.CFrame.lookVector*30
  793. repeat
  794. wait(0)
  795. vel2.velocity = Head.CFrame.lookVector*30
  796. Charge=Charge+0.005
  797. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  798. until dashing==false
  799. con1:disconnect()
  800. vel2.Parent=nil
  801. for i=0,1,0.1 do
  802. wait()
  803. RW.C0=cf(1.5, 0.5, 0) * euler(1.57-0.57*i,0,0)
  804. RW.C1=cf(0, 0.5, 0) * euler(0,-1.57+0.97*i,-0.2*i)
  805. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-1.57*i,0,-0.2*i)
  806. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  807. end
  808. attack=false
  809. end
  810. function SuperbSlam()
  811. attack=true
  812. for i=0,1,0.1 do
  813. wait()
  814. RW.C0=cf(1.5, 0.5, 0) * euler(1-1.1*i,0,0)
  815. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+0.2*i)
  816. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  817. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  818. end
  819. wait(0.2)
  820. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.7)
  821. for i=0,1,0.2 do
  822. wait()
  823. RW.C0=cf(1.5, 0.5, 0) * euler(-0.1+2*i,0,0)
  824. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  825. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  826. end
  827. wld1.Part1=nil
  828. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(0.5,0.5,0.5))
  829. basepart.Anchored=true
  830. basepart.CFrame=Torso.CFrame*cf(0,35,-10)
  831. bodypos=Instance.new("BodyPosition")
  832. bodypos.Parent=prt12
  833. bodypos.position = basepart.Position
  834. bodypos.maxForce = Vector3.new(4e+080, 4e+080, 4e+080)
  835. local bg2 = it("BodyGyro")
  836. bg2.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  837. bg2.P = 20e+003
  838. bg2.Parent=prt12
  839. bg2.cframe = Head.CFrame
  840. coroutine.resume(coroutine.create(function(gyro)
  841. while gyro.Parent~=nil do
  842. wait()
  843. for i=0,1,0.1 do
  844. wait()
  845. gyro.cframe=gyro.cframe*euler(0.5,0,0)
  846. end
  847. end
  848. end),bg2)
  849. wait(1)
  850. bodypos2=Instance.new("BodyPosition")
  851. bodypos2.Parent=RightArm
  852. bodypos2.position = basepart.Position
  853. bodypos2.maxForce = Vector3.new(4e+080, 4e+080, 4e+080)
  854. wait(0.5)
  855. bodypos2.Parent=nil
  856. basepart.Parent=nil
  857. bg2.Parent=nil
  858. wld1.Part1=RightArm
  859. bodypos.Parent=nil
  860. boom=false
  861. coroutine.resume(coroutine.create(function()
  862. while boom==false do
  863. wait()
  864. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  865. end
  866. end))
  867. for i=0,1,0.1 do
  868. wait()
  869. RW.C0=cf(1.5, 0.5, 0) * euler(-0.1+2-1.9*i,0,0)
  870. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4*i,0,-0.2)
  871. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  872. end
  873. coroutine.resume(coroutine.create(function()
  874. floor=false
  875. repeat
  876. wait(0.05)
  877. hit,pos = rayCast(Torso.Position, (CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,6,0))).lookVector, 6, Character)
  878. if hit ~= nil then
  879. floor = true
  880. end
  881. until floor
  882. Charge=Charge+0.999
  883. so("http://www.roblox.com/asset/?id=2697431",hitbox,5,0.5)
  884. MagicCircle2(BrickColor.new("Bright red"),hitbox.CFrame*euler(1.57,0,0),300,4,300,0,-1.5,0)
  885. local c = game.Workspace:GetChildren();
  886. for i = 1, #c do
  887. local hum = c[i]:findFirstChild("Humanoid")
  888. if hum ~= nil and hum.Health ~= 0 then
  889. local head = c[i]:findFirstChild("Head");
  890. if head ~= nil then
  891. local targ = head.Position - hitbox.Position;
  892. local mag = targ.magnitude;
  893. if mag <= 70 and c[i].Name ~= Player.Name then
  894. attackdebounce=false
  895. Damagefunc2(head,1,80)
  896. end
  897. end
  898. end
  899. end
  900. wait(0.5)
  901. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(0.5,0.5,0.5))
  902. basepart.Anchored=true
  903. basepart.CFrame=Torso.CFrame*cf(0,0,-50)*euler(-1.57,0,0)
  904. local c = game.Workspace:GetChildren();
  905. for i = 1, #c do
  906. local hum = c[i]:findFirstChild("Humanoid")
  907. if hum ~= nil and hum.Health ~= 0 then
  908. local head = c[i]:findFirstChild("Head");
  909. if head ~= nil then
  910. local targ = head.Position - basepart.Position;
  911. local mag = targ.magnitude;
  912. if mag <= 40 and c[i].Name ~= Player.Name then
  913. attackdebounce=false
  914. Damagefunc2(head,60,80)
  915. end
  916. end
  917. end
  918. end
  919. so("http://www.roblox.com/asset/?id=2697431",basepart,5,0.2)
  920. MagicCircle(BrickColor.new("Bright red"),basepart.CFrame,5,5,5,0,0,0,7,7,7)
  921. SwirlEffect(BrickColor.new("Bright red"),basepart.CFrame,15,15,15,0,0,0)
  922. for i=1,8 do
  923. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-9,9),math.random(-9,9),math.random(-9,9))
  924. end
  925. wait(0.2)
  926. for i=1,8 do
  927. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-25,25),math.random(-25,25),math.random(-25,25))
  928. end
  929. basepart.Parent=nil
  930. boom=true
  931. wait(1)
  932. for i=0,1,0.1 do
  933. wait()
  934. RW.C0=cf(1.5, 0.5, 0) * euler(1*i,0,0)
  935. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6*i,-0.2*i)
  936. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4+0.4*i,0,-0.2)
  937. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  938. end
  939. attack=false
  940. end))
  941. end
  942. function HammerSmash()
  943. attack=true
  944. for i=0,1,0.1 do
  945. wait()
  946. wld1.C0=euler(1.57+0.2*i,0,-0.8*i)*cf(0,1,0)
  947. RW.C0=cf(1.5-0.5*i, 0.5+0.5*i, -0.5*i) * euler(1+1.5*i,0,-0.8*i)
  948. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+0.2*i)
  949. LW.C0=cf(-1.5+0.5*i, 0.5+0.5*i, -0.5*i) * euler(2.5*i,0,-0.2+1*i)
  950. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  951. end
  952. so("http://roblox.com/asset/?id=10209640",hitbox,5,0.5)
  953. bg.Parent=Torso
  954. bg.cframe=Torso.CFrame
  955. local bp = Instance.new("BodyPosition")
  956. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  957. bp.P = 10000
  958. local CF = Torso.CFrame
  959. bp.position = CF.p
  960. bp.Parent=Torso
  961. for i=0,1,0.2 do
  962. wait()
  963. for i=1,3 do
  964. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame,1,1,1,math.random(-2,2),math.random(-2,2),math.random(-2,2))
  965. end
  966. bp.position = CF.p - Vector3.new(0,2,0)
  967. Torso["Left Hip"].C0=LHC0*cf(-1*i,1.5*i,0)
  968. Torso["Right Hip"].C0=RHC0*cf(0,1.5*i,0)*euler(0,0,-0.5*i)
  969. wld1.C0=euler(1.57+0.2+0.3*i,0,-0.8)*cf(0,1,0)
  970. RW.C0=cf(1, 1-0.5*i, -0.5) * euler(2.5-2*i,0,-0.8)
  971. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  972. LW.C0=cf(-1, 1-0.5*i, -0.5) * euler(2.5-2*i,0,0.8)
  973. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  974. end
  975. Charge=Charge+0.4
  976. local basepart=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(0.5,0.5,0.5))
  977. basepart.Anchored=true
  978. basepart.CFrame=hitbox.CFrame
  979. local c = game.Workspace:GetChildren();
  980. for i = 1, #c do
  981. local hum = c[i]:findFirstChild("Humanoid")
  982. if hum ~= nil and hum.Health ~= 0 then
  983. local head = c[i]:findFirstChild("Head");
  984. if head ~= nil then
  985. local targ = head.Position - basepart.Position;
  986. local mag = targ.magnitude;
  987. if mag <= 20 and c[i].Name ~= Player.Name then
  988. attackdebounce=false
  989. Damagefunc2(head,40,80)
  990. end
  991. end
  992. end
  993. end
  994. so("http://www.roblox.com/asset/?id=2697431",basepart,5,0.2)
  995. MagicCircle(BrickColor.new("Bright red"),basepart.CFrame,5,5,5,0,0,0,7,7,7)
  996. SwirlEffect(BrickColor.new("Bright red"),basepart.CFrame,15,15,15,0,0,0)
  997. for i=1,8 do
  998. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-9,9),math.random(-9,9),math.random(-9,9))
  999. end
  1000. coroutine.resume(coroutine.create(function(MainPart)
  1001. numb=0
  1002. for i=1,10 do
  1003. wait(0.1)
  1004. numb=numb+9
  1005. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  1006. basepart2.Anchored=true
  1007. basepart2.CFrame=MainPart.CFrame*cf(numb,0,0)
  1008. local c = game.Workspace:GetChildren();
  1009. for i = 1, #c do
  1010. local hum = c[i]:findFirstChild("Humanoid")
  1011. if hum ~= nil and hum.Health ~= 0 then
  1012. local head = c[i]:findFirstChild("Head");
  1013. if head ~= nil then
  1014. local targ = head.Position - basepart2.Position;
  1015. local mag = targ.magnitude;
  1016. if mag <= 10 and c[i].Name ~= Player.Name then
  1017. attackdebounce=false
  1018. Damagefunc2(head,10,80)
  1019. end
  1020. end
  1021. end
  1022. end
  1023. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  1024. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  1025. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  1026. coroutine.resume(coroutine.create(function(Part)
  1027. wait(2)
  1028. Part.Parent=nil
  1029. end),basepart2)
  1030. end
  1031. MainPart.Parent=nil
  1032. end),basepart)
  1033. coroutine.resume(coroutine.create(function(MainPart)
  1034. numb2=0
  1035. for i=1,10 do
  1036. wait(0.1)
  1037. numb2=numb2+9
  1038. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  1039. basepart2.Anchored=true
  1040. basepart2.CFrame=MainPart.CFrame*cf(-numb2,0,0)
  1041. local c = game.Workspace:GetChildren();
  1042. for i = 1, #c do
  1043. local hum = c[i]:findFirstChild("Humanoid")
  1044. if hum ~= nil and hum.Health ~= 0 then
  1045. local head = c[i]:findFirstChild("Head");
  1046. if head ~= nil then
  1047. local targ = head.Position - basepart2.Position;
  1048. local mag = targ.magnitude;
  1049. if mag <= 10 and c[i].Name ~= Player.Name then
  1050. attackdebounce=false
  1051. Damagefunc2(head,10,80)
  1052. end
  1053. end
  1054. end
  1055. end
  1056. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  1057. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  1058. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  1059. coroutine.resume(coroutine.create(function(Part)
  1060. wait(2)
  1061. Part.Parent=nil
  1062. end),basepart2)
  1063. end
  1064. MainPart.Parent=nil
  1065. end),basepart)
  1066. coroutine.resume(coroutine.create(function(MainPart)
  1067. numb3=0
  1068. for i=1,10 do
  1069. wait(0.1)
  1070. numb3=numb3+9
  1071. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  1072. basepart2.Anchored=true
  1073. basepart2.CFrame=MainPart.CFrame*cf(0,numb3,0)
  1074. local c = game.Workspace:GetChildren();
  1075. for i = 1, #c do
  1076. local hum = c[i]:findFirstChild("Humanoid")
  1077. if hum ~= nil and hum.Health ~= 0 then
  1078. local head = c[i]:findFirstChild("Head");
  1079. if head ~= nil then
  1080. local targ = head.Position - basepart2.Position;
  1081. local mag = targ.magnitude;
  1082. if mag <= 10 and c[i].Name ~= Player.Name then
  1083. attackdebounce=false
  1084. Damagefunc2(head,10,80)
  1085. end
  1086. end
  1087. end
  1088. end
  1089. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  1090. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  1091. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  1092. coroutine.resume(coroutine.create(function(Part)
  1093. wait(2)
  1094. Part.Parent=nil
  1095. end),basepart2)
  1096. end
  1097. MainPart.Parent=nil
  1098. end),basepart)
  1099. coroutine.resume(coroutine.create(function(MainPart)
  1100. numb4=0
  1101. for i=1,10 do
  1102. wait(0.1)
  1103. numb4=numb4+9
  1104. local basepart2=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart2",vt(0.5,0.5,0.5))
  1105. basepart2.Anchored=true
  1106. basepart2.CFrame=MainPart.CFrame*cf(0,-numb4,0)
  1107. local c = game.Workspace:GetChildren();
  1108. for i = 1, #c do
  1109. local hum = c[i]:findFirstChild("Humanoid")
  1110. if hum ~= nil and hum.Health ~= 0 then
  1111. local head = c[i]:findFirstChild("Head");
  1112. if head ~= nil then
  1113. local targ = head.Position - basepart2.Position;
  1114. local mag = targ.magnitude;
  1115. if mag <= 10 and c[i].Name ~= Player.Name then
  1116. attackdebounce=false
  1117. Damagefunc2(head,10,80)
  1118. end
  1119. end
  1120. end
  1121. end
  1122. so("http://www.roblox.com/asset/?id=2697431",basepart2,5,0.3)
  1123. MagicCircle(BrickColor.new("Bright red"),basepart2.CFrame,1,1,1,0,0,0,5,5,5)
  1124. SwirlEffect(BrickColor.new("Bright red"),basepart2.CFrame,3,3,3,0,0,0)
  1125. coroutine.resume(coroutine.create(function(Part)
  1126. wait(2)
  1127. Part.Parent=nil
  1128. end),basepart2)
  1129. end
  1130. MainPart.Parent=nil
  1131. end),basepart)
  1132. wait(0.2)
  1133. for i=1,8 do
  1134. MagicBlock(BrickColor.new("Bright red"),basepart.CFrame,2,2,2,math.random(-25,25),math.random(-25,25),math.random(-25,25))
  1135. end
  1136. wait(1)
  1137. bp.Parent=nil
  1138. bg.Parent=nil
  1139. for i=0,1,0.1 do
  1140. wait()
  1141. Torso["Left Hip"].C0=LHC0*cf(-1+1*i,1.5-1.5*i,0)
  1142. Torso["Right Hip"].C0=RHC0*cf(0,1.5-1.5*i,0)*euler(0,0,-0.5+0.5*i)
  1143. wld1.C0=euler(1.57+0.5-0.5*i,0,-0.8+0.8*i)*cf(0,1,0)
  1144. RW.C0=cf(1+0.5*i, 0.5, -0.5+0.5*i) * euler(0.5+0.5*i,0,-0.8+0.8*i)
  1145. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6*i,-0.2*i)
  1146. LW.C0=cf(-1-0.5*i, 0.5, -0.5+0.5*i) * euler(0.5-0.5*i,0,0.8-1*i)
  1147. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1148. end
  1149. Torso["Left Hip"].C0=LHC0
  1150. Torso["Right Hip"].C0=RHC0
  1151. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1152. attack=false
  1153. end
  1154. function HammerSpin()
  1155. attack=true
  1156. for i=0,1,0.1 do
  1157. wait()
  1158. RW.C0=cf(1.5, 0.5, 0) * euler(1,1*i,0)
  1159. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6+0.6*i,-0.2+1.2*i)
  1160. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1161. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1162. end
  1163. attack=false
  1164. end
  1165. combo=0
  1166. function ob1d(mouse)
  1167. if attack == true then return end
  1168. attackdebounce=false
  1169. hold=true
  1170. coroutine.resume(coroutine.create(function(v)
  1171. wait()
  1172. while attack==true do
  1173. wait(0)
  1174. bg.Parent = Torso
  1175. local pos4 = vt(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  1176. bg.cframe = cf(Torso.Position,pos4) * euler(0,eul,0) * cf(0,0,0)
  1177. end
  1178. bg.Parent=nil
  1179. end))
  1180. if combo==0 then
  1181. oneslash()
  1182. elseif combo==1 then
  1183. twoslash()
  1184. elseif combo==2 then
  1185. threeslash()
  1186. end
  1187. coroutine.resume(coroutine.create(function()
  1188. wait(0.5)
  1189. if attack==false then
  1190. combo=0
  1191. eul=0
  1192. Torso.Neck.C0=necko
  1193. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1194. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  1195. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,-0.2)
  1196. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1197. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1198. end
  1199. end))
  1200. --[[wait(1)
  1201. eul=0
  1202. Torso.Neck.C0=necko
  1203. wld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1204. RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
  1205. RW.C1=cf(0, 0.5, 0) * euler(0,-0.6,-0.2)
  1206. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
  1207. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)]]
  1208. end
  1209. function ob1u(mouse)
  1210. hold = false
  1211. end
  1212. buttonhold = false
  1213. eul=0
  1214. function key(key)
  1215. if attack == true then return end
  1216. if key=="z" then
  1217. GrandSlam()
  1218. end
  1219. if key=="x" then
  1220. dashing=true
  1221. HammerCharge()
  1222. end
  1223. if key=="c" then
  1224. HammerSmash()
  1225. end
  1226. if key=="v" then
  1227. HammerSpin()
  1228. end
  1229. if key=="f" then
  1230. SuperbSlam()
  1231. end
  1232. end
  1233. function key2(key)
  1234. if key=="x" then
  1235. dashing=false
  1236. end
  1237. end
  1238. function s(mouse)
  1239. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1240. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1241. mouse.KeyDown:connect(key)
  1242. mouse.KeyUp:connect(key2)
  1243. unsheathed = true
  1244. player = Player
  1245. ch = Character
  1246. MMouse = mouse
  1247. RSH = ch.Torso["Right Shoulder"]
  1248. LSH = ch.Torso["Left Shoulder"]
  1249. --
  1250. RSH.Parent = nil
  1251. LSH.Parent = nil
  1252. --
  1253. RW.Part0 = ch.Torso
  1254. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1255. RW.C1 = CFrame.new(0, 0.5, 0)
  1256. RW.Part1 = ch["Right Arm"]
  1257. RW.Parent = ch.Torso
  1258. --_G.R = RW
  1259. --
  1260. LW.Part0 = ch.Torso
  1261. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1262. LW.C1 = CFrame.new(0, 0.5, 0)
  1263. LW.Part1 = ch["Left Arm"]
  1264. LW.Parent = ch.Torso
  1265. --_G.L = LW
  1266. --
  1267. equipanim()
  1268. end
  1269. function ds(mouse)
  1270. hideanim()
  1271. wait(0)
  1272. RW.Parent = nil
  1273. LW.Parent = nil
  1274. RSH.Parent = player.Character.Torso
  1275. LSH.Parent = player.Character.Torso
  1276. end
  1277. Bin.Selected:connect(s)
  1278. Bin.Deselected:connect(ds)
  1279. print("Fenrier's Rocket Hammer loaded.")
  1280. blownup=false
  1281. while blownup==false do
  1282. wait(0)
  1283. prt17b.Transparency=1-Charge
  1284. hitbox.Transparency=1
  1285. if Charge>0 and attack==false then
  1286. Charge=Charge-0.001
  1287. end
  1288. if Charge>=1 and blownup==false then
  1289. blownup=true
  1290. Charge=1
  1291. BOOM=Instance.new("Explosion")
  1292. BOOM.Parent=workspace
  1293. BOOM.Position=hitbox.Position
  1294. BOOM.BlastRadius=20
  1295. so("http://www.roblox.com/asset/?id=2101148",hit,5,0.4)
  1296. print("Good job taking care of your hammer. It blew up.")
  1297. end
  1298. fentext2.Size = UDim2.new(0.710000306,0,-2.8*Charge,0)
  1299. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement