View difference between Paste ID: yTEW7Jck and 50xEjcnY
SHOW: | | - or go back to the newest paste.
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
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
5
6
--MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: YOU DONT GOT TO CHANGE NOTHING! JUST MAKE THIS LOCAL AND RUN IT
7
8
9
Ancor = game:GetService("Players")
10
 
11
me = Ancor.LocalPlayer
12
char = me.Character
13
Modelname = "Warhammah"
14
Toolname = "Warhammar"
15
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
16
necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
17
selected = false
18
effectOn = false
19
Hurt = false
20
Leghurt = false
21
Deb = true
22
LegDeb = true
23
Able = true
24
Resting = false
25
RestingAnim = false
26
AbleG = true
27
Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
28
Prop.AS = Prop.AS/300
29
Cam = workspace.CurrentCamera
30
 
31
ToolIcon = "http://www.roblox.com/asset/?id=49192762"
32
MouseIc = "http://www.roblox.com/asset/?id=49192792"
33
MouseDo = "http://www.roblox.com/asset/?id=49192819"
34
 
35
Add = {
36
        Sphere = function(P)
37
                local m = Instance.new("SpecialMesh",P)
38
                m.MeshType = "Sphere"
39
                return m
40
        end,
41
        BF = function(P)
42
                local bf = Instance.new("BodyForce",P)
43
                bf.force = Vector3.new(0, P:GetMass()*187, 0)
44
                return bf
45
        end,
46
        BP = function(P)
47
                local bp = Instance.new("BodyPosition",P)
48
                bp.maxForce = Vector3.new(math.huge, 0, math.huge)
49
                bp.P = 14000
50
                return bp
51
        end,
52
        BG = function(P)
53
                local bg = Instance.new("BodyGyro",P)
54
                bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
55
                bg.P = 14000
56
                return bg
57
        end,
58
        Mesh = function(P, ID, x, y, z)
59
                local m = Instance.new("SpecialMesh")
60
                m.MeshId = ID
61
                m.Scale = Vector3.new(x, y, z)
62
                m.Parent = P
63
                return m
64
        end,
65
        Sound = function(P, ID, vol, pitch)
66
                local s = Instance.new("Sound")
67
                s.SoundId = ID
68
                s.Volume = vol
69
                s.Pitch = pitch
70
                s.Parent = P
71
                return s
72
        end
73
}
74
 
75
function find(tab, arg)
76
        local ah = nil
77
        for i,v in pairs(tab) do
78
                if v == arg then
79
                        ah = v
80
                end
81
        end
82
        return ah
83
end
84
 
85
function getAllParts(from)
86
        local t = {}
87
        function getParts(where)
88
                for i, v in pairs(where:children()) do
89
                        if v:IsA("BasePart") then
90
                                if v.Parent ~= char and v.Parent.Parent ~= char then
91
                                        table.insert(t, v)
92
                                end
93
                        end
94
                        getParts(v)
95
                end
96
        end
97
        getParts(workspace)
98
        return t
99
end
100
 
101
function RayCast(pos1, pos2, maxDist, forward)
102
        local list = getAllParts(workspace)
103
        local pos0 = pos1
104
        for dist = 1, maxDist, forward do
105
                pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
106
                for _, v in pairs(list) do
107
                        local pos3 = v.CFrame:pointToObjectSpace(pos0)
108
                        local s = v.Size
109
                        if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
110
                                return pos0, v
111
                        end
112
                end
113
        end
114
        return pos0, nil
115
end
116
 
117
function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
118
        local p = Instance.new("Part")
119
        p.formFactor = "Custom"
120
        p.Anchored = Anchor
121
        p.CanCollide = Collide
122
        p.Transparency = Tran
123
        p.Reflectance = Ref
124
        p.BrickColor = BrickColor.new(Color)
125
        for _, Surf in pairs(Surfaces) do
126
                p[Surf] = "Smooth"
127
        end
128
        p.Size = Vector3.new(X, Y, Z)
129
        if Break then
130
                p:BreakJoints()
131
        else p:MakeJoints() end
132
        p.Parent = Parent
133
        p.Locked = true
134
        return p
135
end
136
 
137
function Weld(p0, p1, x, y, z, a, b, c)
138
        local w = Instance.new("Weld")
139
        w.Parent = p0
140
        w.Part0 = p0
141
        w.Part1 = p1
142
        w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
143
        return w
144
end
145
 
146
function ComputePos(pos1, pos2)
147
        local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
148
        return CFrame.new(pos1, pos3)
149
end
150
 
151
function getHumanoid(c)
152
        local h = nil
153
        for i,v in pairs(c:children()) do
154
                if v:IsA("Humanoid") and c ~= char then
155
                        if v.Health > 0 then
156
                                h = v
157
                        end
158
                end
159
        end
160
        return h
161
end
162
 
163
for i,v in pairs(char:children()) do
164
        if v.Name == Modelname then
165
                v:remove()
166
        end
167
end
168
 
169
pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
170
 
171
Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
172
Sc.Name = "RaigMeter"
173
 
174
Fr = Instance.new("Frame",Sc)
175
Fr.Size = UDim2.new(0, 250, 0, 28)
176
Fr.Position = UDim2.new(0.5, -125, 0, 5)
177
Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
178
 
179
Met = Instance.new("Frame", Fr)
180
Met.Size = UDim2.new(1, -10, 1, -6)
181
Met.Position = UDim2.new(0, 5, 0, 3)
182
Met.BackgroundColor3 = Color3.new(0, 0, 0)
183
Met.BorderSizePixel = 0
184
 
185
Meter = Instance.new("ImageLabel", Met)
186
Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
187
Meter.Position = UDim2.new(0, 0, 0, 1)
188
Meter.Image = "http://www.roblox.com/asset/?id=48965808"
189
Meter.BorderSizePixel = 0
190
Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
191
 
192
Tx = Instance.new("TextLabel", Met)
193
Tx.Size = UDim2.new(0, 0, 1, 0)
194
Tx.Position = UDim2.new(0, 5, 0, 0)
195
Tx.Text = Prop.Rage.." / "..Prop.MaxRage
196
Tx.Font = "ArialBold"
197
Tx.FontSize = "Size18"
198
Tx.BackgroundTransparency = 1
199
Tx.TextColor3 = Color3.new(1, 0, 0)
200
Tx.TextXAlignment = "Left"
201
 
202
laast = Prop.Rage
203
coroutine.resume(coroutine.create(function()
204
        while true do
205
                wait()
206
                if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
207
                if laast ~= Prop.Rage then
208
                        Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
209
                        laast = Prop.Rage
210
                        Tx.Text = Prop.Rage.." / "..Prop.MaxRage
211
                end
212
        end
213
end))
214
 
215
torso = char.Torso
216
neck = torso.Neck
217
hum = char.Humanoid
218
Rarm = char["Right Arm"]
219
Larm = char["Left Arm"]
220
Rleg = char["Right Leg"]
221
Lleg = char["Left Leg"]
222
 
223
hc = Instance.new("Humanoid")
224
hc.Health = 0
225
hc.MaxHealth = 0
226
 
227
slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
228
hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
229
charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
230
boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
231
smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
232
boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
233
equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
234
 
235
function PlaySound(sound, pitch)
236
        local s = sound:clone()
237
        if pitch ~= nil then
238
                if tonumber(pitch) then
239
                        s.Pitch = tonumber(pitch)
240
                end
241
        end
242
        s.Parent = torso
243
        s.PlayOnRemove = true
244
        coroutine.resume(coroutine.create(function()
245
                wait()
246
                s:remove()
247
        end))
248
end
249
 
250
Mo = Instance.new("Model")
251
Mo.Name = Modelname
252
 
253
RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
254
LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
255
RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
256
LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
257
 
258
RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
259
LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
260
RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
261
LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
262
 
263
RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
264
LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
265
RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
266
LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
267
 
268
HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
269
HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
270
HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
271
 
272
TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
273
 
274
RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
275
 
276
handle = Part(Mo, false, false, 0, 0, "Bright red", 0.4, 5, 0.4, true)
277
handle.Name = "Handle"
278
Instance.new("SpecialMesh",handle)
279
 
280
maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
281
Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
282
 
283
DMGParts = {}
284
 
285
for i = 0, 135, 45 do
286
        local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
287
        Instance.new("BlockMesh",tip)
288
        Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
289
        table.insert(DMGParts, tip)
290
        for a = -0.9, 0.9, 1.8 do
291
                for x = 0, math.pi, math.pi do
292
                        local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
293
                        local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
294
                        w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
295
                        w.C1 = CFrame.new(0, -1, 0)
296
                        Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
297
                        local trim = Part(Mo, false, false, 0, 0, "Bright red", 0.67, 0.1, 0.5, true)
298
                        local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
299
                        w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
300
                        w2.C1 = CFrame.new(0, -0.58, 0)
301
                end
302
        end
303
end
304
 
305
spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
306
Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
307
Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
308
 
309
table.insert(DMGParts, spiketip)
310
 
311
local handletip1 = Part(Mo, false, false, 0, 0.2, "Bright red", 0.5, 0.5, 0.5, true)
312
local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
313
w1.C0 = CFrame.new(0, -2.6, 0)
314
Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
315
 
316
local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
317
Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
318
Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
319
 
320
 
321
Mo.Parent = char
322
TH.Part1 = handle
323
 
324
function showdmg(dmg, p, pos)
325
        local mo = Instance.new("Model")
326
        mo.Name = dmg
327
        local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
328
        pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
329
        pa.Name = "Head"
330
        local hah = hc:clone()
331
        hah.Parent = mo
332
        local bp = Add.BP(pa)
333
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
334
        bp.position = p.Position + Vector3.new(0, 3+pos, 0)
335
        Add.BG(pa)
336
        coroutine.resume(coroutine.create(function()
337
                wait()
338
                mo.Parent = workspace
339
                wait(1.4)
340
                mo:remove()
341
        end))
342
end
343
 
344
 
345
function damage(hum, p, num, dm1, dm2)
346
        local dmg = math.random(dm1, dm2)
347
        hum.Health = hum.Health - dmg
348
        showdmg(dmg, p, num)
349
        return dmg
350
end
351
 
352
function brickdamage(hit)
353
        local h = getHumanoid(hit.Parent)
354
        if h ~= nil and Hurt and Deb then
355
                Deb = false
356
                local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
357
                PlaySound(hitsound)
358
                Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
359
                wait(0.3)
360
                Deb = true
361
        end
362
end
363
 
364
function legdamage(hit)
365
        local h = getHumanoid(hit.Parent)
366
        if h ~= nil and Leghurt and LegDeb then
367
                LegDeb = false
368
                local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
369
                PlaySound(hitsound)
370
                Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
371
                coroutine.resume(coroutine.create(function()
372
                        local haha = math.random(1,3)
373
                        if haha == 1 then
374
                                h.PlatformStand = true
375
                                wait()
376
                                local ps = getAllParts(h.Parent)
377
                                for i, v in pairs(ps) do
378
                                        if v.Anchored == false then
379
                                                v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
380
                                                v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
381
                                        end
382
                                end
383
                                wait(0.8)
384
                                h.PlatformStand = false
385
                        end
386
                end))
387
                wait(0.2)
388
                LegDeb = true
389
        end
390
end
391
 
392
for i, v in pairs({Rleg, Lleg}) do
393
        v.Touched:connect(legdamage)
394
end
395
 
396
for i,v in pairs(DMGParts) do
397
        v.Touched:connect(brickdamage)
398
end
399
 
400
if script.Parent.className ~= "HopperBin" then
401
        h = Instance.new("HopperBin",me.Backpack)
402
        h.Name = Toolname
403
        h.TextureId = ToolIcon
404
        script.Parent = h
405
end
406
 
407
bin = script.Parent
408
 
409
function StartEffect(part)
410
        effectOn = true
411
        local lastPoint = part.Position
412
        coroutine.resume(coroutine.create(function()
413
                while effectOn do
414
                        wait()
415
                        local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
416
                        local mag = (lastPoint - part.Position).magnitude
417
                        local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
418
                        local m = Instance.new("SpecialMesh",p)
419
                        p.CFrame = point * CFrame.new(0, mag/2, 0)
420
                        m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
421
                        lastPoint = part.Position
422
                        coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
423
                end
424
        end))
425
end
426
 
427
function EndEffect()
428
        effectOn = false
429
end
430
 
431
function detach(bool)
432
        LLW.C0 = CFrame.new(0, 0, 0)
433
        RLW.C0 = CFrame.new(0, 0, 0)
434
        LAW.C0 = CFrame.new(0,0,0)
435
        RAW.C0 = CFrame.new(0, 0, 0)
436
        if bool then
437
                LLW.Part1 = nil
438
                RLW.Part1 = nil
439
                RAW.Part1 = nil
440
                LAW.Part1 = nil
441
        end
442
end
443
 
444
function attach()
445
        RAW.Part1 = Rarm
446
        LAW.Part1 = Larm
447
        RLW.Part1 = Rleg
448
        LLW.Part1 = Lleg
449
end
450
 
451
function normal()
452
        neck.C0 = necko
453
        RAW.C0 = RAWStand
454
        LAW.C0 = LAWStand
455
        RLW.C0 = RLWStand
456
        LLW.C0 = LLWStand
457
        RAW.C1 = CFrame.new(0, 0.5, 0)
458
        LAW.C1 = CFrame.new(0, 0.5, 0)
459
        RLW.C1 = CFrame.new(0, 0.8, 0)
460
        LLW.C1 = CFrame.new(0, 0.8, 0)
461
        HW.C0 = HWStand
462
end
463
 
464
function idleanim()
465
        attach()
466
        for i = 0, 10, 10/22 do
467
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
468
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
469
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
470
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
471
                neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
472
                if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
473
                wait()
474
        end
475
        wait()
476
        for i = 10, 0, -10/29 do
477
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
478
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
479
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
480
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
481
                neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
482
                if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
483
                wait()
484
        end
485
        normal()
486
end
487
 
488
function runanim()
489
        RLW.Part1 = nil
490
        LLW.Part1 = nil
491
end
492
 
493
coroutine.resume(coroutine.create(function()
494
        while true do
495
                wait()
496
                if selected and Able == true and RestingAnim == false then
497
                        if torso.Velocity.magnitude < 2 then
498
                                idleanim()
499
                                wait()
500
                        else
501
                                runanim()
502
                                wait()
503
                        end
504
                end
505
        end
506
end))
507
 
508
function selectanim()
509
        if RestingAnim == false and Able == true then
510
        local ah = CFrame.Angles(0, 0, math.rad(90))
511
        RAW.Part1 = Rarm
512
        for i = 0, 270, 270/5 do
513
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
514
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
515
                wait()
516
        end
517
        HW.C0 = ah
518
        HW.Part1 = handle
519
        TH.Part1 = nil
520
        PlaySound(equip)
521
        for i = 270, 70, -200/13 do
522
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
523
                neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
524
                wait()
525
        end
526
        attach()
527
        for i = 70, 120, 50/8 do
528
                local asd = i-70
529
                RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
530
                LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
531
                HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
532
                neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
533
                RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
534
                LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
535
                wait()
536
        end
537
        if RAWStand == nil then
538
                RAWStand = RAW.C0
539
                LAWStand = LAW.C0
540
                RLWStand = RLW.C0
541
                LLWStand = LLW.C0
542
                HWStand = HW.C0
543
        end
544
        normal()
545
        end
546
end
547
 
548
function deselanim()
549
        if RestingAnim == false and Able == true then
550
        local ah = CFrame.Angles(0, 0, math.rad(90))
551
        for i = 120, 70, -50/8 do
552
                local asd = i-70
553
                RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
554
                LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
555
                HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
556
                neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
557
                RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
558
                LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
559
                wait()
560
        end
561
        LLW.Part1 = nil
562
        RLW.Part1 = nil
563
        LAW.Part1 = nil
564
        for i = 70, 270, 200/13 do
565
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
566
                neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
567
                wait()
568
        end
569
        HW.C0 = ah
570
        HW.Part1 = nil
571
        TH.Part1 = handle
572
        for i = 270, 0, -270/6 do
573
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
574
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
575
                wait()
576
        end
577
        neck.C0 = necko
578
        detach(true)
579
        end
580
end
581
 
582
function smash(mouse)
583
        attach()
584
        local mouseHit = mouse
585
        local Orig = torso.CFrame
586
        local bg = Add.BG(torso)
587
        local bp = Add.BP(torso)
588
        bp.position = Orig.p
589
        local CF = ComputePos(Orig.p, mouseHit)
590
        local CF2 = CF
591
        bg.cframe = CF2
592
        PlaySound(slash)
593
        for i = 0, 1, Prop.AS*1.1 do
594
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
595
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
596
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
597
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
598
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
599
                neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
600
                wait()
601
        end
602
        bp.position = CF * CFrame.new(0, 0, -1.1).p
603
        StartEffect(maintip)
604
        Hurt = true
605
        for i = 0, 1, Prop.AS*1.5 do
606
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
607
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
608
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
609
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
610
                HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
611
                neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
612
                wait()
613
        end
614
        Hurt = false
615
        EndEffect()
616
        PlaySound(smashsound)
617
        bp.position = CF * CFrame.new(0, 0, -1.9).p
618
        for i = 0, 1, Prop.AS do
619
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
620
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
621
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
622
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
623
                HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
624
                neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
625
                wait()
626
        end
627
        normal()
628
        bg:remove()
629
        bp:remove()
630
end
631
 
632
function swing(mouse)
633
        attach()
634
        local mouseHit = mouse
635
        local Orig = torso.CFrame
636
        local bg = Add.BG(torso)
637
        local bp = Add.BP(torso)
638
        bp.position = Orig.p
639
        local CF = ComputePos(Orig.p, mouseHit)
640
        local CF2 = CF
641
        bg.cframe = CF2
642
        PlaySound(slash)
643
        for i = 0, 1, Prop.AS*1.5 do
644
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
645
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
646
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
647
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
648
                HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
649
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
650
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
651
                wait()
652
        end
653
        Hurt = true
654
        StartEffect(maintip)
655
        for i = 0, 1, Prop.AS*1.3 do
656
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
657
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
658
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
659
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
660
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
661
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
662
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
663
                wait()
664
        end
665
        EndEffect()
666
        Hurt = false
667
        for i = 0, 1, Prop.AS*0.8 do
668
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
669
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
670
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
671
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
672
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
673
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
674
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
675
                wait()
676
        end
677
        normal()
678
        bg:remove()
679
        bp:remove()
680
end
681
 
682
function stab(mouse)
683
        attach()
684
        local mouseHit = mouse
685
        local Orig = torso.CFrame
686
        local bg = Add.BG(torso)
687
        local bp = Add.BP(torso)
688
        bp.position = Orig.p
689
        local CF = ComputePos(Orig.p, mouseHit)
690
        local CF2 = CF
691
        bg.cframe = CF2
692
        PlaySound(slash)
693
        for i = 0, 1, Prop.AS do
694
                RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
695
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
696
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
697
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
698
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
699
                neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
700
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
701
                wait()
702
        end
703
        StartEffect(maintip)
704
        Hurt = true
705
        bp.position = CF * CFrame.new(0, 0, -0.6).p
706
        for i = 0, 1, Prop.AS*1.5 do
707
                RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
708
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
709
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
710
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
711
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
712
                neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
713
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
714
                wait()
715
        end
716
        Hurt = false
717
        EndEffect()
718
        bp.position = CF.p
719
        for i = 0, 1, Prop.AS*1.1 do
720
                RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
721
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
722
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
723
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
724
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
725
                neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
726
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
727
                wait()
728
        end
729
        normal()
730
        bg:remove()
731
        bp:remove()
732
end
733
 
734
function epicsmashfunc(hit)
735
        local ch = hit.Parent
736
        local h = getHumanoid(ch)
737
        local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
738
        return h, t, head
739
end
740
 
741
function epicsmash(mouse)
742
        if Prop.Rage >= 50 then
743
        attach()
744
        local mouseHit = mouse
745
        local Orig = torso.CFrame
746
        local bg = Add.BG(torso)
747
        local bp = Add.BP(torso)
748
        bp.position = Orig.p
749
        local CF = ComputePos(Orig.p, mouseHit)
750
        bg.cframe = CF
751
        local hu, to, head = nil, nil, nil
752
        local Epic = true
753
        local conn = Lleg.Touched:connect(function(hit)
754
                if Epic then
755
                        hu, to, head = epicsmashfunc(hit)
756
                        if hu and to and head then Epic = false end
757
                end
758
        end)
759
        PlaySound(slash)
760
        for i = 0, 1, 0.12 do
761
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
762
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
763
                RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
764
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
765
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
766
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
767
                bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
768
                wait()
769
        end
770
        conn:disconnect()
771
        if hu and to and head then
772
                Prop.Rage = Prop.Rage - 50
773
                hu.PlatformStand = true
774
                local bg2 = Add.BG(to)
775
                bg2.P = 6000
776
                bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
777
                local bp2 = Add.BP(to)
778
                bp2.position = CF * CFrame.new(-1, -4, -4).p
779
                bp2.P = 5000
780
                wait(0.1)
781
                for i = 0, 1, 0.045 do
782
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
783
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
784
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
785
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
786
                        HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
787
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
788
                        bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
789
                        wait()
790
                end
791
                PlaySound(slash)
792
                bp2:remove()
793
                bg2:remove()
794
                wait(0.2)
795
                StartEffect(maintip)
796
                for i = 0, 1, 0.1 do
797
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
798
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
799
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
800
                        LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
801
                        HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
802
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
803
                        bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
804
                        wait()
805
                end
806
                coroutine.resume(coroutine.create(function()
807
                        local frr = Cam.CoordinateFrame
808
                        for i = 1, math.random(3,6) do
809
                                wait()
810
                                Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
811
                        end
812
                end))
813
                PlaySound(smashsound)
814
                EndEffect()
815
                local pos = head.Position
816
                if (pos - maintip.Position).magnitude < 2 then
817
                damage(hu, head, 0.3, hu.Health, hu.Health)
818
                head:remove()
819
                PlaySound(hitsound)
820
                for i = 1, math.random(7, 17) do
821
                        local hmm = math.random(1,6)
822
                        if hmm < 6 then
823
                                local cols = {"Bright red", "Really red"}
824
                                local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
825
                                p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
826
                                p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
827
                                p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
828
                        else
829
                                local cols = {"Institutional white", "White"}
830
                                local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
831
                                p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
832
                                p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
833
                                p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
834
                        end
835
                end
836
                end
837
                for i = 0, 1, 0.06 do
838
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
839
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
840
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
841
                        LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
842
                        HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
843
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
844
                        bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
845
                        wait()
846
                end
847
        else
848
                for i = 0, 1, 0.08 do
849
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
850
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
851
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
852
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
853
                        HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
854
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
855
                        bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
856
                        wait()
857
                end
858
                bg:remove()
859
                bp:remove()
860
                normal()
861
        end
862
        normal()
863
        bg:remove()
864
        bp:remove()
865
        end
866
end
867
 
868
 
869
function shockwave(mouse)
870
        local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
871
        if Prop.Rage >= 80 and t then
872
        Prop.Rage = Prop.Rage - 80
873
        attach()
874
        local mouseHit = mouse
875
        local Orig = torso.CFrame
876
        local bg = Add.BG(torso)
877
        local bp = Add.BP(torso)
878
        bp.position = Orig.p
879
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
880
        bp.P = 5000
881
        local CF = ComputePos(Orig.p, mouseHit)
882
        bg.cframe = CF
883
        PlaySound(charge)
884
        for i = 0, 1, 0.07 do
885
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
886
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
887
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
888
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
889
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
890
                neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
891
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
892
                bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
893
                wait()
894
        end
895
        for i = 0, 1, 0.04 do
896
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
897
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
898
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
899
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
900
                HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
901
                neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
902
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
903
                bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
904
                wait()
905
        end
906
        bp.P = 12001
907
        wait(0.1)
908
        StartEffect(maintip)
909
        PlaySound(slash)
910
        for i = 0, 1, 0.1 do
911
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
912
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
913
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
914
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
915
                HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
916
                neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
917
                bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
918
                bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
919
                wait()
920
        end
921
        coroutine.resume(coroutine.create(function()
922
                local frr = Cam.CoordinateFrame
923
                for i = 1, math.random(10,16) do
924
                        wait()
925
                        Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
926
                end
927
        end))
928
        PlaySound(smashsound)
929
        local pos = CF * CFrame.new(-2, -3, -3).p
930
        EndEffect()
931
        local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
932
        p.CFrame = CFrame.new(pos)
933
        local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
934
        p2.CFrame = CFrame.new(pos)
935
        local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
936
        p3.CFrame = CFrame.new(pos)
937
        local m3 = Instance.new("SpecialMesh",p3)
938
        m3.MeshType = "Sphere"
939
        PlaySound(boom)
940
        local m2 = Instance.new("CylinderMesh",p2)
941
        local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
942
        local tab = {}
943
        coroutine.resume(coroutine.create(function()
944
                for x = 0, 1.04, 0.04 do
945
                        wait()
946
                        local thing = 33*x
947
                        m.Scale = Vector3.new(21*x, 5*x, 21*x)
948
                        m2.Scale = Vector3.new(thing, 1, thing)
949
                        m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
950
                        p.Transparency = x
951
                        p2.Transparency = x
952
                        p3.Transparency = x
953
                        for i, v in pairs(workspace:children()) do
954
                                local h = getHumanoid(v)
955
                                local to = v:findFirstChild("Torso")
956
                                if h ~= nil and to ~= nil and find(tab, v) == nil then
957
                                        if (to.Position - pos).magnitude < (thing/2) then
958
                                                damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
959
                                                to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
960
                                                to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
961
                                                h.PlatformStand = true
962
                                                table.insert(tab, v)
963
                                                coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
964
                                        end
965
                                end
966
                        end
967
                end
968
                p:remove()
969
                p2:remove()
970
                p3:remove()
971
        end))
972
        wait(0.8)
973
        for i = 0, 1, Prop.AS*0.8 do
974
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
975
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
976
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
977
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
978
                HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
979
                neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
980
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
981
                bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
982
                wait()
983
        end
984
        normal()
985
        bg:remove()
986
        bp:remove()
987
        end
988
end
989
 
990
function flipsmash(mouse)
991
        local Orig = torso.CFrame
992
        local mouseHit = mouse
993
        local CF = ComputePos(Orig.p, mouseHit)
994
        local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
995
        local ahp = (CF * CFrame.new(0, 0, -14.5))
996
        local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
997
        if t and t2 and Prop.Rage >= 90 then
998
        Prop.Rage = Prop.Rage - 90
999
        attach()
1000
        local bg = Add.BG(torso)
1001
        local bp = Add.BP(torso)
1002
        bp.position = Orig.p
1003
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1004
        bg.cframe = CF
1005
        local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
1006
        for i = 0, 1, 0.08 do
1007
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
1008
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
1009
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
1010
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
1011
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
1012
                neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
1013
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
1014
                bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
1015
                wait()
1016
        end
1017
        wait(0.15)
1018
        hum.PlatformStand = true
1019
        for i = 0, 1, 0.13 do
1020
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
1021
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
1022
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
1023
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
1024
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
1025
                neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
1026
                bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
1027
                bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
1028
                wait()
1029
        end
1030
        PlaySound(slash)
1031
        for i = 0, 1, 0.13 do
1032
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
1033
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
1034
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
1035
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
1036
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
1037
                neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
1038
                bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
1039
                bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
1040
                wait()
1041
        end
1042
        StartEffect(maintip)
1043
        PlaySound(slash)
1044
        for i = 0, 1, 0.06 do
1045
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
1046
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
1047
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
1048
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
1049
                HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
1050
                neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
1051
                bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
1052
                bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
1053
                wait()
1054
        end
1055
        coroutine.resume(coroutine.create(function()
1056
                local frr = Cam.CoordinateFrame
1057
                for i = 1, math.random(13,20) do
1058
                        wait()
1059
                        Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
1060
                end
1061
        end))
1062
        PlaySound(smashsound)
1063
        PlaySound(boomboom)
1064
        EndEffect()
1065
        local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
1066
        local siz = math.random(65,115)/10
1067
        local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
1068
        partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
1069
        local decc = Instance.new("Decal",partie)
1070
        decc.Shiny = 0
1071
        decc.Specular = 0
1072
        decc.Texture = "http://www.roblox.com/asset/?id=49173398"
1073
        decc.Face = "Top"
1074
        local count = 0
1075
        for i, v in pairs(workspace:children()) do
1076
                local h = getHumanoid(v)
1077
                local to = v:findFirstChild("Torso")
1078
                if h ~= nil and to ~= nil then
1079
                        if (to.Position - poo).magnitude < 15 then
1080
                                count = count + 1
1081
                                local Maxhp = h.MaxHealth
1082
                                if Maxhp > 5000 then Maxhp = 5000 end
1083
                                damage(h, to, 0.5, 0, Maxhp+5)
1084
                                to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
1085
                                to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
1086
                                to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1087
                                h.PlatformStand = true
1088
                                coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
1089
                                if count >= 2 then break end
1090
                        end
1091
                end
1092
        end
1093
        coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
1094
        wait(0.6)
1095
        for i = 0, 1, 0.06 do
1096
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
1097
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
1098
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
1099
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
1100
                HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
1101
                neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
1102
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
1103
                bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
1104
                wait()
1105
        end
1106
        hum.PlatformStand = false
1107
        normal()
1108
        bg:remove()
1109
        bp:remove()
1110
        end
1111
end
1112
 
1113
function spin(mouse)
1114
        attach()
1115
        local mouseHit = mouse
1116
        local Orig = torso.CFrame
1117
        local CF = ComputePos(Orig.p, mouseHit)
1118
        local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
1119
        if t then
1120
        local bg = Add.BG(torso)
1121
        local bp = Add.BP(torso)
1122
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1123
        bp.position = Orig.p
1124
        bg.cframe = CF
1125
        PlaySound(slash)
1126
        for i = 0, 1, 0.11 do
1127
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
1128
                RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
1129
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
1130
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
1131
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
1132
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
1133
                neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
1134
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
1135
                wait()
1136
        end
1137
        local posg = CF * CFrame.new(0, -0.6, -4)
1138
        PlaySound(hitsound, 0.9)
1139
        for i = 0, 1, 0.13 do
1140
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
1141
                RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
1142
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
1143
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
1144
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
1145
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
1146
                neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
1147
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
1148
                bp.position = CF * CFrame.new(0, 1*i, -2*i).p
1149
                wait()
1150
        end
1151
        hum.PlatformStand = true
1152
        bg.Parent = handle
1153
        bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
1154
        bp.Parent = handle
1155
        bp.position = posg.p
1156
        StartEffect(Lleg)
1157
        Leghurt = true
1158
        PlaySound(slash)
1159
        for i = 0, 1, 0.09 do
1160
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
1161
                RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
1162
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
1163
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
1164
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
1165
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
1166
                neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
1167
                bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
1168
                wait()
1169
        end
1170
        for i = 0, 1, 0.055 do
1171
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
1172
                RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
1173
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
1174
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
1175
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
1176
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
1177
                neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
1178
                bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
1179
                wait()
1180
        end
1181
        EndEffect()
1182
        Leghurt = false
1183
        for i = 0, 1, 0.12 do
1184
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
1185
                RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
1186
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
1187
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
1188
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
1189
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
1190
                neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
1191
                bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
1192
                wait()
1193
        end
1194
        bg.Parent = torso
1195
        bp.Parent = torso
1196
        bg.cframe = CF
1197
        for i = 0, 1, 0.14 do
1198
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
1199
                RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
1200
                LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
1201
                RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
1202
                LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
1203
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
1204
                neck.C0 = necko * CFrame.Angles(0, 0, 0)
1205
                bp.position = CF * CFrame.new(0, 0, -2+1*i).p
1206
                bg.cframe = CF
1207
                wait()
1208
        end
1209
        hum.PlatformStand = false
1210
        normal()
1211
        bg:remove()
1212
        bp:remove()
1213
        end
1214
end
1215
 
1216
function rest()
1217
        local Orig = torso.CFrame
1218
        local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
1219
        local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
1220
        if t then
1221
        attach()
1222
        local bg = Add.BG(torso)
1223
        local bp = Add.BP(torso)
1224
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1225
        bp.position = CF.p
1226
        bg.cframe = CF
1227
        local cen = CF * CFrame.new(0, -2.5, 0)
1228
        RestingAnim = true
1229
        hum.PlatformStand = true
1230
        local standup = function()
1231
                Resting = false
1232
                bp.Parent = torso
1233
                cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
1234
                for i = 1, 0, -0.12 do
1235
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
1236
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
1237
                        RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
1238
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
1239
                        neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
1240
                        HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
1241
                        bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
1242
                        bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
1243
                        wait()
1244
                end
1245
                for i = 1, 0, -0.17 do
1246
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
1247
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
1248
                        RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
1249
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
1250
                        neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
1251
                        HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
1252
                        bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
1253
                        bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
1254
                        wait()
1255
                end
1256
                hum.PlatformStand = false
1257
                bg:remove()
1258
                bp:remove()
1259
                normal()
1260
                Able = true
1261
                RestingAnim = false
1262
        end
1263
        local connec = hum.Changed:connect(function()
1264
                if hum.PlatformStand == false then
1265
                        coroutine.resume(coroutine.create(function()
1266
                                standup()
1267
                        end))
1268
                        standup = nil
1269
                        connec:disconnect()
1270
                end
1271
        end)
1272
        local lasthp = hum.Health
1273
        local conn = hum.HealthChanged:connect(function(hp)
1274
                if lasthp - hp > 0.8 then
1275
                        hum.PlatformStand = false
1276
                        conn:disconnect()
1277
                end
1278
                lasthp = hp
1279
        end)
1280
        coroutine.resume(coroutine.create(function()
1281
                repeat wait() until Resting
1282
                while Resting do
1283
                        wait()
1284
                        if torso.Velocity.magnitude > 4 then
1285
                                hum.PlatformStand = false
1286
                                break
1287
                        end
1288
                end
1289
        end))
1290
        for i = 0, 1, 0.1 do
1291
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
1292
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
1293
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
1294
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
1295
                neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
1296
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
1297
                bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
1298
                bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
1299
                wait()
1300
        end
1301
        for i = 0, 1, 0.07 do
1302
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
1303
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
1304
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
1305
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
1306
                neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
1307
                HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
1308
                bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
1309
                bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
1310
                wait()
1311
        end
1312
        Resting = true
1313
        coroutine.resume(coroutine.create(function()
1314
                wait(0.4)
1315
                bp.Parent = nil
1316
        end))
1317
        coroutine.resume(coroutine.create(function()
1318
                while Resting and selected do
1319
                        wait(math.random(350,800)/1000)
1320
                        hum.Health = hum.Health + math.random(1,2)
1321
                        Prop.Rage = Prop.Rage + 1
1322
                end
1323
                hum.PlatformStand = false
1324
        end))
1325
        end
1326
end
1327
 
1328
function select(mouse)
1329
        mouse.Icon = MouseIc
1330
        selectanim()
1331
        selected = true
1332
        mouse.Button1Down:connect(function()
1333
                if Able and RestingAnim == false and hum.Sit == false then
1334
                        Able = false
1335
                        swing(mouse.Hit.p)
1336
                        Able = true
1337
                end
1338
        end)
1339
        mouse.Button1Down:connect(function()
1340
                mouse.Icon = MouseDo
1341
                mouse.Button1Up:wait()
1342
                mouse.Icon = MouseIc
1343
        end)
1344
        mouse.KeyDown:connect(function(key)
1345
                key = key:lower()
1346
                if Able and RestingAnim == false and hum.Sit == false then
1347
                if key == "q" then
1348
                        Able = false
1349
                        smash(mouse.Hit.p)
1350
                        Able = true
1351
                elseif key == "e" then
1352
                        Able = false
1353
                        swing(mouse.Hit.p)
1354
                        Able = true
1355
                elseif key == "r" then
1356
                        Able = false
1357
                        stab(mouse.Hit.p)
1358
                        Able = true
1359
                elseif key == "f" then
1360
                        Able = false
1361
                        epicsmash(mouse.Hit.p)
1362
                        Able = true
1363
                elseif key == "z" then
1364
                        Able = false
1365
                        shockwave(mouse.Hit.p)
1366
                        Able = true
1367
                elseif key == "x" then
1368
                        Able = false
1369
                        flipsmash(mouse.Hit.p)
1370
                        Able = true
1371
                elseif key == "t" then
1372
                        Able = false
1373
                        spin(mouse.Hit.p)
1374
                        Able = true
1375
                end
1376
                end
1377
                if Able then
1378
                        if key == "g" and AbleG then
1379
                                AbleG = false
1380
                                if Resting == true then
1381
                                        Resting = false
1382
                                else
1383
                                        rest()
1384
                                end
1385
                                wait(0.8)
1386
                                AbleG = true
1387
                        end
1388
                end
1389
        end)
1390
end
1391
 
1392
function deselect(mouse)
1393
        selected = false
1394
        deselanim()
1395
end
1396
bin.Selected:connect(select)
1397
bin.Deselected:connect(deselect)Ancor = game:GetService("Players")
1398
 
1399
me = Ancor.LocalPlayer
1400
char = me.Character
1401
Modelname = "Warhammah"
1402
Toolname = "Warhammar"
1403
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
1404
necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1405
selected = false
1406
effectOn = false
1407
Hurt = false
1408
Leghurt = false
1409
Deb = true
1410
LegDeb = true
1411
Able = true
1412
Resting = false
1413
RestingAnim = false
1414
AbleG = true
1415
Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
1416
Prop.AS = Prop.AS/300
1417
Cam = workspace.CurrentCamera
1418
 
1419
ToolIcon = "http://www.roblox.com/asset/?id=49192762"
1420
MouseIc = "http://www.roblox.com/asset/?id=49192792"
1421
MouseDo = "http://www.roblox.com/asset/?id=49192819"
1422
 
1423
Add = {
1424
        Sphere = function(P)
1425
                local m = Instance.new("SpecialMesh",P)
1426
                m.MeshType = "Sphere"
1427
                return m
1428
        end,
1429
        BF = function(P)
1430
                local bf = Instance.new("BodyForce",P)
1431
                bf.force = Vector3.new(0, P:GetMass()*187, 0)
1432
                return bf
1433
        end,
1434
        BP = function(P)
1435
                local bp = Instance.new("BodyPosition",P)
1436
                bp.maxForce = Vector3.new(math.huge, 0, math.huge)
1437
                bp.P = 14000
1438
                return bp
1439
        end,
1440
        BG = function(P)
1441
                local bg = Instance.new("BodyGyro",P)
1442
                bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
1443
                bg.P = 14000
1444
                return bg
1445
        end,
1446
        Mesh = function(P, ID, x, y, z)
1447
                local m = Instance.new("SpecialMesh")
1448
                m.MeshId = ID
1449
                m.Scale = Vector3.new(x, y, z)
1450
                m.Parent = P
1451
                return m
1452
        end,
1453
        Sound = function(P, ID, vol, pitch)
1454
                local s = Instance.new("Sound")
1455
                s.SoundId = ID
1456
                s.Volume = vol
1457
                s.Pitch = pitch
1458
                s.Parent = P
1459
                return s
1460
        end
1461
}
1462
 
1463
function find(tab, arg)
1464
        local ah = nil
1465
        for i,v in pairs(tab) do
1466
                if v == arg then
1467
                        ah = v
1468
                end
1469
        end
1470
        return ah
1471
end
1472
 
1473
function getAllParts(from)
1474
        local t = {}
1475
        function getParts(where)
1476
                for i, v in pairs(where:children()) do
1477
                        if v:IsA("BasePart") then
1478
                                if v.Parent ~= char and v.Parent.Parent ~= char then
1479
                                        table.insert(t, v)
1480
                                end
1481
                        end
1482
                        getParts(v)
1483
                end
1484
        end
1485
        getParts(workspace)
1486
        return t
1487
end
1488
 
1489
function RayCast(pos1, pos2, maxDist, forward)
1490
        local list = getAllParts(workspace)
1491
        local pos0 = pos1
1492
        for dist = 1, maxDist, forward do
1493
                pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
1494
                for _, v in pairs(list) do
1495
                        local pos3 = v.CFrame:pointToObjectSpace(pos0)
1496
                        local s = v.Size
1497
                        if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
1498
                                return pos0, v
1499
                        end
1500
                end
1501
        end
1502
        return pos0, nil
1503
end
1504
 
1505
function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
1506
        local p = Instance.new("Part")
1507
        p.formFactor = "Custom"
1508
        p.Anchored = Anchor
1509
        p.CanCollide = Collide
1510
        p.Transparency = Tran
1511
        p.Reflectance = Ref
1512
        p.BrickColor = BrickColor.new(Color)
1513
        for _, Surf in pairs(Surfaces) do
1514
                p[Surf] = "Smooth"
1515
        end
1516
        p.Size = Vector3.new(X, Y, Z)
1517
        if Break then
1518
                p:BreakJoints()
1519
        else p:MakeJoints() end
1520
        p.Parent = Parent
1521
        p.Locked = true
1522
        return p
1523
end
1524
 
1525
function Weld(p0, p1, x, y, z, a, b, c)
1526
        local w = Instance.new("Weld")
1527
        w.Parent = p0
1528
        w.Part0 = p0
1529
        w.Part1 = p1
1530
        w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
1531
        return w
1532
end
1533
 
1534
function ComputePos(pos1, pos2)
1535
        local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
1536
        return CFrame.new(pos1, pos3)
1537
end
1538
 
1539
function getHumanoid(c)
1540
        local h = nil
1541
        for i,v in pairs(c:children()) do
1542
                if v:IsA("Humanoid") and c ~= char then
1543
                        if v.Health > 0 then
1544
                                h = v
1545
                        end
1546
                end
1547
        end
1548
        return h
1549
end
1550
 
1551
for i,v in pairs(char:children()) do
1552
        if v.Name == Modelname then
1553
                v:remove()
1554
        end
1555
end
1556
 
1557
pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
1558
 
1559
Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
1560
Sc.Name = "RaigMeter"
1561
 
1562
Fr = Instance.new("Frame",Sc)
1563
Fr.Size = UDim2.new(0, 250, 0, 28)
1564
Fr.Position = UDim2.new(0.5, -125, 0, 5)
1565
Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
1566
 
1567
Met = Instance.new("Frame", Fr)
1568
Met.Size = UDim2.new(1, -10, 1, -6)
1569
Met.Position = UDim2.new(0, 5, 0, 3)
1570
Met.BackgroundColor3 = Color3.new(0, 0, 0)
1571
Met.BorderSizePixel = 0
1572
 
1573
Meter = Instance.new("ImageLabel", Met)
1574
Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
1575
Meter.Position = UDim2.new(0, 0, 0, 1)
1576
Meter.Image = "http://www.roblox.com/asset/?id=48965808"
1577
Meter.BorderSizePixel = 0
1578
Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
1579
 
1580
Tx = Instance.new("TextLabel", Met)
1581
Tx.Size = UDim2.new(0, 0, 1, 0)
1582
Tx.Position = UDim2.new(0, 5, 0, 0)
1583
Tx.Text = Prop.Rage.." / "..Prop.MaxRage
1584
Tx.Font = "ArialBold"
1585
Tx.FontSize = "Size18"
1586
Tx.BackgroundTransparency = 1
1587
Tx.TextColor3 = Color3.new(1, 0, 0)
1588
Tx.TextXAlignment = "Left"
1589
 
1590
laast = Prop.Rage
1591
coroutine.resume(coroutine.create(function()
1592
        while true do
1593
                wait()
1594
                if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
1595
                if laast ~= Prop.Rage then
1596
                        Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
1597
                        laast = Prop.Rage
1598
                        Tx.Text = Prop.Rage.." / "..Prop.MaxRage
1599
                end
1600
        end
1601
end))
1602
 
1603
torso = char.Torso
1604
neck = torso.Neck
1605
hum = char.Humanoid
1606
Rarm = char["Right Arm"]
1607
Larm = char["Left Arm"]
1608
Rleg = char["Right Leg"]
1609
Lleg = char["Left Leg"]
1610
 
1611
hc = Instance.new("Humanoid")
1612
hc.Health = 0
1613
hc.MaxHealth = 0
1614
 
1615
slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
1616
hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
1617
charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
1618
boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
1619
smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
1620
boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
1621
equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
1622
 
1623
function PlaySound(sound, pitch)
1624
        local s = sound:clone()
1625
        if pitch ~= nil then
1626
                if tonumber(pitch) then
1627
                        s.Pitch = tonumber(pitch)
1628
                end
1629
        end
1630
        s.Parent = torso
1631
        s.PlayOnRemove = true
1632
        coroutine.resume(coroutine.create(function()
1633
                wait()
1634
                s:remove()
1635
        end))
1636
end
1637
 
1638
Mo = Instance.new("Model")
1639
Mo.Name = Modelname
1640
 
1641
RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
1642
LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
1643
RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
1644
LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
1645
 
1646
RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
1647
LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
1648
RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
1649
LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
1650
 
1651
RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
1652
LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
1653
RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
1654
LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
1655
 
1656
HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
1657
HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
1658
HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
1659
 
1660
TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
1661
 
1662
RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
1663
 
1664
handle = Part(Mo, false, false, 0, 0, "Bright red", 0.4, 5, 0.4, true)
1665
handle.Name = "Handle"
1666
Instance.new("SpecialMesh",handle)
1667
 
1668
maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
1669
Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
1670
 
1671
DMGParts = {}
1672
 
1673
for i = 0, 135, 45 do
1674
        local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
1675
        Instance.new("BlockMesh",tip)
1676
        Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
1677
        table.insert(DMGParts, tip)
1678
        for a = -0.9, 0.9, 1.8 do
1679
                for x = 0, math.pi, math.pi do
1680
                        local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
1681
                        local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
1682
                        w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
1683
                        w.C1 = CFrame.new(0, -1, 0)
1684
                        Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
1685
                        local trim = Part(Mo, false, false, 0, 0, "Bright red", 0.67, 0.1, 0.5, true)
1686
                        local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
1687
                        w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
1688
                        w2.C1 = CFrame.new(0, -0.58, 0)
1689
                end
1690
        end
1691
end
1692
 
1693
spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
1694
Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
1695
Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
1696
 
1697
table.insert(DMGParts, spiketip)
1698
 
1699
local handletip1 = Part(Mo, false, false, 0, 0.2, "Bright red", 0.5, 0.5, 0.5, true)
1700
local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
1701
w1.C0 = CFrame.new(0, -2.6, 0)
1702
Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
1703
 
1704
local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
1705
Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
1706
Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
1707
 
1708
 
1709
Mo.Parent = char
1710
TH.Part1 = handle
1711
 
1712
function showdmg(dmg, p, pos)
1713
        local mo = Instance.new("Model")
1714
        mo.Name = dmg
1715
        local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
1716
        pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
1717
        pa.Name = "Head"
1718
        local hah = hc:clone()
1719
        hah.Parent = mo
1720
        local bp = Add.BP(pa)
1721
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1722
        bp.position = p.Position + Vector3.new(0, 3+pos, 0)
1723
        Add.BG(pa)
1724
        coroutine.resume(coroutine.create(function()
1725
                wait()
1726
                mo.Parent = workspace
1727
                wait(1.4)
1728
                mo:remove()
1729
        end))
1730
end
1731
 
1732
 
1733
function damage(hum, p, num, dm1, dm2)
1734
        local dmg = math.random(dm1, dm2)
1735
        hum.Health = hum.Health - dmg
1736
        showdmg(dmg, p, num)
1737
        return dmg
1738
end
1739
 
1740
function brickdamage(hit)
1741
        local h = getHumanoid(hit.Parent)
1742
        if h ~= nil and Hurt and Deb then
1743
                Deb = false
1744
                local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
1745
                PlaySound(hitsound)
1746
                Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
1747
                wait(0.3)
1748
                Deb = true
1749
        end
1750
end
1751
 
1752
function legdamage(hit)
1753
        local h = getHumanoid(hit.Parent)
1754
        if h ~= nil and Leghurt and LegDeb then
1755
                LegDeb = false
1756
                local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
1757
                PlaySound(hitsound)
1758
                Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
1759
                coroutine.resume(coroutine.create(function()
1760
                        local haha = math.random(1,3)
1761
                        if haha == 1 then
1762
                                h.PlatformStand = true
1763
                                wait()
1764
                                local ps = getAllParts(h.Parent)
1765
                                for i, v in pairs(ps) do
1766
                                        if v.Anchored == false then
1767
                                                v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
1768
                                                v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
1769
                                        end
1770
                                end
1771
                                wait(0.8)
1772
                                h.PlatformStand = false
1773
                        end
1774
                end))
1775
                wait(0.2)
1776
                LegDeb = true
1777
        end
1778
end
1779
 
1780
for i, v in pairs({Rleg, Lleg}) do
1781
        v.Touched:connect(legdamage)
1782
end
1783
 
1784
for i,v in pairs(DMGParts) do
1785
        v.Touched:connect(brickdamage)
1786
end
1787
 
1788
if script.Parent.className ~= "HopperBin" then
1789
        h = Instance.new("HopperBin",me.Backpack)
1790
        h.Name = Toolname
1791
        h.TextureId = ToolIcon
1792
        script.Parent = h
1793
end
1794
 
1795
bin = script.Parent
1796
 
1797
function StartEffect(part)
1798
        effectOn = true
1799
        local lastPoint = part.Position
1800
        coroutine.resume(coroutine.create(function()
1801
                while effectOn do
1802
                        wait()
1803
                        local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
1804
                        local mag = (lastPoint - part.Position).magnitude
1805
                        local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
1806
                        local m = Instance.new("SpecialMesh",p)
1807
                        p.CFrame = point * CFrame.new(0, mag/2, 0)
1808
                        m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
1809
                        lastPoint = part.Position
1810
                        coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
1811
                end
1812
        end))
1813
end
1814
 
1815
function EndEffect()
1816
        effectOn = false
1817
end
1818
 
1819
function detach(bool)
1820
        LLW.C0 = CFrame.new(0, 0, 0)
1821
        RLW.C0 = CFrame.new(0, 0, 0)
1822
        LAW.C0 = CFrame.new(0,0,0)
1823
        RAW.C0 = CFrame.new(0, 0, 0)
1824
        if bool then
1825
                LLW.Part1 = nil
1826
                RLW.Part1 = nil
1827
                RAW.Part1 = nil
1828
                LAW.Part1 = nil
1829
        end
1830
end
1831
 
1832
function attach()
1833
        RAW.Part1 = Rarm
1834
        LAW.Part1 = Larm
1835
        RLW.Part1 = Rleg
1836
        LLW.Part1 = Lleg
1837
end
1838
 
1839
function normal()
1840
        neck.C0 = necko
1841
        RAW.C0 = RAWStand
1842
        LAW.C0 = LAWStand
1843
        RLW.C0 = RLWStand
1844
        LLW.C0 = LLWStand
1845
        RAW.C1 = CFrame.new(0, 0.5, 0)
1846
        LAW.C1 = CFrame.new(0, 0.5, 0)
1847
        RLW.C1 = CFrame.new(0, 0.8, 0)
1848
        LLW.C1 = CFrame.new(0, 0.8, 0)
1849
        HW.C0 = HWStand
1850
end
1851
 
1852
function idleanim()
1853
        attach()
1854
        for i = 0, 10, 10/22 do
1855
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
1856
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
1857
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
1858
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
1859
                neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
1860
                if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
1861
                wait()
1862
        end
1863
        wait()
1864
        for i = 10, 0, -10/29 do
1865
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
1866
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
1867
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
1868
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
1869
                neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
1870
                if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
1871
                wait()
1872
        end
1873
        normal()
1874
end
1875
 
1876
function runanim()
1877
        RLW.Part1 = nil
1878
        LLW.Part1 = nil
1879
end
1880
 
1881
coroutine.resume(coroutine.create(function()
1882
        while true do
1883
                wait()
1884
                if selected and Able == true and RestingAnim == false then
1885
                        if torso.Velocity.magnitude < 2 then
1886
                                idleanim()
1887
                                wait()
1888
                        else
1889
                                runanim()
1890
                                wait()
1891
                        end
1892
                end
1893
        end
1894
end))
1895
 
1896
function selectanim()
1897
        if RestingAnim == false and Able == true then
1898
        local ah = CFrame.Angles(0, 0, math.rad(90))
1899
        RAW.Part1 = Rarm
1900
        for i = 0, 270, 270/5 do
1901
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
1902
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
1903
                wait()
1904
        end
1905
        HW.C0 = ah
1906
        HW.Part1 = handle
1907
        TH.Part1 = nil
1908
        PlaySound(equip)
1909
        for i = 270, 70, -200/13 do
1910
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
1911
                neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
1912
                wait()
1913
        end
1914
        attach()
1915
        for i = 70, 120, 50/8 do
1916
                local asd = i-70
1917
                RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
1918
                LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
1919
                HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
1920
                neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
1921
                RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
1922
                LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
1923
                wait()
1924
        end
1925
        if RAWStand == nil then
1926
                RAWStand = RAW.C0
1927
                LAWStand = LAW.C0
1928
                RLWStand = RLW.C0
1929
                LLWStand = LLW.C0
1930
                HWStand = HW.C0
1931
        end
1932
        normal()
1933
        end
1934
end
1935
 
1936
function deselanim()
1937
        if RestingAnim == false and Able == true then
1938
        local ah = CFrame.Angles(0, 0, math.rad(90))
1939
        for i = 120, 70, -50/8 do
1940
                local asd = i-70
1941
                RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
1942
                LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
1943
                HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
1944
                neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
1945
                RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
1946
                LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
1947
                wait()
1948
        end
1949
        LLW.Part1 = nil
1950
        RLW.Part1 = nil
1951
        LAW.Part1 = nil
1952
        for i = 70, 270, 200/13 do
1953
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
1954
                neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
1955
                wait()
1956
        end
1957
        HW.C0 = ah
1958
        HW.Part1 = nil
1959
        TH.Part1 = handle
1960
        for i = 270, 0, -270/6 do
1961
                RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
1962
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
1963
                wait()
1964
        end
1965
        neck.C0 = necko
1966
        detach(true)
1967
        end
1968
end
1969
 
1970
function smash(mouse)
1971
        attach()
1972
        local mouseHit = mouse
1973
        local Orig = torso.CFrame
1974
        local bg = Add.BG(torso)
1975
        local bp = Add.BP(torso)
1976
        bp.position = Orig.p
1977
        local CF = ComputePos(Orig.p, mouseHit)
1978
        local CF2 = CF
1979
        bg.cframe = CF2
1980
        PlaySound(slash)
1981
        for i = 0, 1, Prop.AS*1.1 do
1982
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
1983
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
1984
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
1985
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
1986
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
1987
                neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
1988
                wait()
1989
        end
1990
        bp.position = CF * CFrame.new(0, 0, -1.1).p
1991
        StartEffect(maintip)
1992
        Hurt = true
1993
        for i = 0, 1, Prop.AS*1.5 do
1994
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
1995
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
1996
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
1997
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
1998
                HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
1999
                neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
2000
                wait()
2001
        end
2002
        Hurt = false
2003
        EndEffect()
2004
        PlaySound(smashsound)
2005
        bp.position = CF * CFrame.new(0, 0, -1.9).p
2006
        for i = 0, 1, Prop.AS do
2007
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
2008
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
2009
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
2010
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
2011
                HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
2012
                neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
2013
                wait()
2014
        end
2015
        normal()
2016
        bg:remove()
2017
        bp:remove()
2018
end
2019
 
2020
function swing(mouse)
2021
        attach()
2022
        local mouseHit = mouse
2023
        local Orig = torso.CFrame
2024
        local bg = Add.BG(torso)
2025
        local bp = Add.BP(torso)
2026
        bp.position = Orig.p
2027
        local CF = ComputePos(Orig.p, mouseHit)
2028
        local CF2 = CF
2029
        bg.cframe = CF2
2030
        PlaySound(slash)
2031
        for i = 0, 1, Prop.AS*1.5 do
2032
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
2033
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
2034
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
2035
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
2036
                HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
2037
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
2038
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
2039
                wait()
2040
        end
2041
        Hurt = true
2042
        StartEffect(maintip)
2043
        for i = 0, 1, Prop.AS*1.3 do
2044
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
2045
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
2046
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
2047
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
2048
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
2049
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
2050
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
2051
                wait()
2052
        end
2053
        EndEffect()
2054
        Hurt = false
2055
        for i = 0, 1, Prop.AS*0.8 do
2056
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
2057
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
2058
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
2059
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
2060
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
2061
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
2062
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
2063
                wait()
2064
        end
2065
        normal()
2066
        bg:remove()
2067
        bp:remove()
2068
end
2069
 
2070
function stab(mouse)
2071
        attach()
2072
        local mouseHit = mouse
2073
        local Orig = torso.CFrame
2074
        local bg = Add.BG(torso)
2075
        local bp = Add.BP(torso)
2076
        bp.position = Orig.p
2077
        local CF = ComputePos(Orig.p, mouseHit)
2078
        local CF2 = CF
2079
        bg.cframe = CF2
2080
        PlaySound(slash)
2081
        for i = 0, 1, Prop.AS do
2082
                RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
2083
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
2084
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
2085
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
2086
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
2087
                neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
2088
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
2089
                wait()
2090
        end
2091
        StartEffect(maintip)
2092
        Hurt = true
2093
        bp.position = CF * CFrame.new(0, 0, -0.6).p
2094
        for i = 0, 1, Prop.AS*1.5 do
2095
                RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
2096
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
2097
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
2098
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
2099
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
2100
                neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
2101
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
2102
                wait()
2103
        end
2104
        Hurt = false
2105
        EndEffect()
2106
        bp.position = CF.p
2107
        for i = 0, 1, Prop.AS*1.1 do
2108
                RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
2109
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
2110
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
2111
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
2112
                HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
2113
                neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
2114
                bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
2115
                wait()
2116
        end
2117
        normal()
2118
        bg:remove()
2119
        bp:remove()
2120
end
2121
 
2122
function epicsmashfunc(hit)
2123
        local ch = hit.Parent
2124
        local h = getHumanoid(ch)
2125
        local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
2126
        return h, t, head
2127
end
2128
 
2129
function epicsmash(mouse)
2130
        if Prop.Rage >= 50 then
2131
        attach()
2132
        local mouseHit = mouse
2133
        local Orig = torso.CFrame
2134
        local bg = Add.BG(torso)
2135
        local bp = Add.BP(torso)
2136
        bp.position = Orig.p
2137
        local CF = ComputePos(Orig.p, mouseHit)
2138
        bg.cframe = CF
2139
        local hu, to, head = nil, nil, nil
2140
        local Epic = true
2141
        local conn = Lleg.Touched:connect(function(hit)
2142
                if Epic then
2143
                        hu, to, head = epicsmashfunc(hit)
2144
                        if hu and to and head then Epic = false end
2145
                end
2146
        end)
2147
        PlaySound(slash)
2148
        for i = 0, 1, 0.12 do
2149
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
2150
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
2151
                RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
2152
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
2153
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
2154
                neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
2155
                bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
2156
                wait()
2157
        end
2158
        conn:disconnect()
2159
        if hu and to and head then
2160
                Prop.Rage = Prop.Rage - 50
2161
                hu.PlatformStand = true
2162
                local bg2 = Add.BG(to)
2163
                bg2.P = 6000
2164
                bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
2165
                local bp2 = Add.BP(to)
2166
                bp2.position = CF * CFrame.new(-1, -4, -4).p
2167
                bp2.P = 5000
2168
                wait(0.1)
2169
                for i = 0, 1, 0.045 do
2170
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
2171
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
2172
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
2173
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
2174
                        HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
2175
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
2176
                        bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
2177
                        wait()
2178
                end
2179
                PlaySound(slash)
2180
                bp2:remove()
2181
                bg2:remove()
2182
                wait(0.2)
2183
                StartEffect(maintip)
2184
                for i = 0, 1, 0.1 do
2185
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
2186
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
2187
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
2188
                        LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
2189
                        HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
2190
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
2191
                        bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
2192
                        wait()
2193
                end
2194
                coroutine.resume(coroutine.create(function()
2195
                        local frr = Cam.CoordinateFrame
2196
                        for i = 1, math.random(3,6) do
2197
                                wait()
2198
                                Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
2199
                        end
2200
                end))
2201
                PlaySound(smashsound)
2202
                EndEffect()
2203
                local pos = head.Position
2204
                if (pos - maintip.Position).magnitude < 2 then
2205
                damage(hu, head, 0.3, hu.Health, hu.Health)
2206
                head:remove()
2207
                PlaySound(hitsound)
2208
                for i = 1, math.random(7, 17) do
2209
                        local hmm = math.random(1,6)
2210
                        if hmm < 6 then
2211
                                local cols = {"Bright red", "Really red"}
2212
                                local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
2213
                                p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
2214
                                p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
2215
                                p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
2216
                        else
2217
                                local cols = {"Institutional white", "White"}
2218
                                local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
2219
                                p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
2220
                                p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
2221
                                p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
2222
                        end
2223
                end
2224
                end
2225
                for i = 0, 1, 0.06 do
2226
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
2227
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
2228
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
2229
                        LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
2230
                        HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
2231
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
2232
                        bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
2233
                        wait()
2234
                end
2235
        else
2236
                for i = 0, 1, 0.08 do
2237
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
2238
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
2239
                        RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
2240
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
2241
                        HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
2242
                        neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
2243
                        bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
2244
                        wait()
2245
                end
2246
                bg:remove()
2247
                bp:remove()
2248
                normal()
2249
        end
2250
        normal()
2251
        bg:remove()
2252
        bp:remove()
2253
        end
2254
end
2255
 
2256
 
2257
function shockwave(mouse)
2258
        local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
2259
        if Prop.Rage >= 80 and t then
2260
        Prop.Rage = Prop.Rage - 80
2261
        attach()
2262
        local mouseHit = mouse
2263
        local Orig = torso.CFrame
2264
        local bg = Add.BG(torso)
2265
        local bp = Add.BP(torso)
2266
        bp.position = Orig.p
2267
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2268
        bp.P = 5000
2269
        local CF = ComputePos(Orig.p, mouseHit)
2270
        bg.cframe = CF
2271
        PlaySound(charge)
2272
        for i = 0, 1, 0.07 do
2273
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
2274
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
2275
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
2276
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
2277
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
2278
                neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
2279
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2280
                bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
2281
                wait()
2282
        end
2283
        for i = 0, 1, 0.04 do
2284
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
2285
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
2286
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
2287
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
2288
                HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
2289
                neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
2290
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2291
                bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
2292
                wait()
2293
        end
2294
        bp.P = 12001
2295
        wait(0.1)
2296
        StartEffect(maintip)
2297
        PlaySound(slash)
2298
        for i = 0, 1, 0.1 do
2299
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
2300
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
2301
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
2302
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
2303
                HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
2304
                neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
2305
                bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
2306
                bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
2307
                wait()
2308
        end
2309
        coroutine.resume(coroutine.create(function()
2310
                local frr = Cam.CoordinateFrame
2311
                for i = 1, math.random(10,16) do
2312
                        wait()
2313
                        Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
2314
                end
2315
        end))
2316
        PlaySound(smashsound)
2317
        local pos = CF * CFrame.new(-2, -3, -3).p
2318
        EndEffect()
2319
        local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
2320
        p.CFrame = CFrame.new(pos)
2321
        local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
2322
        p2.CFrame = CFrame.new(pos)
2323
        local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
2324
        p3.CFrame = CFrame.new(pos)
2325
        local m3 = Instance.new("SpecialMesh",p3)
2326
        m3.MeshType = "Sphere"
2327
        PlaySound(boom)
2328
        local m2 = Instance.new("CylinderMesh",p2)
2329
        local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
2330
        local tab = {}
2331
        coroutine.resume(coroutine.create(function()
2332
                for x = 0, 1.04, 0.04 do
2333
                        wait()
2334
                        local thing = 33*x
2335
                        m.Scale = Vector3.new(21*x, 5*x, 21*x)
2336
                        m2.Scale = Vector3.new(thing, 1, thing)
2337
                        m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
2338
                        p.Transparency = x
2339
                        p2.Transparency = x
2340
                        p3.Transparency = x
2341
                        for i, v in pairs(workspace:children()) do
2342
                                local h = getHumanoid(v)
2343
                                local to = v:findFirstChild("Torso")
2344
                                if h ~= nil and to ~= nil and find(tab, v) == nil then
2345
                                        if (to.Position - pos).magnitude < (thing/2) then
2346
                                                damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
2347
                                                to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
2348
                                                to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
2349
                                                h.PlatformStand = true
2350
                                                table.insert(tab, v)
2351
                                                coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
2352
                                        end
2353
                                end
2354
                        end
2355
                end
2356
                p:remove()
2357
                p2:remove()
2358
                p3:remove()
2359
        end))
2360
        wait(0.8)
2361
        for i = 0, 1, Prop.AS*0.8 do
2362
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
2363
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
2364
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
2365
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
2366
                HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
2367
                neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
2368
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2369
                bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
2370
                wait()
2371
        end
2372
        normal()
2373
        bg:remove()
2374
        bp:remove()
2375
        end
2376
end
2377
 
2378
function flipsmash(mouse)
2379
        local Orig = torso.CFrame
2380
        local mouseHit = mouse
2381
        local CF = ComputePos(Orig.p, mouseHit)
2382
        local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
2383
        local ahp = (CF * CFrame.new(0, 0, -14.5))
2384
        local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
2385
        if t and t2 and Prop.Rage >= 90 then
2386
        Prop.Rage = Prop.Rage - 90
2387
        attach()
2388
        local bg = Add.BG(torso)
2389
        local bp = Add.BP(torso)
2390
        bp.position = Orig.p
2391
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2392
        bg.cframe = CF
2393
        local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
2394
        for i = 0, 1, 0.08 do
2395
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
2396
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
2397
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
2398
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
2399
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
2400
                neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
2401
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2402
                bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
2403
                wait()
2404
        end
2405
        wait(0.15)
2406
        hum.PlatformStand = true
2407
        for i = 0, 1, 0.13 do
2408
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
2409
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
2410
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
2411
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
2412
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
2413
                neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
2414
                bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
2415
                bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
2416
                wait()
2417
        end
2418
        PlaySound(slash)
2419
        for i = 0, 1, 0.13 do
2420
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
2421
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
2422
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
2423
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
2424
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
2425
                neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
2426
                bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
2427
                bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
2428
                wait()
2429
        end
2430
        StartEffect(maintip)
2431
        PlaySound(slash)
2432
        for i = 0, 1, 0.06 do
2433
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
2434
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
2435
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
2436
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
2437
                HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
2438
                neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
2439
                bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
2440
                bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
2441
                wait()
2442
        end
2443
        coroutine.resume(coroutine.create(function()
2444
                local frr = Cam.CoordinateFrame
2445
                for i = 1, math.random(13,20) do
2446
                        wait()
2447
                        Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
2448
                end
2449
        end))
2450
        PlaySound(smashsound)
2451
        PlaySound(boomboom)
2452
        EndEffect()
2453
        local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
2454
        local siz = math.random(65,115)/10
2455
        local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
2456
        partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
2457
        local decc = Instance.new("Decal",partie)
2458
        decc.Shiny = 0
2459
        decc.Specular = 0
2460
        decc.Texture = "http://www.roblox.com/asset/?id=49173398"
2461
        decc.Face = "Top"
2462
        local count = 0
2463
        for i, v in pairs(workspace:children()) do
2464
                local h = getHumanoid(v)
2465
                local to = v:findFirstChild("Torso")
2466
                if h ~= nil and to ~= nil then
2467
                        if (to.Position - poo).magnitude < 15 then
2468
                                count = count + 1
2469
                                local Maxhp = h.MaxHealth
2470
                                if Maxhp > 5000 then Maxhp = 5000 end
2471
                                damage(h, to, 0.5, 0, Maxhp+5)
2472
                                to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
2473
                                to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
2474
                                to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2475
                                h.PlatformStand = true
2476
                                coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
2477
                                if count >= 2 then break end
2478
                        end
2479
                end
2480
        end
2481
        coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
2482
        wait(0.6)
2483
        for i = 0, 1, 0.06 do
2484
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
2485
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
2486
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
2487
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
2488
                HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
2489
                neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
2490
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2491
                bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
2492
                wait()
2493
        end
2494
        hum.PlatformStand = false
2495
        normal()
2496
        bg:remove()
2497
        bp:remove()
2498
        end
2499
end
2500
 
2501
function spin(mouse)
2502
        attach()
2503
        local mouseHit = mouse
2504
        local Orig = torso.CFrame
2505
        local CF = ComputePos(Orig.p, mouseHit)
2506
        local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
2507
        if t then
2508
        local bg = Add.BG(torso)
2509
        local bp = Add.BP(torso)
2510
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2511
        bp.position = Orig.p
2512
        bg.cframe = CF
2513
        PlaySound(slash)
2514
        for i = 0, 1, 0.11 do
2515
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
2516
                RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
2517
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
2518
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
2519
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
2520
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
2521
                neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
2522
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2523
                wait()
2524
        end
2525
        local posg = CF * CFrame.new(0, -0.6, -4)
2526
        PlaySound(hitsound, 0.9)
2527
        for i = 0, 1, 0.13 do
2528
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
2529
                RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
2530
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
2531
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
2532
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
2533
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
2534
                neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
2535
                bg.cframe = CF * CFrame.Angles(0, 0, 0)
2536
                bp.position = CF * CFrame.new(0, 1*i, -2*i).p
2537
                wait()
2538
        end
2539
        hum.PlatformStand = true
2540
        bg.Parent = handle
2541
        bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
2542
        bp.Parent = handle
2543
        bp.position = posg.p
2544
        StartEffect(Lleg)
2545
        Leghurt = true
2546
        PlaySound(slash)
2547
        for i = 0, 1, 0.09 do
2548
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
2549
                RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
2550
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
2551
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
2552
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
2553
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
2554
                neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
2555
                bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
2556
                wait()
2557
        end
2558
        for i = 0, 1, 0.055 do
2559
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
2560
                RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
2561
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
2562
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
2563
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
2564
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
2565
                neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
2566
                bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
2567
                wait()
2568
        end
2569
        EndEffect()
2570
        Leghurt = false
2571
        for i = 0, 1, 0.12 do
2572
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
2573
                RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
2574
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
2575
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
2576
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
2577
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
2578
                neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
2579
                bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
2580
                wait()
2581
        end
2582
        bg.Parent = torso
2583
        bp.Parent = torso
2584
        bg.cframe = CF
2585
        for i = 0, 1, 0.14 do
2586
                RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
2587
                RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
2588
                LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
2589
                RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
2590
                LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
2591
                HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
2592
                neck.C0 = necko * CFrame.Angles(0, 0, 0)
2593
                bp.position = CF * CFrame.new(0, 0, -2+1*i).p
2594
                bg.cframe = CF
2595
                wait()
2596
        end
2597
        hum.PlatformStand = false
2598
        normal()
2599
        bg:remove()
2600
        bp:remove()
2601
        end
2602
end
2603
 
2604
function rest()
2605
        local Orig = torso.CFrame
2606
        local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
2607
        local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
2608
        if t then
2609
        attach()
2610
        local bg = Add.BG(torso)
2611
        local bp = Add.BP(torso)
2612
        bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
2613
        bp.position = CF.p
2614
        bg.cframe = CF
2615
        local cen = CF * CFrame.new(0, -2.5, 0)
2616
        RestingAnim = true
2617
        hum.PlatformStand = true
2618
        local standup = function()
2619
                Resting = false
2620
                bp.Parent = torso
2621
                cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
2622
                for i = 1, 0, -0.12 do
2623
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
2624
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
2625
                        RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
2626
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
2627
                        neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
2628
                        HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
2629
                        bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
2630
                        bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
2631
                        wait()
2632
                end
2633
                for i = 1, 0, -0.17 do
2634
                        RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
2635
                        LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
2636
                        RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
2637
                        LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
2638
                        neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
2639
                        HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
2640
                        bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
2641
                        bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
2642
                        wait()
2643
                end
2644
                hum.PlatformStand = false
2645
                bg:remove()
2646
                bp:remove()
2647
                normal()
2648
                Able = true
2649
                RestingAnim = false
2650
        end
2651
        local connec = hum.Changed:connect(function()
2652
                if hum.PlatformStand == false then
2653
                        coroutine.resume(coroutine.create(function()
2654
                                standup()
2655
                        end))
2656
                        standup = nil
2657
                        connec:disconnect()
2658
                end
2659
        end)
2660
        local lasthp = hum.Health
2661
        local conn = hum.HealthChanged:connect(function(hp)
2662
                if lasthp - hp > 0.8 then
2663
                        hum.PlatformStand = false
2664
                        conn:disconnect()
2665
                end
2666
                lasthp = hp
2667
        end)
2668
        coroutine.resume(coroutine.create(function()
2669
                repeat wait() until Resting
2670
                while Resting do
2671
                        wait()
2672
                        if torso.Velocity.magnitude > 4 then
2673
                                hum.PlatformStand = false
2674
                                break
2675
                        end
2676
                end
2677
        end))
2678
        for i = 0, 1, 0.1 do
2679
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
2680
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
2681
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
2682
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
2683
                neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
2684
                HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
2685
                bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
2686
                bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
2687
                wait()
2688
        end
2689
        for i = 0, 1, 0.07 do
2690
                RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
2691
                LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
2692
                RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
2693
                LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
2694
                neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
2695
                HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
2696
                bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
2697
                bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
2698
                wait()
2699
        end
2700
        Resting = true
2701
        coroutine.resume(coroutine.create(function()
2702
                wait(0.4)
2703
                bp.Parent = nil
2704
        end))
2705
        coroutine.resume(coroutine.create(function()
2706
                while Resting and selected do
2707
                        wait(math.random(350,800)/1000)
2708
                        hum.Health = hum.Health + math.random(1,2)
2709
                        Prop.Rage = Prop.Rage + 1
2710
                end
2711
                hum.PlatformStand = false
2712
        end))
2713
        end
2714
end
2715
 
2716
function select(mouse)
2717
        mouse.Icon = MouseIc
2718
        selectanim()
2719
        selected = true
2720
        mouse.Button1Down:connect(function()
2721
                if Able and RestingAnim == false and hum.Sit == false then
2722
                        Able = false
2723
                        swing(mouse.Hit.p)
2724
                        Able = true
2725
                end
2726
        end)
2727
        mouse.Button1Down:connect(function()
2728
                mouse.Icon = MouseDo
2729
                mouse.Button1Up:wait()
2730
                mouse.Icon = MouseIc
2731
        end)
2732
        mouse.KeyDown:connect(function(key)
2733
                key = key:lower()
2734
                if Able and RestingAnim == false and hum.Sit == false then
2735
                if key == "q" then
2736
                        Able = false
2737
                        smash(mouse.Hit.p)
2738
                        Able = true
2739
                elseif key == "e" then
2740
                        Able = false
2741
                        swing(mouse.Hit.p)
2742
                        Able = true
2743
                elseif key == "r" then
2744
                        Able = false
2745
                        stab(mouse.Hit.p)
2746
                        Able = true
2747
                elseif key == "f" then
2748
                        Able = false
2749
                        epicsmash(mouse.Hit.p)
2750
                        Able = true
2751
                elseif key == "z" then
2752
                        Able = false
2753
                        shockwave(mouse.Hit.p)
2754
                        Able = true
2755
                elseif key == "x" then
2756
                        Able = false
2757
                        flipsmash(mouse.Hit.p)
2758
                        Able = true
2759
                elseif key == "t" then
2760
                        Able = false
2761
                        spin(mouse.Hit.p)
2762
                        Able = true
2763
                end
2764
                end
2765
                if Able then
2766
                        if key == "g" and AbleG then
2767
                                AbleG = false
2768
                                if Resting == true then
2769
                                        Resting = false
2770
                                else
2771
                                        rest()
2772
                                end
2773
                                wait(0.8)
2774
                                AbleG = true
2775
                        end
2776
                end
2777
        end)
2778
end
2779
 
2780
function deselect(mouse)
2781
        selected = false
2782
        deselanim()
2783
end
2784
bin.Selected:connect(select)
2785
bin.Deselected:connect(deselect)