View difference between Paste ID: ubvKNZhi and FSH0S4C2
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,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").LocalPlayer
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local Mouse = Player:GetMouse()
66
    local UIS = game:GetService("UserInputService")
67
    local input = function(io,a)
68
        if a then return end
69
        --Since InputObject is a client-side instance, we create and pass table instead
70
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
    end
72
    UIS.InputBegan:Connect(input)
73
    UIS.InputEnded:Connect(input)
74
 
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
 
85
    ----Sandboxed game object that allows the usage of client-side methods and services
86
    --Real game object
87
    local _rg = game
88
 
89
    --Metatable for fake service
90
    local fsmt = {
91
        __index = function(self,k)
92
            local s = rawget(self,"_RealService")
93
            if s then return s[k] end
94
        end,
95
        __newindex = function(self,k,v)
96
            local s = rawget(self,"_RealService")
97
            if s then s[k]=v end
98
        end,
99
        __call = function(self,...)
100
            local s = rawget(self,"_RealService")
101
            if s then return s(...) end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return self[s]
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
    }
120
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
    g.service = g.GetService
122
 
123
    setmetatable(g,{
124
        __index=function(self,s)
125
            return _rg:GetService(s) or typeof(_rg[s])=="function"
126
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
127
        end,
128
        __newindex = fsmt.__newindex,
129
        __call = fsmt.__call
130
    })
131
    --Changing owner to fake player object to support owner:GetMouse()
132
    game,owner = g,g.Players.LocalPlayer
133
end
134
wait(0.016666666666667)
135
Effects = {}
136
local Player = game.Players.localPlayer
137
local Character = Player.Character
138
local Humanoid = Character.Humanoid
139
local mouse = Player:GetMouse()
140
local m = Instance.new("Model", Character)
141
m.Name = "WeaponModel"
142
local LeftArm = Character["Left Arm"]
143
local RightArm = Character["Right Arm"]
144
local LeftLeg = Character["Left Leg"]
145
local RightLeg = Character["Right Leg"]
146
local Head = Character.Head
147
local Torso = Character.Torso
148
local cam = game.Workspace.CurrentCamera
149
local RootPart = Character.HumanoidRootPart
150
local RootJoint = RootPart.RootJoint
151
local equipped = false
152
local attack = false
153
local Anim = "Idle"
154
local idle = 0
155
local attacktype = 1
156
local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
157
local velocity = RootPart.Velocity.y
158
local sine = 0
159
local change = 1
160
local grabbed = false
161
local cf = CFrame.new
162
local mr = math.rad
163
local angles = CFrame.Angles
164
local ud = UDim2.new
165
local vt = Vector3.new
166
local c3 = Color3.new
167
local mana = 0
168
local mananum = 0
169
local it = Instance.new
170
local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
171
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
172
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
173
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
174
xenabled = true
175
cenabled = true
176
venabled = true
177
zenabled = true
178
RSH = nil
179
RW = Instance.new("Weld")
180
LW = Instance.new("Weld")
181
RH = Torso["Right Hip"]
182
LH = Torso["Left Hip"]
183
RSH = Torso["Right Shoulder"]
184
LSH = Torso["Left Shoulder"]
185
RSH.Parent = nil
186
LSH.Parent = nil
187
RW.Name = "RW"
188
RW.Part0 = Torso
189
RW.C0 = cf(1.5, 0.5, 0)
190
RW.C1 = cf(0, 0.5, 0)
191
RW.Part1 = RightArm
192
RW.Parent = Torso
193
LW.Name = "LW"
194
LW.Part0 = Torso
195
LW.C0 = cf(-1.5, 0.5, 0)
196
LW.C1 = cf(0, 0.5, 0)
197
LW.Part1 = LeftArm
198
LW.Parent = Torso
199
clerp = function(a, b, t)
200
  return a:lerp(b, t)
201
end
202
203
204
----------------------------------------------------
205
z = Instance.new("Sound", Character)
206
z.SoundId = "rbxassetid://428255459"--
207
z.Looped = true
208
z.Pitch = 1
209
z.Volume = 1
210
wait(.1)
211
z:Play()
212
----------------------------------------------------
213
214
ArtificialHB = Instance.new("BindableEvent", script)
215
ArtificialHB.Name = "Heartbeat"
216
script:WaitForChild("Heartbeat")
217
  frame = 0.016666666666667
218
tf = 0
219
allowframeloss = false
220
tossremainder = false
221
lastframe = tick()
222
script.Heartbeat:Fire()
223
game:GetService("RunService").Heartbeat:connect(function(s, p)
224
  tf = tf + s
225
  if frame <= tf then
226
    if allowframeloss then
227
      script.Heartbeat:Fire()
228
      lastframe = tick()
229
    else
230
      for i = 1, math.floor(tf / frame) do
231
        script.Heartbeat:Fire()
232
      end
233
      lastframe = tick()
234
    end
235
    if tossremainder then
236
      tf = 0
237
    else
238
      tf = tf - frame * math.floor(tf / frame)
239-
			game["Run Service"].RenderStepped:wait()
239+
240
  end
241
end
242
)
243
swait = function(num)
244
  if num == 0 or num == nil then
245
    ArtificialHB.Event:wait()
246
  else
247
    for i = 0, num do
248
      ArtificialHB.Event:wait()
249
    end
250
  end
251
end
252
253
254
255
256
257
258
Magik = function(part)
259
	Spawn(function()
260-
			game["Run Service"].RenderStepped:wait()
260+
261
			return a+(b-a)*c	
262
		end
263
		local function rndRange(rng)
264
			return math.random(-rng*1000,rng*1000)/1000	
265
		end
266
		local magik = Instance.new("Part", part)
267
		magik.Anchored = true
268
		magik.Locked = true
269
		magik.Material = "Neon"
270
		magik.FormFactor = "Custom"
271
		magik.Size = Vector3.new(1.2, 1.2, 1.2)
272
		magik.TopSurface = "Smooth"
273
		magik.BottomSurface = "Smooth"
274
		magik.Transparency = 0
275
		magik.CanCollide = false
276
277
             magik.BrickColor = BrickColor.new("Royal purple")
278
		
279
		local mr = math.rad
280
		local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
281
		local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
282
		magik.CFrame = cf
283
		for i = 0, 1, .05 do
284
			local newTrans = lerp(.8, 1, i)
285
			local ns = lerp(1,1.2,i)
286
			magik.Transparency = newTrans
287
			magik.Size = Vector3.new(ns,ns,ns)
288
			magik.CFrame = cf
289
			wait()
290
	    end
291
		magik:Destroy()
292
		wait()
293-
			game["Run Service"].RenderStepped:wait()
293+
294
end
295
----------------------------------------------------
296
Magik2 = function(part)
297
	Spawn(function()
298
		local function lerp(a,b,c)
299
			return a+(b-a)*c	
300
		end
301
		local function rndRange(rng)
302
			return math.random(-rng*1000,rng*1000)/1000	
303
		end
304
		local magik2 = Instance.new("Part",part)
305
		magik2.Anchored = true
306
		magik2.Locked = true
307
		magik2.FormFactor = "Custom"
308
		magik2.Size = Vector3.new(1.2, 1.2, 1.2)
309
		magik2.TopSurface = "Smooth"
310
		magik2.BottomSurface = "Smooth"
311-
game["Run Service"].RenderStepped:connect(function(_)
311+
312
		magik2.Material = "Neon"
313
		magik2.CanCollide = false
314
315
316
        magik2.BrickColor = BrickColor.new("Really black")
317
318
319
		local mr = math.rad
320
		local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
321
		local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
322
		magik2.CFrame = cf
323
		for i = 0, 1, .05 do
324
			local newTrans = lerp(.8, 1, i)
325
			local ns = lerp(1,1.2,i)
326
			magik2.Transparency = newTrans
327
			magik2.Size = Vector3.new(ns,ns,ns)
328
			magik2.CFrame = cf
329
			wait()
330
	    end
331
		magik2:Destroy()
332
    end)
333
end
334
335
336
337
Spawn(function()
338
	while wait(.1) do
339
		Magik(RightArm)	
340
	end
341
end)
342
343
Spawn(function()
344
	while wait(.1) do
345
		Magik2(RightArm)	
346
	end
347
end)
348
349
350
351
352
353
354
355
356
FloatPart = function()
357
	local Part = Instance.new('Part',Torso)
358
	Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
359
	Part.Anchored = true
360
	Part.Material = 'Neon'
361
	Part.CanCollide = false
362
	Part.BrickColor = BrickColor.new(PrimaryColor)
363
	local Mesh = Instance.new('SpecialMesh',Part)
364
	Mesh.Scale = Vector3.new(4,4,.2)
365
	Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
366
	Mesh.VertexColor = Vector3.new(0,170,255)
367
	spawn(function()
368
		for i = 1,30 do
369
			Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
370
			Part.Transparency = Part.Transparency + .035
371
			game["Run Service"].Stepped:wait()
372
		end
373
		Part:Destroy()
374
	end)
375
end;
376
377
DubPart = function()
378
	local Part = Instance.new('Part',Torso)
379
	Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
380
	Part.Anchored = true
381
	Part.CanCollide = false
382
	Part.Material = 'Neon'
383
	Part.BrickColor = BrickColor.new(SecondaryColor)
384
	local Mesh = Instance.new('SpecialMesh',Part)
385
	Mesh.Scale = Vector3.new(7,7,.2)
386
	Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
387
	Mesh.VertexColor = Vector3.new(0,170,255)
388
	spawn(function()
389
		for i = 1,30 do
390
			Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
391
			Part.Transparency = Part.Transparency + .035
392
			game["Run Service"].Stepped:wait()
393
		end
394
		Part:Destroy()
395
	end)
396
end;
397
398
Fade = function(Item,t)
399
	spawn(function()
400
		for i = 1,20 do
401
			Item.Transparency = Item.Transparency + .05
402
			if t then
403
				wait(t)
404
			else 
405
				wait()
406
			end
407
		end
408
		Item:Destroy()
409
	end)
410
end
411
412
Particle = function(PrimaryColor)
413
	local Part = Instance.new('Part',Torso)
414
	Part.BrickColor = BrickColor.new(PrimaryColor)
415
	Part.Anchored = true
416
	Part.Transparency = .3
417
	Part.CanCollide = false
418
	Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
419
	local Mesh = Instance.new('BlockMesh',Part)
420
	Mesh.Scale = Vector3.new(.05,.1,.1)
421
	spawn(function()
422
		for i = 1,40 do
423
			Part.Transparency = Part.Transparency + .0125
424
			Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
425
			game["Run Service"].Stepped:wait()
426
		end
427
		Part:Destroy()
428
	end)
429
end;
430
431
--[[spawn(function()
432
	while wait() do
433
		wait(.05)
434
		FloatPart()
435
		wait(.08)
436
		FloatPart()
437
		wait(.05)
438
		DubPart()
439
		wait(.08)
440
	end
441
end)]]
442
443
game["Run Service"].Stepped:connect(function(_)
444
	Particle("Royal purple")
445
	Particle("Really black")
446
	--Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
447
end)
448
449
450
451
particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
452
  local fp = it("ParticleEmitter")
453
  fp.Parent = parent
454
  fp.Color = cs(col1, col2)
455
  fp.LightEmission = lightemis
456
  fp.Size = size
457
  fp.Texture = texture
458
  fp.Transparency = transparency
459
  fp.ZOffset = zoffset
460
  fp.Acceleration = accel
461
  fp.Drag = drag
462
  fp.LockedToPart = ltp
463
  fp.VelocityInheritance = velinher
464
  fp.EmissionDirection = emisdir
465
  fp.Enabled = enabled
466
  fp.Lifetime = lifetime
467
  fp.Rate = rate
468
  fp.Rotation = rotation
469
  fp.RotSpeed = rotspeed
470
  fp.Speed = speed
471
  fp.VelocitySpread = velspread
472
  return fp
473
end
474
475
476
477
478
local fengui = it("GuiMain")
479
fengui.Parent = Player.PlayerGui
480
fengui.Name = "WeaponGUI"
481
local fenframe1 = it("TextLabel")
482
fenframe1.Parent = fengui
483
fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
484
fenframe1.BackgroundTransparency = 0.3
485
fenframe1.BorderSizePixel = 5
486
fenframe1.BorderColor3 = Color3.new(1, 1, 1)
487
fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
488
fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
489
fenframe1.Text = "Z"
490
fenframe1.TextWrapped = true
491
fenframe1.FontSize = 7
492
fenframe1.TextColor3 = Color3.new(1, 1, 1)
493
local fenframe1a = it("TextLabel")
494
fenframe1a.Parent = fengui
495
fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
496
fenframe1a.BackgroundTransparency = 0.3
497
fenframe1a.BorderSizePixel = 5
498
fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
499
fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
500
fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
501
fenframe1a.Text = ""
502
local fenframe2 = it("TextLabel")
503
fenframe2.Parent = fengui
504
fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
505
fenframe2.BackgroundTransparency = 0.3
506
fenframe2.BorderSizePixel = 5
507
fenframe2.BorderColor3 = Color3.new(1, 1, 1)
508
fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
509
fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
510
fenframe2.Text = "X"
511
fenframe2.TextWrapped = true
512
fenframe2.FontSize = 7
513
fenframe2.TextColor3 = Color3.new(1, 1, 1)
514
local fenframe2a = it("TextLabel")
515
fenframe2a.Parent = fengui
516
fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
517
fenframe2a.BackgroundTransparency = 0.3
518
fenframe2a.BorderSizePixel = 5
519
fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
520
fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
521
fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
522
fenframe2a.Text = ""
523
local fenframe3 = it("TextLabel")
524
fenframe3.Parent = fengui
525
fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
526
fenframe3.BackgroundTransparency = 0.3
527
fenframe3.BorderSizePixel = 5
528
fenframe3.BorderColor3 = Color3.new(1, 1, 1)
529
fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
530
fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
531
fenframe3.Text = "C"
532
fenframe3.TextWrapped = true
533
fenframe3.FontSize = 7
534
fenframe3.TextColor3 = Color3.new(1, 1, 1)
535
local fenframe3a = it("TextLabel")
536
fenframe3a.Parent = fengui
537
fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
538
fenframe3a.BackgroundTransparency = 0.3
539
fenframe3a.BorderSizePixel = 5
540
fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
541
fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
542
fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
543
fenframe3a.Text = ""
544
local fenframe4 = it("TextLabel")
545
fenframe4.Parent = fengui
546
fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
547
fenframe4.BackgroundTransparency = 0.3
548
fenframe4.BorderSizePixel = 5
549
fenframe4.BorderColor3 = Color3.new(1, 1, 1)
550
fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
551
fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
552
fenframe4.Text = "V"
553
fenframe4.TextWrapped = true
554
fenframe4.FontSize = 7
555
fenframe4.TextColor3 = Color3.new(1, 1, 1)
556
local fenframe4a = it("TextLabel")
557
fenframe4a.Parent = fengui
558
fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
559
fenframe4a.BackgroundTransparency = 0.3
560
fenframe4a.BorderSizePixel = 5
561
fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
562
fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
563
fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
564
fenframe4a.Text = ""
565
fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
566
fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
567
fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
568
fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
569
local RbxUtility = LoadLibrary("RbxUtility")
570
local Create = RbxUtility.Create
571
RemoveOutlines = function(part)
572
  part.TopSurface = 10
573
end
574
575
CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
576
  local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
577
  RemoveOutlines(Part)
578
  return Part
579
end
580
581
CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
582
  local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
583
  if Mesh == "SpecialMesh" then
584
    Msh.MeshType = MeshType
585
    Msh.MeshId = MeshId
586
  end
587
  return Msh
588
end
589
590
CreateWeld = function(Parent, Part0, Part1, C0, C1)
591
  local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
592
  return Weld
593
end
594
595
Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
596
  if hit.Parent == nil then
597
    return 
598
  end
599
  local h = hit.Parent:FindFirstChild("Humanoid")
600
  for _,v in pairs(hit.Parent:children()) do
601
    if v:IsA("Humanoid") then
602
      h = v
603
    end
604
  end
605
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
606
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
607
      return 
608
    end
609
    local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
610
    game:GetService("Debris"):AddItem(c, 0.5)
611
    if HitSound ~= nil and HitPitch ~= nil then
612
      CreateSound(HitSound, hit, 1, HitPitch)
613
    end
614
    local Damage = math.random(minim, maxim)
615
    local blocked = false
616
    local block = hit.Parent:findFirstChild("Block")
617
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
618
      blocked = true
619
      block.Value = block.Value - 1
620
      print(block.Value)
621
    end
622
    if blocked == false then
623
      HitHealth = h.Health
624
      h.Health = h.Health - Damage
625
      if mana < 100 then
626
        mana = mana + math.random(5, 10)
627
      end
628
      if mana > 100 then
629
        mana = 100
630
      end
631
      if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
632
      end
633
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
634
    else
635
      h.Health = h.Health - Damage / 2
636
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
637
    end
638
    if Type == "Knockdown" then
639
      local hum = hit.Parent.Humanoid
640
      hum.PlatformStand = true
641
      coroutine.resume(coroutine.create(function(HHumanoid)
642
    swait(1)
643
    HHumanoid.PlatformStand = false
644
  end
645
), hum)
646
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
647
      local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
648
      local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
649
      game:GetService("Debris"):AddItem(bodvol, 0.5)
650
      game:GetService("Debris"):AddItem(rl, 0.5)
651
    else
652
      do
653
        if Type == "Normal" then
654
          local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
655
          if knockback > 0 then
656
            vp.Parent = hit.Parent.Torso
657
          end
658
          game:GetService("Debris"):AddItem(vp, 0.5)
659
        else
660
          do
661
            if Type == "Up" then
662
              local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
663
              game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
664
            else
665
              do
666
                if Type == "DarkUp" then
667
                  coroutine.resume(coroutine.create(function()
668
    for i = 0, 1, 0.1 do
669
      swait()
670
      BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
671
    end
672
  end
673
))
674
                  local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
675
                  game:GetService("Debris"):AddItem(bodyVelocity, 1)
676
                else
677
                  do
678
                    if Type == "Snare" then
679
                      local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
680
                      game:GetService("Debris"):AddItem(bp, 1)
681
                    else
682
                      do
683
                        if Type == "Freeze" then
684
                          local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
685
                          local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
686
                          hit.Parent.Torso.Anchored = true
687
                          coroutine.resume(coroutine.create(function(Part)
688
    swait(1.5)
689
    Part.Anchored = false
690
  end
691
), hit.Parent.Torso)
692
                          game:GetService("Debris"):AddItem(BodPos, 3)
693
                          game:GetService("Debris"):AddItem(BodGy, 3)
694
                        end
695
                        do
696
                          local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
697
                          game:GetService("Debris"):AddItem(debounce, Delay)
698
                          c = Instance.new("ObjectValue")
699
                          c.Name = "creator"
700
                          c.Value = Player
701
                          c.Parent = h
702
                          game:GetService("Debris"):AddItem(c, 0.5)
703
                        end
704
                      end
705
                    end
706
                  end
707
                end
708
              end
709
            end
710
          end
711
        end
712
      end
713
    end
714
  end
715
end
716
717
ShowDamage = function(Pos, Text, Time, Color)
718
  local Rate = 0.033333333333333
719
  if not Pos then
720
    local Pos = Vector3.new(0, 0, 0)
721
  end
722
  local Text = Text or ""
723
  local Time = Time or 2
724
  if not Color then
725
    local Color = Color3.new(1, 0, 1)
726
  end
727
  local EffectPart = CreatePart(workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
728
  EffectPart.Anchored = true
729
  local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
730
  local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
731
  game.Debris:AddItem(EffectPart, Time + 0.1)
732
  EffectPart.Parent = game:GetService("Workspace")
733
  delay(0, function()
734
    local Frames = Time / Rate
735
    for Frame = 1, Frames do
736
      wait(Rate)
737
      local Percent = Frame / Frames
738
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
739
      TextLabel.TextTransparency = Percent
740
    end
741
    if EffectPart and EffectPart.Parent then
742
      EffectPart:Destroy()
743
    end
744
  end
745
)
746
end
747
748
MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
749
  for _,c in pairs(workspace:children()) do
750
    local hum = c:findFirstChild("Humanoid")
751
    if hum ~= nil then
752
      local head = c:findFirstChild("Torso")
753
      if head ~= nil then
754
        local targ = head.Position - Part.Position
755
        local mag = targ.magnitude
756
        if mag <= magni and c.Name ~= Player.Name then
757
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
758
        end
759
      end
760
    end
761
  end
762
end
763
764
Handle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "Handle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
765
HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.982839942, 0.146006823, 0.234023571, 0.211453959, -0.977137685, 0.0221185088, -0.0402157828, -0.0313093588, -0.99870044, 0.976560295, 0.210289627, -0.0459168404))
766
CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
767
FakeHandle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "FakeHandle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
768
FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
769
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(0.200000003, 1, 0.200000003))
770
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.07288361e-006, 0.683865368, -4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
771
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(2, 0.5, 2))
772
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
773
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31791997, -0.975689411, 2.925138, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
774
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
775
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1))
776
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.4692868, -3.70743895, -1.52587891e-005, 0.916809797, -0.399324507, 1.15483999e-006, 0.399324447, 0.916809678, -4.00096178e-006, 5.56348823e-007, 4.12762165e-006, 1))
777
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
778
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
779
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31796861, -0.99111104, 3.62495184, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
780
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
781
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
782
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.64674854, -0.903340101, -0.354405403, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
783
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
784
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
785
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155968666, -0.981806874, 5.01632404, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
786
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
787
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
788
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.015683651, -0.99636519, 4.31590414, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
789
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
790
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
791
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.2746892, -0.975648642, 2.9260354, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
792
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
793
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
794
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.27468133, -0.991158009, 3.62575912, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
795
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
796
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
797
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155587196, -1.11407149, 4.663311, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
798
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
799
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
800
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0131573677, 0.00466442108, 4.61167336, -1.74657907e-006, -1.09747052e-005, -1.00000012, 0.764525652, -0.644593418, 5.77419996e-006, -0.644593358, -0.764525771, 9.49576497e-006))
801
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
802
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
803
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.6467495, -0.918762922, 0.345379829, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
804
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
805
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(0.200000003, 0.200000003, 0.200000003))
806
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00376915932, -3.44346094, -0.00172424316, -1.00000012, -1.70432031e-006, 1.69267878e-007, 1.70432031e-006, -1.00000012, -2.12341547e-007, 1.75088644e-007, -2.12341547e-007, 1.00000012))
807
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.300000012, 0.200000003))
808
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
809
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.31130219e-006, -3.5749507, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
810
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 0.400000006))
811
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 4.57000017, 0.200000003))
812
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.96046448e-007, -1.50000107, 9.53674316e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
813
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
814
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 1.16999996, 1))
815
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68149614, -0.0198745728, -1.09672546e-005, 0.0220478568, 0.999756992, -2.0749867e-006, -0.999756932, 0.0220478605, -1.48452818e-006, -1.42678618e-006, 2.10851431e-006, 1.00000012))
816
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
817
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
818
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71543217, -0.0690839291, -9.53674316e-006, 0.19052954, 0.981681645, -1.97067857e-006, -0.981681526, 0.190529525, -1.91386789e-006, -1.49046537e-006, 2.29105353e-006, 1.00000012))
819
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976))
820
Part22 = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part22", Vector3.new(1, 0.729999959, 1))
821
PartWeld = CreateWeld(m, FakeHandle, Part22, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.51120782, -3.69066477, -7.15255737e-006, 0.911903143, 0.410405785, -3.35276127e-007, -0.410405725, 0.911903143, -1.79186463e-006, -4.35044058e-007, 1.76206231e-006, 1.00000012))
822
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
823
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
824
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71087646, -0.0231897831, -6.19888306e-006, 0.318961442, 0.947767794, -1.48266554e-006, -0.947767675, 0.318961442, -2.70921737e-006, -2.10118014e-006, 2.26870179e-006, 1.00000012))
825
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.850000024))
826
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.769999981, 1))
827
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68154573, -0.4009372, -5.7220459e-006, 0.516243339, 0.856442034, -8.04662704e-007, -0.856442034, 0.516243339, -4.18536365e-006, -3.15741636e-006, 2.8423965e-006, 1.00000012))
828
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
829
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 2.57999992, 0.200000003))
830
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.4570694e-006, 1.91385686, 4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
831
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
832
Hitbox = CreatePart(m, Enum.Material.Marble, 0, 1, "Black", "Hitbox", Vector3.new(2.4000001, 3.67000008, 0.399999976))
833
HitboxWeld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.76720476, 3.04898357, 0.00860214233, -0.699169815, 0.713988841, 0.0371726528, -0.713755548, -0.700063348, 0.0215496495, 0.0414094217, -0.0114653222, 0.999076545))
834
rayCast = function(Position, Direction, Range, Ignore)
835
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
836
end
837
838
839
Spawn(function()
840
	while wait() do
841
		Magik(LeftArm)	
842
	end
843
end)
844
845
Spawn(function()
846
	while wait() do
847
		Magik2(LeftArm)	
848
	end
849
end)
850
851
852
CreateSound = function(id, parent, vol, pit, looped)
853
  coroutine.resume(coroutine.create(function()
854
    local sou = Instance.new("Sound", parent or workspace)
855
    sou.Volume = vol
856
    sou.Pitch = pit or 1
857
    sou.SoundId = id
858
    sou.Looped = looped
859
    swait()
860
    sou:play()
861
    game:GetService("Debris"):AddItem(sou, 6)
862
  end
863
))
864
end
865
866
867
local getclosest = function(obj, distance)
868
  local last, lastx = distance + 1, nil
869
  for i,v in pairs(workspace:GetChildren()) do
870
    if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
871
      local t = v.Torso
872
      local dist = t.Position - obj.Position.magnitude
873
      if dist <= distance and dist < last then
874
        last = dist
875
        lastx = v
876
      end
877
    end
878
  end
879
  return lastx
880
end
881
882
BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
883
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
884
  prt.Anchored = true
885
  prt.CFrame = cframe
886
  local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
887
  game:GetService("Debris"):AddItem(prt, 10)
888
  if Type == 1 or Type == nil then
889
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
890
  else
891
    if Type == 2 then
892
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
893
    end
894
  end
895
end
896
897
SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
898
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
899
  prt.Anchored = true
900
  prt.CFrame = cframe
901
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
902
  game:GetService("Debris"):AddItem(prt, 10)
903
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
904
end
905
906
RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
907
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
908
  prt.Anchored = true
909
  prt.CFrame = cframe * CFrame.new(x1, y1, z1)
910
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
911
  game:GetService("Debris"):AddItem(prt, 10)
912
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
913
end
914
915
CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
916
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
917
  prt.Anchored = true
918
  prt.CFrame = cframe
919
  local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
920
  game:GetService("Debris"):AddItem(prt, 10)
921
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
922
end
923
924
WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
925
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
926
  prt.Anchored = true
927
  prt.CFrame = cframe
928
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
929
  game:GetService("Debris"):AddItem(prt, 10)
930
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
931
end
932
933
SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
934
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
935
  prt.Anchored = true
936
  prt.CFrame = cframe
937
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
938
  game:GetService("Debris"):AddItem(prt, 10)
939
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
940
end
941
942
DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
943
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
944
  prt.Anchored = true
945
  prt.CFrame = cframe
946
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
947
  game:GetService("Debris"):AddItem(prt, 10)
948
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
949
end
950
951
BreakEffect = function(brickcolor, cframe, x1, y1, z1)
952
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
953
  prt.Anchored = true
954
  prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
955
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
956
  local num = math.random(10, 50) / 1000
957
  game:GetService("Debris"):AddItem(prt, 10)
958
  table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
959
end
960
961
attackone = function()
962
  attack = true
963
  for i = 0, 1, 0.1 do
964
    swait()
965
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
966
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
967
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
968
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
969
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
970
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
971
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
972
  end
973
  local con = Hitbox.Touched:connect(function(hit)
974
    Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
975
  end
976
)
977
  CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
978
  for i = 0, 1, 0.1 do
979
    swait()
980
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
981
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
982
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
983
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
984
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
985
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
986
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
987
  end
988
  con:disconnect()
989
  attack = false
990
end
991
992
Deathwish = function()
993
  attack = true
994
  CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
995
  for i = 0, 1, 0.05 do
996
    swait()
997
    WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
998
    BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
999
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
1000
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
1001
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
1002
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1003
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1004
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1005
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
1006
  end
1007
  MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp")
1008
  CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
1009
  BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
1010
  WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
1011
  for i = 0, 1, 0.05 do
1012
    swait()
1013
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
1014
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
1015
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
1016
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
1017
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1018
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1019
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
1020
  end
1021
  for i = 0, 1, 0.1 do
1022
    swait()
1023
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
1024
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3)
1025
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
1026
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
1027
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1028
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1029
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
1030
  end
1031
  MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
1032
  CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
1033
  SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
1034
  BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
1035
  WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
1036
  for i = 0, 1, 0.1 do
1037
    swait()
1038
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
1039
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3)
1040
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
1041
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1042
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1043
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1044
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
1045
  end
1046
  attack = false
1047
end
1048
1049
ChaosDriver = function()
1050
  attack = true
1051
  for i = 0, 1, 0.05 do
1052
    swait()
1053
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
1054
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
1055
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
1056
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
1057
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1058
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1059
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1060
  end
1061
  CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
1062
  coroutine.resume(coroutine.create(function()
1063
    for i = 1, 5 do
1064
      swait()
1065
      local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt())
1066
      ef.Anchored = true
1067
      ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
1068
      MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
1069
      game:GetService("Debris"):AddItem(ef, 0.5)
1070
      CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
1071
      DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07)
1072
      DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07)
1073
  SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
1074
  SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
1075
  SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
1076
  SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
1077
    end
1078
  end
1079
))
1080
  for i = 0, 1, 0.1 do
1081
    swait()
1082
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1083
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
1084
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1085
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1086
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
1087
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1088
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1089
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
1090
  end
1091
  attack = false
1092
end
1093
1094
attacktwo = function()
1095
  attack = true
1096
  soundn = true
1097
  for i = 0, 1, 0.1 do
1098
    swait()
1099
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1100
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1101
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
1102
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
1103
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1104
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1105
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1106
  end
1107
  local con = Hitbox.Touched:connect(function(hit)
1108
    Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
1109
  end
1110
)
1111
  CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
1112
  coroutine.resume(coroutine.create(function()
1113
    while soundn do
1114
      wait(0.3)
1115
      CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
1116
    end
1117
  end
1118
))
1119
  for i = 0, 1, 0.1 do
1120
    swait()
1121
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1122
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1123
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1124
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1125
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1126
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1127
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1128
  end
1129
  con:disconnect()
1130
  soundn = false
1131
  attack = false
1132
end
1133
1134
local soundn = false
1135
attackthree = function()
1136
  attack = true
1137
  soundn = true
1138
  for i = 0, 1, 0.1 do
1139
    swait()
1140
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1141
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1142
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
1143
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
1144
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1145
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1146
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1147
  end
1148
  local con = Hitbox.Touched:connect(function(hit)
1149
    Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
1150
  end
1151
)
1152
  CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
1153
  coroutine.resume(coroutine.create(function()
1154
    while soundn do
1155
      wait(0.3)
1156
      CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
1157
    end
1158
  end
1159
))
1160
  for i = 0, 1, 0.1 do
1161
    swait()
1162
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1163
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1164
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1165
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1166
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1167
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1168
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1169
  end
1170
  con:disconnect()
1171
  soundn = false
1172
  attack = false
1173
end
1174
1175
ThanatosDriver = function()
1176
  attack = true
1177
  for i = 0, 1, 0.1 do
1178
    swait()
1179
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1180
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1181
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
1182
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
1183
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1184
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1185
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1186
  end
1187
  local con = Hitbox.Touched:connect(function(hit)
1188
    Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
1189
  end
1190
)
1191
  CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
1192
  for i = 0, 1, 0.1 do
1193
    swait()
1194
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1195
    BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
1196
    DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
1197
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
1198
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
1199
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
1200
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
1201
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1202
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1203
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
1204
  end
1205
  con:disconnect()
1206
  attack = false
1207
end
1208
1209
LastResort = function()
1210
  attack = true
1211
  soundn = true
1212
  CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
1213
  MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
1214
  SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
1215
  SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
1216
  SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
1217
  SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
1218
  
1219
  RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
1220
  for i = 0, 1, 0.1 do
1221
    swait()
1222
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1223
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1224
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
1225
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
1226
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1227
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1228
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1229
  end
1230
  CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
1231
  coroutine.resume(coroutine.create(function()
1232
    while soundn do
1233
      wait(0.5)
1234
      CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
1235
    end
1236
  end
1237
))
1238
  for i = 0, 1, 0.1 do
1239
    swait()
1240
    MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
1241
    Torso.Velocity = RootPart.CFrame.lookVector * 100
1242
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1243
    BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
1244
    DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
1245
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1246
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1247
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1248
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1249
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1250
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1251
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1252
  end
1253
  for i = 0, 1, 0.1 do
1254
    swait()
1255
    MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
1256
    Torso.Velocity = RootPart.CFrame.lookVector * 100
1257
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1258
    BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
1259
    DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
1260
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1261
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1262
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1263
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1264
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1265
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1266
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1267
  end
1268
  soundn = false
1269
  attack = false
1270
end
1271
1272
ob1u = function()
1273
end
1274
1275
ob1d = function()
1276
  if attack == false and attacktype == 1 then
1277
    attacktype = 2
1278
    attackone()
1279
  else
1280
    if attack == false and attacktype == 2 then
1281
      attacktype = 3
1282
      attacktwo()
1283
    else
1284
      if attack == false and attacktype == 3 then
1285
        attacktype = 1
1286
        attackthree()
1287
      end
1288
    end
1289
  end
1290
end
1291
1292
key = function(k)
1293
  k = k:lower()
1294
  if attack == false and k == "z" and zenabled == true then
1295
    zenabled = false
1296
    coroutine.resume(coroutine.create(function()
1297
    for i = 1, 0, -0.02 do
1298
      swait()
1299
      fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1300
    end
1301-
rs.RenderStepped:connect(function()
1301+
1302-
	FPS = 1 / rs.RenderStepped:wait()
1302+
1303
  end
1304
))
1305
    ThanatosDriver()
1306
  else
1307
    if attack == false and k == "x" and xenabled == true then
1308
      xenabled = false
1309
      coroutine.resume(coroutine.create(function()
1310
    for i = 1, 0, -0.005 do
1311
      swait()
1312
      fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1313
    end
1314
    xenabled = true
1315
    fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
1316
  end
1317
))
1318
      LastResort()
1319
    else
1320
      if attack == false and k == "c" and cenabled == true then
1321
        cenabled = false
1322
        coroutine.resume(coroutine.create(function()
1323
    for i = 1, 0, -0.0025 do
1324
      swait()
1325
      fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1326
    end
1327
    cenabled = true
1328
    fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
1329
  end
1330
))
1331
        ChaosDriver()
1332
      else
1333
        if attack == false and k == "v" and venabled == true then
1334
          venabled = false
1335
          coroutine.resume(coroutine.create(function()
1336
    for i = 1, 0, -0.0005 do
1337
      swait()
1338
      fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1339
    end
1340
    venabled = true
1341
    fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
1342
  end
1343
))
1344
          Deathwish()
1345
        end
1346
      end
1347
    end
1348
  end
1349
end
1350
1351
s = function(mouse)
1352
  mouse.Button1Down:connect(function()
1353
    ob1d(mouse)
1354
  end
1355
)
1356
  mouse.Button1Up:connect(function()
1357
    ob1u(mouse)
1358
  end
1359
)
1360
  mouse.KeyDown:connect(key)
1361
end
1362
1363
s(mouse)
1364
1365
1366
1367
1368
1369
1370
rs = game:GetService'RunService'
1371
plrs = game:GetService'Players'
1372
lp = plrs.LocalPlayer
1373
c = lp.Character
1374
root = lp.Character.HumanoidRootPart
1375
human = c.Humanoid
1376
FPS = 0
1377
inf = 0
1378
opos1 = Vector3.new()
1379
opos2 = Vector3.new()
1380
opos3 = Vector3.new()
1381
waves = Instance.new("Model", c)
1382
res = Instance.new("Model", c) 
1383
   
1384
local function b()
1385
local t=tick();
1386
local l=t%1*3;
1387
local t=.5*math.pi*(l%1);
1388
if l<1 then
1389
return Color3.new(47,0,32);
1390
elseif l<2 then
1391
return Color3.new(47,0,35);
1392
else
1393
return Color3.new(0,0,0);
1394
end;
1395
end;               
1396
speedParts = function()
1397
	for i = 1, 4 do
1398
		local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -Hitbox.Velocity / 5) * (math.sin(tick()) + 2)
1399
		local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p
1400
		local opos
1401
		if i == 1 then
1402
			opos = opos1
1403
		elseif i == 2 then
1404
			opos = opos2
1405
		else
1406
			opos = opos3
1407
		end
1408
			local e
1409
			if #res:children() <= 3 then
1410
				e = Instance.new("Part")
1411
			else
1412
				e = res:FindFirstChild("Trail")
1413
			end
1414
			e.Parent = waves
1415
			e.Anchored = false
1416
			e.CanCollide = false
1417
			e.Transparency = 0
1418
			e.Material = "Neon"
1419
			e.Name = "Trail"
1420
			e.Color = b(); --Color = a();
1421
			e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01)
1422
			e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0)
1423
		if i == 1 then
1424
			opos1 = CFramepos
1425
		elseif i == 2 then
1426
			opos2 = CFramepos
1427
		else
1428
			opos3 = CFramepos
1429
		end
1430
	end
1431
end
1432
                                                
1433
rs.Stepped:connect(function()
1434
	FPS = 1 / rs.Stepped:wait()
1435
	for i, v in pairs (waves:children()) do
1436
		v.Transparency = v.Transparency + .05 / (FPS / 400)
1437
		if v.Transparency >= .98 then
1438
			v.Transparency = 1
1439
			v.Parent = res
1440
		end
1441
	end
1442
	inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400)
1443
	speedParts()
1444
end)
1445
1446
1447
1448
1449
1450
1451
while 1 do
1452
  swait()
1453
  Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
1454
  velocity = RootPart.Velocity.y
1455
  sine = sine + change
1456
  local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
1457
  if equipped == true or equipped == false then
1458
    if 1 < RootPart.Velocity.y and hit == nil then
1459
      Anim = "Jump"
1460
      if attack == false then
1461
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1462
        Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
1463
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
1464
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1465
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1466
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1467
      end
1468
    else
1469
      if RootPart.Velocity.y < -1 and hit == nil then
1470
        Anim = "Fall"
1471
        if attack == false then
1472
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1473
          Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
1474
          RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
1475
          LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1476
          RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1477
          LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1478
          FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
1479
        end
1480
      else
1481
        if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
1482
          Anim = "Idle"
1483
          if attack == false then
1484
            change = 1
1485
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.3)
1486
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(80)), 0.3)
1487
RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
1488
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
1489
RH.C0 = clerp(RH.C0, cf(1, -1.2 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), 0.3)
1490
LH.C0 = clerp(LH.C0, cf(-1.3, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
1491
FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(70 - 1 * math.cos((sine) / 9)), math.rad(70)), 0.3)
1492
          end
1493
        else
1494
          if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
1495
            Anim = "Walk"
1496
            if attack == false then
1497
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(10), math.rad(-5), math.rad(-30)), 0.3)
1498
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(30)), 0.3)
1499
RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
1500
LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
1501
RH.C0 = clerp(RH.C0, cf(1, -1, 0 + 0.5 * math.cos((sine) / 5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10 - 50 * math.cos((sine) / 5))), 0.3)
1502
LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5 - 0.5 * math.cos((sine) / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10 - 50 * math.cos((sine) / 5))), 0.3)
1503
FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(50 - 1 * math.cos((sine) / 9)), math.rad(120)), 0.3)
1504
            end
1505
          end
1506
        end
1507
      end
1508
    end
1509
  end
1510
  if 0 < #Effects then
1511
    for e = 1, #Effects do
1512
      if Effects[e] ~= nil then
1513
        local Thing = Effects[e]
1514
        if Thing ~= nil then
1515
          local Part = Thing[1]
1516
          local Mode = Thing[2]
1517
          local Delay = Thing[3]
1518
          local IncX = Thing[4]
1519
          local IncY = Thing[5]
1520
          local IncZ = Thing[6]
1521
          if Thing[1].Transparency <= 1 then
1522
            if Thing[2] == "Block1" then
1523
              Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1524
              Mesh = Thing[1].Mesh
1525
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1526
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1527
            else
1528
              if Thing[2] == "Block2" then
1529
                Thing[1].CFrame = Thing[1].CFrame
1530
                Mesh = Thing[7]
1531
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1532
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1533
              else
1534
                if Thing[2] == "Cylinder" then
1535
                  Mesh = Thing[1].Mesh
1536
                  Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1537
                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1538
                else
1539
                  if Thing[2] == "Blood" then
1540
                    Mesh = Thing[7]
1541
                    Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1542
                    Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1543
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1544
                  else
1545
                    if Thing[2] == "Elec" then
1546
                      Mesh = Thing[1].Mesh
1547
                      Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1548
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1549
                    else
1550
                      if Thing[2] == "Disappear" then
1551
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1552
                      else
1553
                        if Thing[2] == "Shatter" then
1554
                          Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1555
                          Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1556
                          Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1557
                          Thing[6] = Thing[6] + Thing[5]
1558
                        end
1559
                      end
1560
                    end
1561
                  end
1562
                end
1563
              end
1564
            end
1565
          else
1566
            Part.Parent = nil
1567
            table.remove(Effects, e)
1568
          end
1569
        end
1570
      end
1571
    end
1572
  end
1573
end