View difference between Paste ID: v4x3Y0Bs and 84tLfhat
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
87
	local h,t
88
	--Give the server mouse data every second frame, but only if the values changed
89
	--If player is not moving their mouse, client won't fire events
90
	local HB = game:GetService("RunService").Heartbeat
91
	while true do
92
		if h~=Mouse.Hit or t~=Mouse.Target then
93
			h,t=Mouse.Hit,Mouse.Target
94
			Event:FireServer({isMouse=true,Target=t,Hit=h})
95
		end
96
		--Wait 2 frames
97
		for i=1,2 do
98
			HB:Wait()
99
		end
100
	end]==],script)
101
102
	----Sandboxed game object that allows the usage of client-side methods and services
103
	--Real game object
104
	local RealGame = game
105
106
	--Metatable for fake service
107
	local FakeService_Metatable = {
108
		__index = function(self,k)
109
			local s = rawget(self,"_RealService")
110
			if s then
111
				return typeof(s[k])=="function"
112
				and function(_,...)return s[k](s,...)end or s[k]
113
			end
114
		end,
115
		__newindex = function(self,k,v)
116
			local s = rawget(self,"_RealService")
117
			if s then s[k]=v end
118
		end
119
	}
120
	local function FakeService(t,RealService)
121
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
122
		return setmetatable(t,FakeService_Metatable)
123
	end
124
125
	--Fake game object
126
	local FakeGame = {
127
		GetService = function(self,s)
128
			return rawget(self,s) or RealGame:GetService(s)
129
		end,
130
		Players = FakeService({
131
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
132
		},"Players"),
133
		UserInputService = FakeService(UIS,"UserInputService"),
134
		ContextActionService = FakeService(CAS,"ContextActionService"),
135
		RunService = FakeService({
136
			_btrs = {},
137
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
138
			BindToRenderStep = function(self,name,_,fun)
139
				self._btrs[name] = self.Heartbeat:Connect(fun)
140
			end,
141
			UnbindFromRenderStep = function(self,name)
142
				self._btrs[name]:Disconnect()
143
			end,
144
		},"RunService")
145
	}
146
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
147
	FakeGame.service = FakeGame.GetService
148
	FakeService(FakeGame,game)
149
	--Changing owner to fake player object to support owner:GetMouse()
150
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
151
end
152
153
154
--[[ World eater Script ]]--
155
--[[ Declarations ]]--
156
 
157
local a = game.Players.LocalPlayer
158
local mouse = a:GetMouse()
159
 
160
game.Workspace[a.Name].Humanoid.HealthDisplayType = "AlwaysOff"
161
game.Workspace[a.Name].Humanoid.HealthDisplayDistance = "0"
162
game.Workspace[a.Name].Humanoid.DisplayDistanceType = "None"
163
 
164
 
165
 
166
mouse.KeyDown:connect(function(key)
167
if key == "q" then
168
local p = game.Workspace[a.Name]
169
for i,v in pairs(p:GetChildren()) do
170
    if v:IsA("Part") then
171
        v.Transparency = 1
172
        p.Head.face.Transparency = 1
173
        p.Cloak.Transparency = 1
174
        p.Head.BillboardGui.Enabled = false
175
        game.Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
176
        game.Lighting.Brightness = 0
177
        game.Lighting.Ambient = Color3.new(0, 0, 0)    
178
        p.Humanoid.WalkSpeed = 100
179
        p.Humanoid.JumpPower = 75
180
        game.Workspace.Gravity = 80
181
       
182
    end
183
end
184
 
185
end
186
end)
187
 
188
mouse.KeyDown:connect(function(key)
189
if key == "e" then
190
local p = game.Workspace[a.Name]
191
for i,v in pairs(p:GetChildren()) do
192
    if v:IsA("Part") then
193
        v.Transparency = 0
194
        p.Cloak.Transparency = 0
195
        p.Head.face.Transparency = 0
196
        p.Reference.Transparency = 1
197
        p.HumanoidRootPart.Transparency = 1
198
        p.Head.BillboardGui.Enabled = true
199
        game.Lighting.OutdoorAmbient = Color3.new(127, 127, 127)
200
        game.Lighting.Brightness = 1
201
        game.Lighting.Ambient = Color3.new(0, 0, 0)
202
        p.Humanoid.WalkSpeed = 21
203
        p.Humanoid.JumpPower = 50
204
        game.Workspace.Gravity = 100
205
    end
206
end
207
 
208
end
209
end)
210
 
211
mouse.KeyDown:connect(function(key)
212
    if key == "r" then
213
        for i,v in pairs(game.Players:GetChildren()) do
214
            if v.Name == a.Name then
215
                else   
216
            if v:IsA("Player") then
217
               
218
                game.Workspace[v.Name].Humanoid.Health = 0
219
            end
220
        end
221
        end
222
    end
223
    end)
224
 
225
mouse.KeyDown:connect(function(key)
226
    if key == "f" then
227
        game.Workspace[a.Name].Humanoid.Jump = true
228
 
229
    end
230
end)
231
 
232
wait(.0000000000000000000001)
233
local Player = game:GetService("Players").LocalPlayer
234
local Character = Player.Character
235
local Head = Character.Head
236
local Torso = Character.Torso
237
local Right_Arm = Character["Right Arm"]
238
local Right_Leg = Character["Right Leg"]
239
local Left_Arm = Character["Left Arm"]
240
local Left_Leg = Character["Left Leg"]
241
local Humanoid = Character.Humanoid
242
local Animation = "Idle"
243
local Mouse = Player:GetMouse()
244
local LeftShoulder = Torso["Left Shoulder"]
245
local Left_Hip = Torso["Left Hip"]
246
local RightShoulder = Torso["Right Shoulder"]
247
local Right_Hip = Torso["Right Hip"]
248
local Root = Character.HumanoidRootPart
249
local RootJoint = Root.RootJoint
250
local Attacking = false
251
local CanAttack = true
252
local Anim = "Idle"
253
local Combo = 1
254
local Blocking = false
255
local MaxDestruction = 1000
256
local Destruction = 0
257
local MaxBlock = 100
258
local Effects = {}
259
local Color = "Bright yellow"
260
local Invert = false
261
local Idle = 0
262
local Equipped = false
263
local Running = false
264
local Unseathed = false
265
local Shard = "None"
266
 
267
Humanoid.MaxHealth = math.huge
268
Humanoid.Health = math.huge
269
 
270
local WorldEaterTheme = Instance.new("Sound",Character)
271
WorldEaterTheme.Name = "WorldEaterTheme"
272
WorldEaterTheme.Looped = true
273
WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=149981769"
274
WorldEaterTheme:Play()
275
 
276
Left_Shoulder = Instance.new("Weld", Torso)
277
Left_Shoulder.Part0 = Torso
278
Left_Shoulder.Part1 = Left_Arm
279
Left_Shoulder.Name = "Left Shoulder"
280
Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
281
 
282
Right_Shoulder = Instance.new("Weld", Torso)
283
Right_Shoulder.Part0 = Torso
284
Right_Shoulder.Part1 = Right_Arm
285
Right_Shoulder.Name = "Right Shoulder"
286
Right_Shoulder.C0 = CFrame.new(1.5,0,0)
287
 
288
LeftShoulder.Parent = nil
289
RightShoulder.Parent = nil
290
Humanoid.WalkSpeed = 10
291
 
292
local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
293
Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
294
Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
295
Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
296
Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
297
 
298
 
299
Movemment = 1
300
Walk = 0
301
 
302
Animator = Humanoid.Animator
303
--Animate = Character.Animate
304
 
305
Animator.Parent = nil
306
--Animate.Parent = nil
307
 
308
local Services = {
309
 
310
SoundService = game:GetService("SoundService");
311
Players = game:GetService("Players");
312
Debris = game:GetService("Debris");
313
Workspace = game:GetService("Workspace");
314
Lighting = game:GetService("Lighting");
315
HttpService = game:GetService("HttpService");
316
InsertService = game:GetService("InsertService");
317
   
318
}
319
 
320
local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
321
ManaBarGUI.Name = "ManaBarGUI"
322
 
323
local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
324
ManaBarP1.Name = "ManaBarPart1"
325
ManaBarP1.Size = UDim2.new(0,300,0,20)
326
ManaBarP1.Position = UDim2.new(0,350,0.1,0)
327
ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
328
 
329
local ManaBarP2 = Instance.new("Frame", ManaBarP1)
330
ManaBarP2.Name = "ManaBarPart2"
331
ManaBarP2.Size = UDim2.new(0,300,0,20)
332
ManaBarP2.Position = UDim2.new(0,0,0,0)
333
ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
334
 
335
local ManaBarText = Instance.new("TextLabel", ManaBarP1)
336
ManaBarText.Name = "ManaBarText"
337
ManaBarText.Size = UDim2.new(0,300,0,20)
338
ManaBarText.Position = UDim2.new(0,0,-1.5,0)   
339
ManaBarText.TextScaled = true
340
ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
341
ManaBarText.BackgroundTransparency = 1
342
ManaBarText.TextStrokeTransparency = 0
343
ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
344
ManaBarText.TextColor3 = Color3.new(0,0,0)
345
ManaBarText.Font = "Garamond"
346
 
347
local WorldEaterGui = Instance.new("BillboardGui", Head)
348
WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
349
WorldEaterGui.Adornee = Head
350
WorldEaterGui.AlwaysOnTop = true
351
WorldEaterGui.Enabled = true
352
WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
353
 
354
local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
355
WorldEaterText.BackgroundTransparency = 1
356
WorldEaterText.Font = "Garamond"
357
WorldEaterText.Size = UDim2.new(0, 200,0, 50)
358
WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color
359
WorldEaterText.TextStrokeTransparency = 0
360
WorldEaterText.TextColor3 = BrickColor.Black().Color
361
WorldEaterText.TextScaled = true
362
WorldEaterText.Text = "World Eater"
363
 
364
--------[[ Mesh Ids ]]--------
365
 
366
SpikeMeshId = 1033714
367
SpikeBallId = 9982590
368
StarMeshId = 45428961
369
CrystalMeshId = 9756362
370
 
371
--[[ Essential Functions ]]--
372
function NoOutlines(Part)
373
        Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
374
end
375
   
376
 
377
local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
378
 
379
local Part = Instance.new("Part", Parent)
380
Part.Name = Name
381
Part.BrickColor = BrickColor.new(Color)
382
Part.Size = Size
383
Part.Material = Material
384
Part.Transparency = Transparency
385
Part.Shape = Shape
386
Part.CanCollide = false
387
NoOutlines(Part)
388
 
389
return Part
390
 
391
end
392
 
393
local CreateMesh = function(Parent, Scale, Shape)
394
 
395
 
396
local Mesh = Instance.new("BlockMesh", Parent)
397
Mesh.Scale = Scale
398
 
399
return Mesh
400
 
401
end
402
 
403
local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
404
 
405
local WedgePart = Instance.new("WedgePart", Parent)
406
WedgePart.Name = Name
407
WedgePart.BrickColor = BrickColor.new(Color)
408
WedgePart.Size = Size
409
WedgePart.Material = Material
410
WedgePart.Transparency = Transparency
411
WedgePart.CanCollide = false
412
NoOutlines(WedgePart)
413
 
414
return WedgePart
415
 
416
end
417
 
418
local CreateWeld = function(Parent, Cframe, P1 , P0)
419
   
420
local Weld = Instance.new("Weld", Parent)
421
Weld.Part0 = P0
422
Weld.Part1 = P1
423
Weld.Name = P0.Name .. "To" .. P1.Name
424
Weld.C0 = Cframe
425
 
426
return Weld
427
   
428
end
429
 
430
local CreateVelocity = function(Parent,Velocity,Force)
431
   
432
local BodyVelocity = Instance.new("BodyVelocity", Parent)
433
BodyVelocity.Velocity = Velocity
434
BodyVelocity.MaxForce = Force  
435
 
436
   
437
   
438
return BodyVelocity
439
   
440
end
441
 
442
 
443
local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
444
 
445
 
446
local Part = Instance.new("Part", Parent)
447
Part.Name = Name
448
Part.BrickColor = BrickColor.new(Color)
449
Part.Size = Size
450
Part.Material = Material
451
Part.Transparency = Transparency
452
Part.CanCollide = false
453
NoOutlines(Part)
454
 
455
local Mesh = Instance.new("SpecialMesh", Part)
456
Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
457
Mesh.Scale = Scale
458
 
459
return Mesh and Part
460
 
461
end
462
 
463
local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
464
   
465
local SFX = Instance.new("Sound", Parent)
466
SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
467
SFX.Name = "SFX"
468
SFX:Play()
469
SFX.Volume = Volume
470
SFX.Pitch = Pitch
471
SFX.PlayOnRemove = true
472
SFX:Remove()
473
   
474
if Type == "Echo" then
475
   
476
Instance.new("EchoSoundEffect", SFX)   
477
   
478
end
479
   
480
end
481
 
482
local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
483
 
484
 
485
local Part = Instance.new("Part", Parent)
486
Part.Name = Name
487
Part.BrickColor = BrickColor.new(Color)
488
Part.Size = Size
489
Part.Material = Material
490
Part.Transparency = Transparency
491
Part.CanCollide = false
492
NoOutlines(Part)
493
 
494
local Mesh = Instance.new("SpecialMesh", Part)
495
Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
496
Mesh.Scale = Scale
497
 
498
return Mesh and Part
499
 
500
end
501
 
502
CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
503
   
504
local Part = Instance.new("Part", Parent)
505
Part.Transparency = Transparency
506
Part.Name = "CircleEffect"
507
Part.Size = Vector3.new()
508
Part.Anchored = true
509
Part.CanCollide = false
510
Part.Position = Position
511
Part.BrickColor = BrickColor.new(Brickcolor)
512
Part.Material = Material
513
NoOutlines(Part)
514
 
515
local Mesh = Instance.new("SpecialMesh", Part)
516
Mesh.MeshType = "Sphere"
517
Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
518
 
519
Services.Debris:AddItem(Part, Time)
520
 
521
 
522
table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
523
 
524
 
525
end
526
 
527
BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
528
   
529
local Part = Instance.new("Part", Parent)
530
Part.Transparency = Transparency
531
Part.Name = "BlockEffect"
532
Part.Size = Vector3.new()
533
Part.Anchored = true
534
Part.Position = Position
535
Part.CanCollide = false
536
Part.BrickColor = BrickColor.new(Brickcolor)
537
Part.Material = Material
538
NoOutlines(Part)
539
 
540
local Mesh = Instance.new("BlockMesh", Part)
541
Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
542
 
543
Services.Debris:AddItem(Part, Time)
544
 
545
table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
546
 
547
 
548
end
549
 
550
--[[ Damage function ]]--
551
 
552
 
553
function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
554
   
555
local HitHumanoid = Hit.Parent.Humanoid
556
 
557
 
558
local Damage = math.random(Min, Max)
559
 
560
 
561
coroutine.resume(coroutine.create(function()
562
HitHumanoid:TakeDamage(Damage)
563
end))
564
   
565
if Type == "Shrink" then
566
MakeSFX(Hit.Parent.Torso, 209527235, 1, 1) 
567
for i,v in pairs(Hit.Parent:children()) do
568
if v:IsA("Part") then
569
coroutine.resume(coroutine.create(function()       
570
for i = 1,100 do
571
wait() 
572
v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
573
v.Transparency = v.Transparency + 0.05
574
   
575
end    
576
end))
577
end
578
end
579
   
580
end
581
   
582
   
583
   
584
if Type == "Normal" then
585
   
586
local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
587
Services.Debris:AddItem(Push, 0)   
588
DamageLabel(Hit.Parent, Damage, Hit)
589
 
590
elseif Type == "Ranged" then
591
local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
592
Services.Debris:AddItem(Push, 0)   
593
DamageLabel(Hit.Parent, Damage, Hit)
594
 
595
elseif Type == "Impale" then
596
 
597
local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
598
Spike.Anchored = true
599
Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
600
Spike.Position = Hit.Parent.Torso.Position
601
 
602
 
603
Services.Debris:AddItem(Spike, 30)
604
 
605
Hit.Parent:BreakJoints()
606
Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
607
Hit.Parent.Torso.Anchored = true
608
   
609
MakeSFX(Spike, 306247724, 1,1) 
610
MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
611
elseif Type == "Knockdown" then
612
   
613
       
614
local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
615
DamageLabel(Hit.Parent, Damage, Hit)
616
Services.Debris:AddItem(Push, 0.3)
617
 
618
coroutine.resume(coroutine.create(function()
619
   
620
HitHumanoid.PlatformStand = true
621
wait(1)
622
HitHumanoid.PlatformStand = false  
623
   
624
   
625
end))  
626
end
627
 
628
if HitSFX == "Penetration" then
629
   
630
MakeSFX(Hit, 199149269, 1 , 1)
631
 
632
elseif HitSFX == "Punch" then
633
   
634
MakeSFX(Hit, 278062209, 1 , 1)
635
   
636
   
637
   
638
   
639
end
640
end
641
 
642
function DamageLabel(HitCharacter, DamageDealt, Hit)
643
   
644
local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
645
DamageShowingPart.Position = HitCharacter.Head.Position
646
 
647
local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
648
DamageGui.Name = "Damage"
649
DamageGui.AlwaysOnTop = true
650
DamageGui.Size = UDim2.new(5, 0, 5, 0)
651
 
652
local DamageNumber = Instance.new("TextLabel", DamageGui)
653
DamageNumber.Size = UDim2.new(1,0,1,0)
654
if Hit.Parent:FindFirstChild("Head") then
655
DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
656
DamageNumber.TextColor3 = Hit.BrickColor.Color
657
end
658
DamageNumber.TextStrokeTransparency = 0
659
DamageNumber.BackgroundTransparency = 1
660
DamageNumber.Font = "SourceSansBold"
661
DamageNumber.TextScaled = true
662
DamageNumber.Text = DamageDealt
663
   
664
local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
665
BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
666
BodyVelocity.Velocity = Vector3.new(0,2,0) 
667
   
668
Services.Debris:AddItem(DamageShowingPart, 3)
669
   
670
   
671
end
672
 
673
function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
674
for _,WorkspaceChildren in pairs(workspace:children()) do
675
   
676
local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
677
 
678
if HitHumanoid ~= nil then
679
local Hit = WorkspaceChildren:findFirstChild("Torso")
680
 
681
if Hit ~= nil then
682
   
683
local Target = Hit.Position - Part.Position
684
 
685
local Magnitude = Target.magnitude
686
 
687
if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
688
   
689
local HitBlock = Hit.Parent:FindFirstChild("Block")
690
   
691
if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
692
 
693
local HitBlock2 = Hit.Parent.Block.BlockDurability 
694
   
695
if HitBlock2.Value > 15 then
696
   
697
local HitN = math.random(1,5)
698
   
699
HitBlock2.Value = HitBlock2.Value - 15 
700
   
701
   
702
if HitN == 1 then
703
MakeSFX(Hit ,199148971, 0.5, 1)
704
end
705
 
706
if HitN == 2 then
707
MakeSFX(Hit ,199149025, 0.5, 1)
708
end
709
 
710
if HitN == 3 then
711
MakeSFX(Hit ,199149072, 0.5, 1)
712
end
713
 
714
if HitN == 4 then
715
MakeSFX(Hit ,199149109, 0.5, 1)
716
end
717
 
718
if HitN == 5 then
719
MakeSFX(Hit ,199149119, 0.5, 1)
720
end
721
return
722
end
723
end
724
 
725
DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
726
 
727
   
728
 
729
end
730
end
731
end
732
end
733
end
734
 
735
 
736
 
737
local Cloak = Instance.new("Part", Character)
738
Cloak.Name = "Cloak"
739
Cloak.CanCollide = false
740
Cloak.BrickColor = BrickColor.new("Institutional white")
741
 
742
 
743
 
744
 
745
local CloakMesh = Instance.new("SpecialMesh", Cloak)
746
CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
747
CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
748
 
749
local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
750
 
751
for i,v in pairs(Character:children()) do
752
if v:IsA("Accessory") then
753
    v:Remove()
754
elseif v:IsA("Shirt") then
755
    v:Remove()
756
elseif v:IsA("Pants") then
757
    v:Remove() 
758
elseif v:IsA("BodyColors") then
759
 
760
Head.BrickColor =BrickColor.new("Really black")
761
Torso.BrickColor = BrickColor.new("Really black")
762
Right_Arm.BrickColor = BrickColor.new("Really black")
763
Right_Leg.BrickColor = BrickColor.new("Really black")
764
Left_Arm.BrickColor = BrickColor.new("Really black")
765
Left_Leg.BrickColor = BrickColor.new("Really black")
766
 
767
v.HeadColor = BrickColor.new("Really black")
768
v.TorsoColor = BrickColor.new("Really black")
769
v.RightArmColor = BrickColor.new("Really black")
770
v.LeftArmColor = BrickColor.new("Really black")
771
v.RightLegColor = BrickColor.new("Really black")
772
v.LeftLegColor = BrickColor.new("Really black")
773
   
774
end
775
end
776
 
777
 
778
 
779
--[[ CLerp Declarations ]]--
780
 
781
function clerp(a,b,t)
782
    local qa = {QuaternionFromCFrame(a)}
783
    local qb = {QuaternionFromCFrame(b)}
784
    local ax, ay, az = a.x, a.y, a.z
785
    local bx, by, bz = b.x, b.y, b.z
786
    local _t = 1-t
787
    return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
788
end
789
 
790
function QuaternionFromCFrame(cf) -- dis one
791
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
792
    local trace = m00 + m11 + m22
793
    if trace > 0 then
794
        local s = math.sqrt(1 + trace)
795
        local recip = 0.5/s
796
        return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
797
    else
798
        local i = 0
799
        if m11 > m00 then
800
            i = 1
801
        end
802
        if m22 > (i == 0 and m00 or m11) then
803
            i = 2
804
        end
805
        if i == 0 then
806
            local s = math.sqrt(m00-m11-m22+1)
807
            local recip = 0.5/s
808
            return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
809
        elseif i == 1 then
810
            local s = math.sqrt(m11-m22-m00+1)
811
            local recip = 0.5/s
812
            return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
813
        elseif i == 2 then
814
            local s = math.sqrt(m22-m00-m11+1)
815
            local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
816
        end
817
    end
818
end
819
 
820
function QuaternionToCFrame(px, py, pz, x, y, z, w)
821
    local xs, ys, zs = x + x, y + y, z + z
822
    local wx, wy, wz = w*xs, w*ys, w*zs
823
    local xx = x*xs
824
    local xy = x*ys
825
    local xz = x*zs
826
    local yy = y*ys
827
    local yz = y*zs
828
    local zz = z*zs
829
    return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
830
end
831
 
832
function QuaternionSlerp(a, b, t)
833
    local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
834
    local startInterp, finishInterp;
835
    if cosTheta >= 0.0001 then
836
        if (1 - cosTheta) > 0.0001 then
837
            local theta = math.acos(cosTheta)
838
            local invSinTheta = 1/math.sin(theta)
839
            startInterp = math.sin((1-t)*theta)*invSinTheta
840
            finishInterp = math.sin(t*theta)*invSinTheta  
841
        else
842
            startInterp = 1-t
843
            finishInterp = t
844
        end
845
    else
846
        if (1+cosTheta) > 0.0001 then
847
            local theta = math.acos(-cosTheta)
848
            local invSinTheta = 1/math.sin(theta)
849
            startInterp = math.sin((t-1)*theta)*invSinTheta
850
            finishInterp = math.sin(t*theta)*invSinTheta
851
        else
852
            startInterp = t-1
853
            finishInterp = t
854
        end
855
    end
856
    return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
857
end
858
 
859
function RayCast(Pos, Dir, Max, Ignore)
860
    return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
861
end
862
 
863
 
864
function Bars()
865
   
866
--[[ Mana Bar ]]-- 
867
if Destruction ~= MaxDestruction then
868
   
869
Destruction = Destruction + 1
870
 
871
end
872
 
873
if Destruction >= MaxDestruction then
874
   
875
Destruction = Destruction
876
   
877
end
878
 
879
 
880
ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
881
 
882
ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)   
883
   
884
end
885
local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
886
local EyeReferenceWeld = CreateWeld(EyeReference,  CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
887
 
888
coroutine.resume(coroutine.create(function()
889
   
890
while wait(3) do
891
 
892
   
893
CircleEffect(EyeReference.Position, Services.Workspace,  1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
894
   
895
   
896
end
897
   
898
end))
899
--[[ Attacks ]]--
900
 
901
function Attack1()
902
Attacking = true
903
MakeSFX(EyeReference, 341336274, 1,1)
904
wait(0.3)
905
local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
906
local ReferenceWeld = CreateWeld(Reference,  CFrame.new(0,0.5,-5), Reference, Root)
907
 
908
local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
909
local Reference2Weld = CreateWeld(Reference2,  CFrame.new(0,0.5,-2), Reference2, Root)
910
 
911
 
912
for i = 1,10 do
913
 
914
wait()
915
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
916
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
917
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
918
Left_Shoulder.C0 = clerp(Left_Shoulder.C0,  CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
919
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
920
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3)
921
 
922
end
923
 
924
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
925
wait(0.5)
926
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
927
wait(0.5)
928
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
929
wait(0.5)
930
CircleEffect(Reference2.Position, Services.Workspace,  50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
931
wait(0.5)
932
MakeSFX(Reference, 306247724, 1,1) 
933
CircleEffect(Reference.Position, Services.Workspace,  1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
934
ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
935
Attacking = false
936
end
937
 
938
function Attack2()
939
   
940
Attacking = true
941
Humanoid.WalkSpeed = 0
942
Humanoid.JumpPower = 0
943
 
944
 
945
for i = 1,25 do
946
wait()
947
 
948
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
949
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
950
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
951
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
952
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
953
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
954
   
955
end
956
 
957
MakeSFX(Torso, 142070127, 1, 1)
958
ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
959
local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
960
if Hit ~= nil then
961
local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
962
Reference.Anchored = true
963
Reference.CFrame = CFrame.new(Position)
964
 
965
CircleEffect(Reference.Position, Services.Workspace,  1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
966
 
967
game:GetService("Debris"):AddItem(Reference,0.1)
968
for i=1,50 do
969
   
970
local Ground = CreatePart(Services.Workspace, "Ground", Hit.BrickColor.Color, Vector3.new(math.random(1,3), math.random(1,3), math.random(1,3)), Hit.Material, 0, "Block")
971
Ground.Anchored = true
972
Ground.CanCollide = true
973
Ground.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30,30), 0, math.random(-30,30)) * CFrame.Angles(math.random(-50,50),math.random(-50,50), math.random(-50,50))
974
 
975
game:GetService("Debris"):AddItem(Ground,10)
976
 
977
end
978
end
979
   
980
for i = 1,25 do
981
wait()
982
 
983
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
984
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
985
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
986
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
987
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
988
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
989
   
990
end
991
 
992
Attacking = false
993
Humanoid.WalkSpeed = 16
994
Humanoid.JumpPower = 50
995
   
996
   
997
   
998
end
999
 
1000
 
1001
function Attack3()
1002
Humanoid.WalkSpeed = 0
1003
Humanoid.JumpPower = 0
1004
Attacking = true
1005
for i,v in pairs(game.Players:GetChildren()) do
1006
if v:IsA("Player") then
1007
for i,p in pairs(game.Workspace:GetChildren()) do
1008
    if p:IsA("Model") and p.Name == v.Name then
1009
if p.Name == a.Name then
1010
    else       
1011
rocket = Instance.new("RocketPropulsion")
1012
rocket.MaxThrust = 100000
1013
rocket.TargetRadius = 500
1014
rocket.MaxSpeed = 30
1015
rocket.MaxTorque = Vector3.new(0,0,0)
1016
b = game.Workspace:FindFirstChild(v.Name)
1017
rocket.Parent = p.HumanoidRootPart
1018
rocket.Target = game.Workspace[a.Name].Torso
1019
rocket:Fire()
1020
    end
1021
    end
1022
    end
1023
end
1024
end
1025
wait(1)
1026
MakeSFX(Torso, 341336274, 1, 1.2)
1027
CircleEffect(Torso.Position, Services.Workspace,  3, 3, 3, 50, 50, 50, 10, "Black", "Neon", 0.5)
1028
wait(1)
1029
MakeSFX(Torso, 341336274, 1, 1.2)
1030
CircleEffect(Torso.Position, Services.Workspace,  3, 3, 3, 50, 50, 50, 10, "Black", "Neon", 0.5)
1031
wait(1)
1032
MakeSFX(Torso, 341336274, 1, 1.2)
1033
CircleEffect(Torso.Position, Services.Workspace,  3, 3, 3, 50, 50, 50, 10, "Black", "Neon", 0.5)
1034
ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
1035
Humanoid.WalkSpeed = 16
1036
Humanoid.JumpPower = 50
1037
Attacking = false
1038
end
1039
 
1040
Mouse.Button1Down:connect(function()
1041
if not Attacking then
1042
if Combo == 1 then
1043
 
1044
Combo = 3
1045
Attack1()
1046
 
1047
 
1048
 
1049
elseif Combo == 3 then
1050
   
1051
Attack3()
1052
Combo = 1
1053
 
1054
end
1055
end
1056
end)
1057
 
1058
--[[ CLerp Animations ]]--
1059
Change1 = 0
1060
Change2 = 0
1061
Change3 = 0
1062
Change4 = 0
1063
 
1064
while true do
1065
wait()
1066
 
1067
local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
1068
local Velderp = Root.Velocity.y
1069
HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)   
1070
 
1071
Bars()
1072
 
1073
 
1074
if Torvel < 1 and HitFloor ~= nil and Attacking == false then
1075
Anim = "Idle"
1076
   
1077
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
1078
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
1079
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
1080
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
1081
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
1082
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
1083
 
1084
end
1085
 
1086
 
1087
if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
1088
Anim = "Walking"
1089
 
1090
if Invert == false then
1091
Change1 = Change1 + 0.1
1092
 
1093
elseif Invert == true then
1094
   
1095
Change1 = Change1 - 0.1
1096
 
1097
end
1098
 
1099
if Change1 > 0.5 then
1100
   
1101
Invert = true
1102
 
1103
elseif Change1 < -0.5 then
1104
 
1105
Invert  = false
1106
 
1107
end
1108
 
1109
if Attacking == false then
1110
 
1111
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
1112
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
1113
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
1114
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
1115
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
1116
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
1117
 
1118
end
1119
end
1120
 
1121
if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
1122
Anim = "Jump"
1123
   
1124
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
1125
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
1126
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
1127
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
1128
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
1129
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
1130
 
1131
end
1132
 
1133
if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
1134
Anim = "Fall"
1135
   
1136
RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
1137
Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
1138
Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
1139
Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
1140
Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
1141
Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
1142
 
1143
end
1144
 
1145
 
1146
if #Effects > 0 then
1147
for E = 1, #Effects do
1148
if Effects[E]~=nil then
1149
local Effect = Effects[E]
1150
 
1151
if Effect ~= nil then
1152
   
1153
local Part = Effect[1]
1154
local Mode = Effect[2]
1155
local Time = Effect[3]
1156
local SizeX = Effect[4]
1157
local SizeY = Effect[5]
1158
local SizeZ = Effect[6]
1159
 
1160
if Effect[1].Transparency <= 1 then
1161
if Effect[2] == "Block" then
1162
Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1163
 
1164
Mesh = Effect[1]:FindFirstChild("Mesh")
1165
if Mesh ~= nil then
1166
Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
1167
end
1168
 
1169
elseif Effect[2] == "Circle" then
1170
   
1171
if Effect[1]:FindFirstChild("Mesh") ~= nil then
1172
Mesh=Effect[1].Mesh
1173
Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
1174
end
1175
 
1176
Effect[1].Transparency = Effect[1].Transparency + 0.05
1177
 
1178
else
1179
   
1180
Part.Parent=nil
1181
 
1182
table.remove(Effects, E)
1183
 
1184
end
1185
end
1186
end
1187
end
1188
end
1189
end
1190
end