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