View difference between Paste ID: 4ujpCwab and ehN17xTi
SHOW: | | - or go back to the newest paste.
1
local p = game.Players.LocalPlayer
2
local char = p.Character
3
local mouse = p:GetMouse()
4
local larm = char["Left Arm"]
5
local rarm = char["Right Arm"]
6
local lleg = char["Left Leg"]
7
local rleg = char["Right Leg"]
8
local hed = char.Head
9
local torso = char.Torso
10
local hum = char.Humanoid
11
local cam = game.Workspace.CurrentCamera
12
local root = char.HumanoidRootPart
13
local deb = false
14
local shot = 0
15
local debris=game:service"Debris"
16
local l = game:GetService("Lighting")
17
local rs = game:GetService("RunService").RenderStepped
18
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
19
math.randomseed(os.time())
20
for i,v in pairs (hed:GetChildren()) do
21
        if v:IsA("Sound") then
22
                v:Destroy()
23
        end
24
end
25
--------------------------------------------------------------------
26
 
27
hed.face.Texture = "rbxassetid://589766751"
28
----------------------------------------------------
29
Debounces = {
30
CanAttack = true;
31
NoIdl = false;
32
Slashing = false;
33
Slashed = false;
34
RPunch = false;
35
RPunched = false;
36
LPunch = false;
37
LPunched = false;
38
}
39
local Touche = {char.Name, }
40
----------------------------------------------------
41
char["Body Colors"].HeadColor = BrickColor.new("White")
42
char["Body Colors"].TorsoColor = BrickColor.new("White")
43
char["Body Colors"].LeftArmColor = BrickColor.new("White")
44
char["Body Colors"].RightArmColor = BrickColor.new("White")
45
----------------------------------------------------
46
----------------------------------------------------------------
47
 
48
---------------------------- SHIRT AND PANTS --
49
--------------------------------
50
shirt = Instance.new("Shirt", char)
51
shirt.Name = "Shirt"
52-
    text.TextStrokeColor3 = Color3.new(170,0,0)
52+
pants = Instance.new("Pants", char)
53-
        text.Text = "UF!Sans"
53+
pants.Name = "Pants"
54
char.Shirt.ShirtTemplate = "rbxassetid://769121053"
55
char.Pants.PantsTemplate = "rbxassetid://1507168534"
56
 
57
 ---------------------------------------------------------
58
-- Created by Nebula_Zorua --
59-
hate.SoundId = "rbxassetid://183142252"hate.MaxDistance = 10000
59+
60
-- Sans Curse (A Curse of Light) --
61
-- Custom Arcane Adventures Magic --
62
-- Wielder: Everybody (Released) --
63
64
65
66
-- Discord: Nebula the Zorua#6969
67
-- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
68
69
-- You can change the Magic Circle n stuff down under Customization, at MagicVariant --
70
 
71
--controls
72
    local MovesGui=Instance.new("ScreenGui",game:service'Players'.LocalPlayer:FindFirstChildOfClass("PlayerGui"))
73
    local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
74
    Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
75
    local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
76
    normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
77
    normal.TextXAlignment="Left"normal.TextYAlignment="Top"
78
    normal.Text=[[
79
-----------
80
*Q   : Normal Gaster Blaster
81
*E   : Double Gaster Blaster
82
*R   : Big Gaster Blaster
83
*X   : Transformation 
84
*T   : Teleport
85
*F   : Stun Gaster Blaster 
86
87
Created by Nebula_Zorua
88
Edited by 1x1x1x1IAMbck
89
 
90
]]
91
-- Name tag
92
Player = game.Players.LocalPlayer
93
    Character = Player.Character
94
    local txt = Instance.new("BillboardGui", Character)
95
    txt.Adornee = Character.Head
96
    txt.Name = "_status"
97-
--main
97+
98
    txt.StudsOffset = Vector3.new(-9, 8, 0)
99-
plr = game.Players.LocalPlayer
99+
100-
char = plr.Character
100+
101-
mouse = plr:GetMouse()
101+
102-
whitecolor = Color3.new(1,1,1)
102+
103-
epicmode = false
103+
104-
normal = true
104+
105-
for i,v in pairs(char:GetChildren()) do
105+
106-
   if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
106+
107-
      v:Destroy()
107+
108-
     end
108+
    text.TextStrokeColor3 = Color3.new(math.random(),math.random(),math.random())
109
        text.Text = "Ink!Sans"
110-
local shirt = Instance.new("Shirt",char)
110+
111-
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1145883171"
111+
112-
local pants = Instance.new("Pants",char)
112+
113-
pants.PantsTemplate = "http://www.roblox.com/asset/?id=454688894"
113+
hate.SoundId = "rbxassetid://928385983"hate.MaxDistance = 10000
114-
local bdycolors = char["Body Colors"]
114+
115-
bdycolors.HeadColor3 = whitecolor
115+
116-
bdycolors.LeftArmColor3 = whitecolor
116+
117-
bdycolors.LeftLegColor3 = whitecolor
117+
118-
bdycolors.RightArmColor3 = whitecolor
118+
119-
bdycolors.RightLegColor3 = whitecolor
119+
120-
bdycolors.TorsoColor3 = whitecolor
120+
121-
for i,v in pairs(char:GetChildren()) do
121+
122-
    if v.ClassName == "Hat" or v.ClassName == "Accessory" then
122+
123-
        v:Destroy()
123+
124
Hood.Material = "Plastic"
125
Hood.Size = Vector3.new(1, 1, 2)
126
Hood.TopSurface = Enum.SurfaceType.Smooth
127
Hood.BottomSurface = Enum.SurfaceType.Smooth
128
 
129
local Weld = Instance.new("Weld", Hood)
130
Weld.Part0 = tors
131
Weld.Part1 = Hood
132
Weld.C1 = CFrame.new(0, .4, -.9)
133
Weld.C0 = CFrame.Angles(math.rad(-0),math.rad(0),math.rad(180))
134
 
135
  
136
--teleport
137
wait(1)
138
player = game.Players.LocalPlayer
139
torso = player.Character:WaitForChild("Torso")
140
mouse = player:GetMouse()
141
 
142
mouse.KeyDown:connect(function(key)
143
    if key == "t" then
144
        dist = (torso.Position - mouse.Hit.p).magnitude
145
        if dist <= 10000 then
146
            torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0)
147
        end
148
    end
149
end)
150
151
152
153
154
-- Chat
155
local talksound = Instance.new("Sound",char.Torso)
156
talksound.SoundId = "rbxassetid://928210219"
157
talksound.Volume = 4
158
local blastsound = Instance.new("Sound",char.Torso)
159
blastsound.Name = "blast_sound"
160
blastsound.SoundId = "rbxassetid://345052019"
161
blastsound.Volume = 4
162
function swait(num)
163
if num==0 or num==nil then
164-
tecks2.TextColor3 = Color3.new(.6,0,0)
164+
165
else
166
for i=0,num do
167
game:service'RunService'.Stepped:wait(0)
168
end
169
end
170
end
171
 
172
function chatfunc(text)
173
local chat = coroutine.wrap(function()
174
if char:FindFirstChild("TalkingBillBoard") ~= nil then
175-
tecks3.TextStrokeColor3 = Color3.new(200,0,0)
175+
176
end
177
local naeeym2 = Instance.new("BillboardGui",char)
178
naeeym2.Size = UDim2.new(0,100,0,40)
179
naeeym2.StudsOffset = Vector3.new(0,3,0)
180
naeeym2.Adornee = char.Head
181
naeeym2.Name = "TalkingBillBoard"
182
local tecks2 = Instance.new("TextLabel",naeeym2)
183
tecks2.BackgroundTransparency = 1
184
tecks2.BorderSizePixel = 0
185
tecks2.Text = ""
186
tecks2.Font = "Fantasy"
187
tecks2.TextSize = 50
188
tecks2.TextStrokeTransparency = 0
189
tecks2.TextColor3 = Color3.new(1,1,1)
190
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
191
tecks2.Size = UDim2.new(1,0,0.5,0)
192
local tecks3 = Instance.new("TextLabel",naeeym2)
193
tecks3.BackgroundTransparency = 1
194
tecks3.BorderSizePixel = 0
195
tecks3.Text = ""
196
tecks3.Font = "Fantasy"
197
tecks3.TextSize = 50
198
tecks3.TextStrokeTransparency = 0
199
tecks3.TextColor3 = Color3.new(1,1,1)
200
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
201
tecks3.Size = UDim2.new(1,0,0.5,0)
202-
plr.Chatted:connect(onChatted)
202+
203
tecks2.Text = string.sub(text,1,i)
204
tecks3.Text = string.sub(text,1,i)
205-
chatfunc("Who is there?")
205+
206
wait(0.01)
207-
chatfunc("Maybe it is my friend?")
207+
208
wait(2)
209-
chatfunc("Brother killer?!")
209+
210
swait()
211
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
212
tecks2.Rotation = tecks2.Rotation - .8
213
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
214-
music.Volume = 4
214+
215
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
216
tecks3.Rotation = tecks2.Rotation + .8
217-
LeyeColor = BrickColor.new("Really red")
217+
218
tecks3.TextTransparency = tecks2.TextTransparency + .04
219
end
220
naeeym2:Destroy()
221
end)
222-
reye.Color = Color3.new(1,1,1)
222+
223
end
224
function onChatted(msg)
225
chatfunc(msg)
226
end
227
p.Chatted:connect(onChatted)
228
chatfunc("Edit By 1x1x1x1x1x1x1x0x0x2")
229
wait(3)
230
p.Chatted:connect(onChatted)
231
chatfunc("Hmm?")
232
wait(1)
233
chatfunc("Who are you?")
234
wait(1.2)
235
chatfunc("sans?")
236
wait(1)
237
chatfunc("killer?!")
238
wait(0.5)
239
chatfunc("Time to DEAD")
240
wait(0.5)
241
char.Humanoid.Name = "Sans"
242
local music = Instance.new("Sound",char.Torso)
243
music.SoundId = "rbxassetid://0"
244
music.Volume = 5
245
music.Looped = true
246
music:Play()
247
LeyeColor = BrickColor.new("Electric blue")
248
249
local eyemodel = Instance.new("Model",char)
250
eyemodel.Name = "Eyes"
251
local reye = Instance.new("Part",eyemodel)
252
reye.Name = "BurningEff"
253
reye.Color = Color3.new(math.random(),math.random(),math.random())
254
reye.Material = "Neon"
255
reye.Transparency = 1
256
local reyemesh = Instance.new("SpecialMesh",reye)
257
reyemesh.MeshType = "Sphere"
258
reye.Size = Vector3.new(0.12, 0.37, 0.27)
259
local reyeweld = Instance.new("Weld",reye)
260
reyeweld.Part0 = reye
261
reyeweld.Part1 = char.Head
262
reyeweld.C0 = CFrame.new(-0.551300049, -0.19681406, -0.198293686, 0, 0, -1, 0, 1, 0, 1, 0, 0)
263
local leye = Instance.new("Part",eyemodel)
264
leye.Name = "LeftEye"
265
leye.BrickColor = LeyeColor
266
leye.Material = "Neon"
267
leye.Size = Vector3.new(0.2,0.2,0.2)
268
local leyemesh = Instance.new("SpecialMesh",leye)
269
leyemesh.MeshType = "Sphere"
270
leyemesh.Scale = Vector3.new(0.7,1.1,0.7)
271
local leyeweld = Instance.new("Weld",leye)
272
leyeweld.Part0 = leye
273
leyeweld.Part1 = char.Head
274
leyeweld.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
275
local leyeclone = leye:Clone()
276
leyeclone.Transparency = 1
277
leyeclone.Name = "RightEye"
278
leyeclone.Parent = eyemodel
279
for i,v in pairs(leyeclone:GetChildren()) do
280
	if v.ClassName == "Weld" then
281
		v:Destroy()
282
	end
283
end
284
local leyeweld2 = Instance.new("Weld",leyeclone)
285-
			chatfunc("Gaster Blaster!")
285+
286
leyeweld2.Part1 = char.Head
287
leyeweld2.C0 = CFrame.new(0.0864697844, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
288
local fire = Instance.new("Fire",reye)
289
fire.Heat = 25000
290
fire.Color = leye.BrickColor.Color
291-
			chatfunc("Look, I gave up trying to go back a long time ago.")
291+
292
-- welds xd
293
local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
294
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
295
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
296
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
297-
		gasterblastermesh.MeshId = "rbxassetid://431908407"
297+
298
local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
299
local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
300
lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
301-
		gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
301+
302
lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
303
for i = 0,1 ,0.03 do
304
	lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.925931931, -0.0977840424, 0.974765539, 0.886040092, -0.463608712, -1.69641942e-06, 0.405292064, 0.774584651, 0.485548228, -0.225103036, -0.430215806, 0.87421),i)
305
	rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.881086826, -0.201818228, 0.747067213, 0.882895231, 0.4695701, 1.00883415e-06, -0.397803098, 0.747956276, 0.531332433, 0.249497056, -0.469111204, 0.847163498),i)
306
	game:GetService("RunService").RenderStepped:wait()
307
end
308
local slapsound = Instance.new("Sound",char.Torso)
309
slapsound.SoundId = "rbxassetid://511340819"
310
slapsound.Volume = 4
311
-- Funcs
312
function Blast(AAA)
313
	if AAA == "f" then
314
		local chatmath = math.random(1,3)
315
		if chatmath == 1 then
316
			chatfunc("Gaster Blaster")
317
		end
318
		if chatmath == 2 then
319
			chatfunc("This is what you get for killing everybody.")
320
		end
321
		if chatmath == 3 then
322
			chatfunc("Time to die")
323
		end
324
		local gasterblaster = Instance.new("Part",char.Torso)
325
		gasterblaster.Size = Vector3.new(7, 16, 4)
326
		gasterblaster.CanCollide = false
327
		local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
328
		gasterblastermesh.MeshId = "rbxassetid://1033714"
329
		gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
330
		local gasterblastertexture = Instance.new("Decal",gasterblaster)
331
		gasterblastertexture.Face = "Back"
332
		gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=323497117"
333
		local weeld = Instance.new("Weld",gasterblaster)
334
		weeld.Part0 = gasterblaster
335
		weeld.Part1 = char.Torso
336
		weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
337
		blastsound:Play()
338
		char.Head.Anchored = true
339
		wait(1)
340
		local blast = Instance.new("Part",gasterblaster)
341
		blast.Size = Vector3.new(18.07, 16.36, 73.54)
342
		blast.Transparency = 0.7
343
		blast.Material = "Neon"
344
		blast.Color = Color3.new(1,1,1)
345
		blast.CanCollide = true
346
		local blastweld = Instance.new("Weld",blast)
347
		blastweld.Part0 = blast
348
		blastweld.Part1 = gasterblaster
349
		blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
350
		blast.Touched:connect(function(part)
351
			part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
352
        end)
353
		wait(2)
354-
		chatfunc("Hehe, forgetting something?")
354+
355
		blast:Destroy()
356
		gasterblaster:Destroy()
357
	end
358
end
359
mouse.KeyDown:connect(Blast)
360
361
362
function Death()
363
	music:Stop()
364
	local deadsound = Instance.new("Sound",char.Torso)
365
	deadsound.SoundId = "rbxassetid://427025525"
366
	deadsound.Volume = 4
367
	deadsound:Play()
368
	for i,v in pairs(char:GetChildren()) do
369
		if v.ClassName == "Part" then
370
			v.Transparency = 1
371
		end
372
		leye.Transparency = 1
373
		fire:Destroy()
374
		char.Head.face.Transparency = 1
375
	end
376
end
377
char.Sans.Died:connect(Death)
378
379
380
function Transform(key)
381
	if key == "x" then
382
		music.SoundId = "rbxassetid://0"
383
		music:Stop()
384
		music:Play()
385
		chatfunc("time fo something?")
386
		leyeclone.Transparency = 0
387
		local fire2 = Instance.new("Fire",leyeclone)
388
		fire2.Heat = 25000
389
        fire2.Color = leye.BrickColor.Color
390
        fire2.Size = 2
391
	end
392
end
393
mouse.KeyDown:connect(Transform)
394
395
396
397
398
--// Shortcut Variables \\--
399
local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
400
local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
401
local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
402
local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
403
local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
404
local R3 = {N=Region3.new}
405
local De = S.Debris
406
local WS = workspace
407
local Lght = S.Lighting
408
local RepS = S.ReplicatedStorage
409
local IN = Instance.new
410
local Plrs = S.Players
411
412
local Emit = IN("ParticleEmitter").Emit;
413
414
--// Initializing \\--
415
local Plr = Plrs.LocalPlayer
416
local Char = Plr.Character
417
local Hum = Char:FindFirstChildOfClass'Humanoid'
418
local RArm = Char["Right Arm"]
419
local LArm = Char["Left Arm"]
420
local RLeg = Char["Right Leg"]
421
local LLeg = Char["Left Leg"]	
422
local Root = Char:FindFirstChild'HumanoidRootPart'
423
local Torso = Char.Torso
424
local Head = Char.Head
425
local NeutralAnims = true
426
local Attack = false
427
local Debounces = {Debounces={}}
428
local Mouse = Plr:GetMouse()
429
local Hit = {}
430
local Sine = 0
431
local Change = 1
432
433
local Effects = IN("Folder",Char)
434
Effects.Name = "Effects"
435
436
437
438
--// Music \\--
439
440
441
442
--// Debounce System \\--
443
444
445
function Debounces:New(name,cooldown)
446
	local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
447
	setmetatable(aaaaa,{__index = Debounces})
448
	Debounces.Debounces[name] = aaaaa
449
	return aaaaa
450
end
451
452
function Debounces:Use(overrideUsable)
453
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
454
	if(self.Usable or overrideUsable)then
455
		self.Usable = false
456
		self.CoolingDown = true
457
		local LastUse = time()
458
		self.LastUse = LastUse
459
		delay(self.Cooldown or 2,function()
460
			if(self.LastUse == LastUse)then
461
				self.CoolingDown = false
462
				self.Usable = true
463
			end
464
		end)
465
	end
466
end
467
468
function Debounces:Get(name)
469
	assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
470
	for i,v in next, Debounces.Debounces do
471
		if(i == name)then
472
			return v;
473
		end
474
	end
475
end
476
477
function Debounces:GetProgressPercentage()
478
	assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
479
	if(self.CoolingDown and not self.Usable)then
480
		return math.max(
481
			math.floor(
482
				(
483
					(time()-self.LastUse)/self.Cooldown or 2
484
				)*100
485
			)
486
		)
487
	else
488
		return 100
489
	end
490
end
491
492
--// Instance Creation Functions \\--
493
494
function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
495
	local Sound = IN("Sound")
496
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
497
	Sound.Pitch = pitch or 1
498
	Sound.Volume = volume or 1
499
	Sound.Looped = looped or false
500
	if(autoPlay)then
501
		coroutine.wrap(function()
502
			repeat wait() until Sound.IsLoaded
503
			Sound.Playing = autoPlay or false
504
		end)()
505
	end
506
	if(not looped and effect)then
507
		Sound.Stopped:connect(function()
508
			Sound.Volume = 0
509
			Sound:destroy()
510
		end)
511
	elseif(effect)then
512
		warn("Sound can't be looped and a sound effect!")
513
	end
514
	Sound.Parent =parent or Torso
515
	return Sound
516
end
517
function Part(parent,color,material,size,cframe,anchored,cancollide)
518
	local part = IN("Part")
519
	part.Parent = parent or Char
520
	part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
521
	part.Material = material or Enum.Material.SmoothPlastic
522
	part.TopSurface,part.BottomSurface=10,10
523
	part.Size = size or V3.N(1,1,1)
524
	part.CFrame = cframe or CF.N(0,0,0)
525
	part.CanCollide = cancollide or false
526
	part.Anchored = anchored or false
527
	return part
528
end
529
530
function Weld(part0,part1,c0,c1)
531
	local weld = IN("Weld")
532
	weld.Parent = part0
533
	weld.Part0 = part0
534
	weld.Part1 = part1
535
	weld.C0 = c0 or CF.N()
536
	weld.C1 = c1 or CF.N()
537
	return weld
538
end
539
540
function Mesh(parent,meshtype,meshid,textid,scale,offset)
541
	local part = IN("SpecialMesh")
542
	part.MeshId = meshid or ""
543
	part.TextureId = textid or ""
544
	part.Scale = scale or V3.N(1,1,1)
545
	part.Offset = offset or V3.N(0,0,0)
546
	part.MeshType = meshtype or Enum.MeshType.Sphere
547
	part.Parent = parent
548
	return part
549
end
550
551
NewInstance = function(instance,parent,properties)
552
	local inst = Instance.new(instance)
553
	inst.Parent = parent
554
	if(properties)then
555
		for i,v in next, properties do
556
			pcall(function() inst[i] = v end)
557
		end	
558
	end
559
	return inst;
560
end
561
562
function Clone(instance,parent,properties)
563
	local inst = instance:Clone()
564
	inst.Parent = parent
565
	if(properties)then
566
		for i,v in next, properties do
567
			pcall(function() inst[i] = v end)
568
		end
569
	end
570
	return inst;
571
end
572
573
function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
574
	local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
575
	local Sound = IN("Sound")
576
	Sound.SoundId = "rbxassetid://".. tostring(id or 0)
577
	Sound.Pitch = pitch or 1
578
	Sound.Volume = volume or 1
579
	Sound.Looped = looped or false
580
	if(autoPlay)then
581
		coroutine.wrap(function()
582
			repeat wait() until Sound.IsLoaded
583
			Sound.Playing = autoPlay or false
584
		end)()
585
	end
586
	if(not looped and effect)then
587
		Sound.Stopped:connect(function()
588
			Sound.Volume = 0
589
			soundPart:destroy()
590
		end)
591
	elseif(effect)then
592
		warn("Sound can't be looped and a sound effect!")
593
	end
594
	Sound.Parent = soundPart
595
	return Sound
596
end
597
598
599
--// Extended ROBLOX tables \\--
600
local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
601
--// Require stuff \\--
602
function CamShake(who,times,intense,origin) 
603
	coroutine.wrap(function()
604
		if(script:FindFirstChild'CamShake')then
605
			local cam = script.CamShake:Clone()
606
			cam:WaitForChild'intensity'.Value = intense
607
			cam:WaitForChild'times'.Value = times
608
			
609
	 		if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
610
			cam.Parent = who
611
			wait()
612
			cam.Disabled = false
613
		elseif(who == Plr or who == Char)then
614
			local intensity = intense
615
			local cam = workspace.CurrentCamera
616
			for i = 1, times do
617
				local camDistFromOrigin
618
				if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
619
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
620
				elseif(typeof(origin) == 'Vector3')then
621
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
622
				end
623
				if(camDistFromOrigin)then
624
					intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
625
				end
626
				cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
627
				swait()
628
			end
629
		end
630
	end)()
631
end
632
633
function CamShakeAll(times,intense,origin)
634
	for _,v in next, Plrs:players() do
635
		CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
636
	end
637
end
638
639
function ServerScript(code)
640
	if(script:FindFirstChild'Loadstring')then
641
		local load = script.Loadstring:Clone()
642
		load:WaitForChild'Sauce'.Value = code
643
		load.Disabled = false
644
		load.Parent = workspace
645
	elseif(NS and typeof(NS) == 'function')then
646
		NS(code,workspace)
647
	else
648
		warn("no serverscripts lol")
649
	end	
650
end
651
652
function RunLocal(where,code)
653
	ServerScript([[
654
		wait()
655
		script.Parent=nil
656
		if(not _G.Http)then _G.Http = game:service'HttpService' end
657
		
658
		local Http = _G.Http or game:service'HttpService'
659
		
660
		local source = ]].."[["..code.."]]"..[[
661
		local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
662
		local asd = Http:PostAsync(link,source)
663
		repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
664
		local ID = Http:JSONDecode(asd).Result.Require_ID
665
		local vs = require(ID).VORTH_SCRIPT
666
		vs.Parent = game.]]..where:GetFullName()
667
	)
668
end
669
670
--// Customization \\--
671
672
local Frame_Speed = 60;
673
local WalkSpeed = 16
674
local DamageColor = BrickColor.new'White'
675
676
local MagicCircles = {
677
	Default = {Color=C3.N(255,0,0),Texture1=0,Texture2=0},
678
	OrangeWarPheonix = {EffectColor=BrickColor.new'Deep orange'.Color,Color=C3.N(.9,.9,.9),Texture1=623153986,Texture2=623153990},
679
	BlueWarPheonix = {EffectColor=BrickColor.new'Teal'.Color,Color=C3.N(.9,.9,.9),Texture1=462499935,Texture2=462499970},
680
	Plasma = {Color=C3.N(0.70588235294118,0,0.8),Texture1=415906687,Texture2=415906702},
681
	Water = {Color=C3.RGB(33, 84, 185),Texture1=408441330,Texture2=408441353},
682
	Earth = {Color=C3.RGB(86, 36, 36),Texture1=394253616,Texture2=394253651},
683
	Wind = {Color=C3.N(.8,.8,.8),Texture1=376006317,Texture2=376006346},
684
	Poseidon = {Color=C3.RGB(71, 99, 130),Texture1=346727970,Texture2=346727994},
685
	AetherLightning = {Color=C3.RGB(23, 255, 197),Texture1=348320016,Texture2=348320030},
686
	Light = {Color=C3.N(1,1,0),Texture1=343192085,Texture2=343192112},
687
	Fire = {Color=C3.N(1,0,0),EffectColor=BrickColor.new'Bright red'.Color,Texture1=313945544,Texture2=313945673},
688
	Lightning = {Color=C3.N(0,1,1),Texture1=314842290,Texture2=314842440},
689
	GasterBlaster = {Color=C3.N(255,0,0),Texture1=331948662,Texture2=331948662}
690
}
691
692
local MagicVariant = MagicCircles.GasterBlaster --[[ You can change this for a different element
693
Example: 
694
695
Changing MagicCircles.GasterBlaster to MagicCircles.Light
696
697
would make it a Light Element
698
]]
699
700
--// Stop animations \\--
701
for _,v in next, Hum:GetPlayingAnimationTracks() do
702
	v:Stop();
703
end
704
705
pcall(game.Destroy,Char:FindFirstChild'Animate')
706
pcall(game.Destroy,Hum:FindFirstChild'Animator')
707
708
--// Joints \\--
709
710
local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5,0.5,0),C1 = CF.N(0,.5,0)})
711
local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5,0.5,0),C1 = CF.N(0,.5,0)})
712
local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5,0)})
713
local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5,-1,0),C1 = CF.N(0,1,0)})
714
local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5,-1,0),C1 = CF.N(0,1,0)})
715
local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
716
717
local LSC0 = LS.C0
718
local RSC0 = RS.C0
719
local NKC0 = NK.C0
720
local LHC0 = LH.C0
721
local RHC0 = RH.C0
722
local RJC0 = RJ.C0
723
724
--// Artificial HB \\--
725
726
local ArtificialHB = IN("BindableEvent", script)
727
ArtificialHB.Name = "Heartbeat"
728
729
script:WaitForChild("Heartbeat")
730
731
local tf = 0
732
local allowframeloss = false
733
local tossremainder = false
734
local lastframe = tick()
735
local frame = 1/Frame_Speed
736
ArtificialHB:Fire()
737
738
game:GetService("RunService").Heartbeat:connect(function(s, p)
739
	tf = tf + s
740
	if tf >= frame then
741
		if allowframeloss then
742
			script.Heartbeat:Fire()
743
			lastframe = tick()
744
		else
745
			for i = 1, math.floor(tf / frame) do
746
				ArtificialHB:Fire()
747
			end
748
			lastframe = tick()
749
		end
750
		if tossremainder then
751
			tf = 0
752
		else
753
			tf = tf - frame * math.floor(tf / frame)
754
		end
755
	end
756
end)
757
758
function swait(num)
759
	if num == 0 or num == nil then
760
		ArtificialHB.Event:wait()
761
	else
762
		for i = 0, num do
763
			ArtificialHB.Event:wait()
764
		end
765
	end
766
end
767
768
769
--// Effect Function(s) \\--
770
771
function NumSeq(...)
772
	local tab = {...}
773
	local Sequence = {}
774
	for _,v in next, tab do
775
		table.insert(Sequence,NumberSequenceKeypoint.new(unpack(v)))
776
	end
777
	if(tab[#tab][1] ~= 1)then
778
		local final = tab[#tab]
779
		table.insert(Sequence,NumberSequenceKeypoint.new(1,final[2],final[3]))
780
	end
781
	return NumberSequence.new(Sequence)
782
end
783
784
local DefaultRingParticle = IN("ParticleEmitter")
785
DefaultRingParticle.Name = 'RingEmit'
786
DefaultRingParticle.LightEmission = 1
787
DefaultRingParticle.Size = NumSeq({0,0},{.7,6.28},{.8,5.03},{1,2.9})
788
DefaultRingParticle.Texture = "rbxassetid://313951123"
789
DefaultRingParticle.Transparency = NumberSequence.new(0,1)
790
DefaultRingParticle.ZOffset = 1
791
DefaultRingParticle.Drag = 0
792
DefaultRingParticle.Acceleration = V3.N()
793
DefaultRingParticle.LockedToPart = true
794
DefaultRingParticle.Enabled = false
795
DefaultRingParticle.Lifetime = NumberRange.new(.6,.6)
796
DefaultRingParticle.Rate = 5
797
DefaultRingParticle.Rotation = NumberRange.new(0,0)
798
DefaultRingParticle.RotSpeed = NumberRange.new(0,0)
799
DefaultRingParticle.Speed = NumberRange.new(0,0)
800
DefaultRingParticle.SpreadAngle = Vector2.new(0,0)
801
802
function MagicCircle(Data)
803
	local Variant = Data.Variant or MagicCircles.Default;
804
	
805
	local Size = Data.Size or 10;
806
	local Pos = Data.Pos*CF.A(M.R(-90),M.R(-90),0) or Torso.CFrame*CF.A(M.R(-90),M.R(-90),0);
807
	local GrowTime = Data.Time or 1;
808
	
809
	local WeldData = Data.Weld or false;
810
	
811
	
812
	local Color = Variant.Color or C3.N(.9,.9,.0)
813
	
814
	local CreationParticle = Data.CreationParticle or DefaultRingParticle;
815
	
816
	
817
	local Circle = Part(Effects,BrickColor.new'Maroon',Enum.Material.SmoothPlastic,V3.N(.05,.05,.05),Pos,true,false)
818
	local CircleM = NewInstance("BlockMesh",Circle,{Scale=V3.N()})
819
	
820
	
821
	local Emitter = DefaultRingParticle:Clone();
822
	Emitter.Parent = Circle
823
	Emitter.Color = ColorSequence.new(Variant.Color)
824
	
825
	local Top = IN("Decal",Circle)
826
	Top.Texture = "rbxassetid://"..Variant.Texture1
827
	Top.Face = Enum.NormalId.Top
828
	
829
	local Btm = IN("Decal",Circle)
830
	Btm.Texture = "rbxassetid://"..Variant.Texture2
831
	Btm.Face = Enum.NormalId.Bottom
832
	
833
	if(WeldData)then
834
		Circle.Anchored = false
835
		Weld(WeldData,Circle,Pos,CF.N())
836
	end
837
	local GrowFrames = GrowTime * Frame_Speed
838
	print(GrowFrames)
839
	--Size*20,0,Size*20
840
	Circle.Transparency = 1
841
	local GrownEvent = Instance.new("BindableEvent",Circle)
842
	coroutine.wrap(function()
843
		
844
		Emit(Emitter,5)
845
		local End = Size*20
846
		local grow = End/GrowFrames
847
		for i = 1, GrowFrames+1 do
848
			local aa = math.min(CircleM.Scale.x + grow,End)
849
			if(aa >= End)then break end
850
			CircleM.Scale = V3.N(aa,0,aa)
851
			swait()
852
		end
853
		CircleM.Scale = V3.N(End,0,End)
854
		GrownEvent:Fire()
855
		
856
	end)()
857
	
858
	local Table = {
859
		Circle = Circle,
860
		Mesh = CircleM,
861
		Grow = function(size)
862
			CircleM.Scale = CircleM.Scale + V3.N(size*20,0,size*20)
863
		end,
864
		Destroy = function(timer)
865
			coroutine.wrap(function()
866
				if(not timer)then timer = 1 end
867
				Tween(CircleM,{Scale=V3.N(0,0,0)},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
868
				Tween(Top,{Transparency=1},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
869
				Tween(Btm,{Transparency=1},timer,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
870
				S.Debris:AddItem(Circle,timer+1)
871
			end)()
872
		end,
873
		Grown = GrownEvent.Event
874
	}
875
		
876
	return Table;
877
end
878
879
function Bezier(startpos, pos2, pos3, endpos, t)
880
	local A = startpos:lerp(pos2, t)
881
	local B  = pos2:lerp(pos3, t)
882
	local C = pos3:lerp(endpos, t)
883
	local lerp1 = A:lerp(B, t)
884
	local lerp2 = B:lerp(C, t)
885
	local cubic = lerp1:lerp(lerp2, t)
886
	return cubic
887
end
888
889
function SphereFX(duration,color,scale,pos,endScale,increment)
890
	return Effect{
891
		Frames=duration,
892
		Effect='ResizeAndFade',
893
		Color=color,
894
		Size=scale,
895
		Mesh={MeshType=Enum.MeshType.Sphere},
896
		CFrame=pos,
897
		FXSettings={
898
			EndSize=endScale,
899
			EndIsIncrement=increment
900
		}
901
	}
902
end
903
904
function BlastFX(duration,color,scale,pos,endScale,increment)
905
	return Effect{
906
		Frames=duration,
907
		Effect='ResizeAndFade',
908
		Color=color,
909
		Size=scale,
910
		Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
911
		CFrame=pos,
912
		FXSettings={
913
			EndSize=endScale,
914
			EndIsIncrement=increment
915
		}
916
	}
917
end
918
919
function BlockFX(duration,color,scale,pos,endScale,increment)
920
	return Effect{
921
		Frames=duration,
922
		Effect='ResizeAndFade',
923
		Color=color,
924
		Size=scale,
925
		CFrame=pos,
926
		FXSettings={
927
			EndSize=endScale,
928
			EndIsIncrement=increment
929
		}
930
	}
931
end
932
933
function ShootBullet(data)
934
	--ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
935
	local Size = data.Size or V3.N(2,2,2)
936
	local Color = data.Color or MagicVariant.EffectColor or MagicVariant.Color
937
	local StudsPerFrame = data.Speed or 10
938
	local Shape = data.Shape or 'Ball'
939
	local Frames = data.Frames or 160
940
	local Pos = data.Origin or Torso.CFrame
941
	local Direction = data.Direction or Mouse.Hit
942
	local Material = data.Material or Enum.Material.Neon
943
	local OnHit = data.HitFunction or function(hit,pos)
944
		Effect{
945
			Effect='ResizeAndFade',
946
			Color=Color,
947
			Size=V3.N(10,10,10),
948
			Mesh={MeshType=Enum.MeshType.Sphere},
949
			CFrame=CF.N(pos),
950
			FXSettings={
951
				EndSize=V3.N(.05,.05,.05),
952
				EndIsIncrement=true
953
			}
954
		}
955
		for i = 1, 5 do
956
			local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
957
			Effect{
958
				Effect='Fade',
959
				Frames=65,
960
				Size=V3.N(5,5,10),
961
				CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
962
				Mesh = {MeshType=Enum.MeshType.Sphere},
963
				Material=Enum.Material.Neon,
964
				Color=Color,
965
				MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
966
			}	
967
		end
968
		AOEDamage(pos,10,15,30,0,'Normal',10,4)
969
	end	
970
	
971
	local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
972
	local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
973
	if(Shape == 'Ball')then
974
		BMesh.MeshType = Enum.MeshType.Sphere
975
	elseif(Shape == 'Head')then
976
		BMesh.MeshType = Enum.MeshType.Head
977
	elseif(Shape == 'Cylinder')then
978
		BMesh.MeshType = Enum.MeshType.Cylinder
979
	end
980
	
981
	coroutine.wrap(function()
982
		for i = 1, Frames+1 do
983
			local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
984
			if(hit)then
985
				OnHit(hit,pos,norm,dist)
986
				break;
987
			else
988
				Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
989
			end
990
			swait()
991
		end
992
		Bullet:destroy()
993
	end)()
994
	
995
end
996
997
function Zap(data)
998
	local sCF,eCF = data.StartCFrame,data.EndCFrame
999
	assert(sCF,"You need a start CFrame!")
1000
	assert(eCF,"You need an end CFrame!")
1001
	local parts = data.PartCount or 15
1002
	local zapRot = data.ZapRotation or {-5,5}
1003
	local startThick = data.StartSize or 3;
1004
	local endThick = data.EndSize or startThick/2;
1005
	local color = data.Color or BrickColor.new'Electric blue'
1006
	local delay = data.Delay or 35
1007
	local delayInc = data.DelayInc or 0
1008
	local lastLightning;
1009
	local MagZ = (sCF.p - eCF.p).magnitude
1010
	local thick = startThick
1011
	local inc = (startThick/parts)-(endThick/parts)
1012
	
1013
	for i = 1, parts do
1014
		local pos = sCF.p
1015
		if(lastLightning)then
1016
			pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
1017
		end
1018
		delay = delay + delayInc
1019
		local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
1020
		local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
1021
		if(parts == i)then
1022
			local MagZ = (pos-eCF.p).magnitude
1023
			zapPart.Size = V3.N(endThick,endThick,MagZ)
1024
			zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
1025
			Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
1026
		else
1027
			zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
1028
		end
1029
		
1030
		lastLightning = zapPart
1031
		Effect{Effect='Fade',Manual=zapPart,Frames=delay}
1032
		
1033
		thick=thick-inc
1034
		
1035
	end
1036
end
1037
1038
function Zap2(data)
1039
	local Color = data.Color or BrickColor.new'Electric blue'
1040
	local StartPos = data.Start or Torso.Position
1041
	local EndPos = data.End or Mouse.Hit.p
1042
	local SegLength = data.SegL or 2
1043
	local Thicc = data.Thickness or 0.5
1044
	local Fades = data.Fade or 45
1045
	local Parent = data.Parent or Effects
1046
	local MaxD = data.MaxDist or 200
1047
	local Branch = data.Branches or false
1048
	local Material = data.Material or Enum.Material.Neon
1049
	local Raycasts = data.Raycasts or false
1050
	local Offset = data.Offset or {0,360}
1051
	local AddMesh = (data.Mesh == nil and true or data.Mesh)
1052
	if((StartPos-EndPos).magnitude > MaxD)then
1053
		EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
1054
	end
1055
	local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
1056
	if(Raycasts)then
1057
		hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)	
1058
	end
1059
	local segments = dist/SegLength
1060
	local model = IN("Model",Parent)
1061
	model.Name = 'Lightning'
1062
	local Last;
1063
	for i = 1, segments do
1064
		local size = (segments-i)/25
1065
		local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
1066
		if(AddMesh)then IN("CylinderMesh",prt) end
1067
		if(Last and math.floor(segments) == i)then
1068
			local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
1069
			prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
1070
			prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)	
1071
		elseif(not Last)then
1072
			prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)	
1073
		else
1074
			prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
1075
		end
1076
		Last = prt
1077
		if(Branch)then
1078
			local choice = M.RNG(1,7+((segments-i)*2))
1079
			if(choice == 1)then
1080
				local LastB;
1081
				for i2 = 1,M.RNG(2,5) do
1082
					local size2 = ((segments-i)/35)/i2
1083
					local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
1084
					if(AddMesh)then IN("CylinderMesh",prt) end
1085
					if(not LastB)then
1086
						prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
1087
					else
1088
						prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
1089
					end
1090
					LastB = prt
1091
				end
1092
			end
1093
		end
1094
	end
1095
	if(Fades > 0)then
1096
		coroutine.wrap(function()
1097
			for i = 1, Fades do
1098
				for _,v in next, model:children() do
1099
					if(v:IsA'BasePart')then
1100
						v.Transparency = (i/Fades)
1101
					end
1102
				end
1103
				swait()
1104
			end
1105
			model:destroy()
1106
		end)()
1107
	else
1108
		S.Debris:AddItem(model,.01)
1109
	end
1110
	return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
1111
end
1112
1113
function Tween(obj,props,time,easing,direction,repeats,backwards)
1114
	local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
1115
	local tween = S.TweenService:Create(obj, info, props)
1116
	
1117
	tween:Play()
1118
end
1119
1120
function Effect(data)
1121
	local FX = data.Effect or 'ResizeAndFade'
1122
	local Parent = data.Parent or Effects
1123
	local Color = data.Color or C3.N(0,0,0)
1124
	local Size = data.Size or V3.N(1,1,1)
1125
	local MoveDir = data.MoveDirection or nil
1126
	local MeshData = data.Mesh or nil
1127
	local SndData = data.Sound or nil
1128
	local Frames = data.Frames or 45
1129
	local Manual = data.Manual or nil
1130
	local Material = data.Material or Enum.Material.Neon
1131
	local CFra = data.CFrame or Torso.CFrame
1132
	local Settings = data.FXSettings or {}
1133
	local Shape = data.Shape or Enum.PartType.Block
1134
	local Snd,Prt,Msh;
1135
	coroutine.wrap(function()
1136
		if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
1137
			Prt = Manual
1138
		else
1139
			Prt = Part(Parent,Color,Material,Size,CFra,true,false)
1140
			Prt.Shape = Shape
1141
		end
1142
		if(typeof(MeshData) == 'table')then
1143
			Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
1144
		elseif(typeof(MeshData) == 'Instance')then
1145
			Msh = MeshData:Clone()
1146
			Msh.Parent = Prt
1147
		elseif(Shape == Enum.PartType.Block)then
1148
			Msh = Mesh(Prt,Enum.MeshType.Brick)
1149
		end
1150
		if(typeof(SndData) == 'table')then
1151
			Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
1152
		elseif(typeof(SndData) == 'Instance')then
1153
			Snd = SndData
1154
		end
1155
		if(Snd)then
1156
			repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
1157
			Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
1158
		end
1159
		Size = (Msh and Msh.Scale or Size)
1160
		local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
1161
		
1162
		local MoveSpeed = nil;
1163
		if(MoveDir)then
1164
			MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
1165
		end
1166
		if(FX ~= 'Arc')then
1167
			for Frame = 1, Frames do
1168
				if(FX == "Fade")then
1169
					Prt.Transparency  = (Frame/Frames)
1170
				elseif(FX == "Resize")then
1171
					if(not Settings.EndSize)then
1172
						Settings.EndSize = V3.N(0,0,0)
1173
					end
1174
					if(Settings.EndIsIncrement)then
1175
						if(Msh)then
1176
							Msh.Scale = Msh.Scale + Settings.EndSize
1177
						else
1178
							Prt.Size = Prt.Size + Settings.EndSize
1179
						end					
1180
					else
1181
						if(Msh)then
1182
							Msh.Scale = Msh.Scale - grow/Frames
1183
						else
1184
							Prt.Size = Prt.Size - grow/Frames
1185
						end
1186
					end 
1187
				elseif(FX == "ResizeAndFade")then
1188
					if(not Settings.EndSize)then
1189
						Settings.EndSize = V3.N(0,0,0)
1190
					end
1191
					if(Settings.EndIsIncrement)then
1192
						if(Msh)then
1193
							Msh.Scale = Msh.Scale + Settings.EndSize
1194
						else
1195
							Prt.Size = Prt.Size + Settings.EndSize
1196
						end					
1197
					else
1198
						if(Msh)then
1199
							Msh.Scale = Msh.Scale - grow/Frames
1200
						else
1201
							Prt.Size = Prt.Size - grow/Frames
1202
						end
1203
					end 
1204
					Prt.Transparency = (Frame/Frames)
1205
				end
1206
				if(Settings.RandomizeCFrame)then
1207
					Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
1208
				end
1209
				if(MoveDir and MoveSpeed)then
1210
					local Orientation = Prt.Orientation
1211
					Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
1212
					Prt.Orientation = Orientation
1213
				end
1214
				swait()
1215
			end
1216
			Prt:destroy()
1217
		else
1218
			local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
1219
			if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
1220
			if(start and endP)then
1221
				local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
1222
				local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
1223
				for Frame = 0, 1, (Settings.Speed or 0.01) do
1224
					if(Settings.Home)then
1225
						endP = Settings.Home.CFrame
1226
					end
1227
					Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
1228
				end
1229
				if(Settings.RemoveOnGoal)then
1230
					Prt:destroy()
1231
				end
1232
			else
1233
				Prt:destroy()
1234
				assert(start,"You need a start position!")
1235
				assert(endP,"You need a start position!")
1236
			end
1237
		end
1238
	end)()
1239
	return Prt,Msh,Snd
1240
end
1241
function SoulSteal(whom)
1242
	local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
1243
	print(torso)
1244
	if(torso and torso:IsA'BasePart')then
1245
		local Model = Instance.new("Model",Effects)
1246
		Model.Name = whom.Name.."'s Soul"
1247
		whom:BreakJoints()
1248
		local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
1249
		Soul.Name = 'Head'
1250
		NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
1251
		Effect{
1252
			Effect="Arc",
1253
			Manual = Soul,
1254
			FXSettings={
1255
				Start=torso.CFrame,
1256
				Home = Torso,
1257
				RemoveOnGoal = true,
1258
			}
1259
		}
1260
		local lastPoint = Soul.CFrame.p
1261
	
1262
		for i = 0, 1, 0.01 do 
1263
				local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
1264
				local mag = (lastPoint - Soul.Position).magnitude
1265
				Effect{
1266
					Effect = "Fade",
1267
					CFrame = point * CF.N(0, mag/2, 0),
1268
					Size = V3.N(.5,mag+.5,.5),
1269
					Color = Soul.BrickColor
1270
				}
1271
				lastPoint = Soul.CFrame.p
1272
			swait()
1273
		end
1274
		for i = 1, 5 do
1275
			Effect{
1276
				Effect="Fade",
1277
				Color = BrickColor.new'Really red',
1278
				MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
1279
			}	
1280
		end
1281
	end
1282
end
1283
1284
--// Other Functions \\ --
1285
1286
function CastRay(startPos,endPos,range,ignoreList)
1287
	local ray = Ray.new(startPos,(endPos-startPos).unit*range)
1288
	local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
1289
	return part,pos,norm,(pos and (startPos-pos).magnitude)
1290
end
1291
1292
function CastRayInDirection(startPos,direction,range,ignoreList)
1293
	local ray = Ray.new(startPos,direction*range)
1294
	local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
1295
	return part,pos,norm,(pos and (startPos-pos).magnitude)
1296
end
1297
1298
function getRegion(point,range,ignore)
1299
    return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
1300
end
1301
1302
function clerp(startCF,endCF,alpha)
1303
	return startCF:lerp(endCF, alpha)
1304
end
1305
1306
function GetTorso(char)
1307
	return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
1308
end
1309
1310
function ShowDamage(Pos, Text, Time, Color)
1311
	coroutine.wrap(function()
1312
	local Rate = (1 / Frame_Speed)
1313
	local Pos = (Pos or Vector3.new(0, 0, 0))
1314
	local Text = (Text or "")
1315
	local Time = (Time or 2)
1316
	local Color = (Color or Color3.new(1, 0, 1))
1317
	local EffectPart = NewInstance("Part",Effects,{
1318
		Material=Enum.Material.SmoothPlastic,
1319
		Reflectance = 0,
1320
		Transparency = 1,
1321
		BrickColor = BrickColor.new(Color),
1322
		Name = "Effect",
1323
		Size = Vector3.new(0,0,0),
1324
		Anchored = true,
1325
		CFrame = CF.N(Pos)
1326
	})
1327
	local BillboardGui = NewInstance("BillboardGui",EffectPart,{
1328
		Size = UDim2.new(1.25, 0, 1.25, 0),
1329
		Adornee = EffectPart,
1330
	})
1331
	local TextLabel = NewInstance("TextLabel",BillboardGui,{
1332
		BackgroundTransparency = 1,
1333
		Size = UDim2.new(1, 0, 1, 0),
1334
		Text = Text,
1335
		Font = "Bodoni",
1336
		TextColor3 = Color,
1337
		TextStrokeColor3 = Color3.new(0,0,0),
1338
		TextStrokeTransparency=0,
1339
		TextScaled = true,
1340
	})
1341
	S.Debris:AddItem(EffectPart, (Time))
1342
	EffectPart.Parent = workspace
1343
	delay(0, function()
1344
		Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
1345
		local Frames = (Time / Rate)
1346
		for Frame = 1, Frames do
1347
			swait()
1348
			local Percent = (Frame / Frames)
1349
			TextLabel.TextTransparency = Percent
1350
			TextLabel.TextStrokeTransparency = Percent
1351
		end
1352
		if EffectPart and EffectPart.Parent then
1353
			EffectPart:Destroy()
1354
		end
1355
	end) end)()
1356
end
1357
1358
1359
function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
1360
	if(who)then
1361
		local hum = who:FindFirstChildOfClass'Humanoid'
1362
		local Damage = M.RNG(minDam,maxDam)
1363
		local canHit = true
1364
		if(hum)then
1365
			for _, p in pairs(Hit) do
1366
				if p[1] == hum then
1367
					if(time() - p[2] < 0.01) then
1368
						canHit = false
1369
					else
1370
						Hit[_] = nil
1371
					end
1372
				end
1373
			end
1374
			if(canHit)then
1375
				table.insert(Hit,{hum,time()})
1376
				if(hum.Health >= math.huge)then
1377
					who:BreakJoints()
1378
					if(who:FindFirstChild'Head' and hum.Health > 0)then
1379
						ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 1.5, C3.N(1,0,0))
1380
					end
1381
				else
1382
					local player = S.Players:GetPlayerFromCharacter(who)
1383
					if(Type == "Fire")then
1384
						--idk..
1385
					else
1386
						local  c = Instance.new("ObjectValue",hum)
1387
						c.Name = "creator"
1388
						c.Value = Plr
1389
						game:service'Debris':AddItem(c,0.35)
1390
						if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
1391
							if(who:FindFirstChild'Head' and hum.Health > 0)then
1392
								ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
1393
							end
1394
							hum.Health = hum.Health - Damage*(critMult or 2)
1395
						else
1396
							if(who:FindFirstChild'Head' and hum.Health > 0)then
1397
								ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), Damage, 1.5, DamageColor.Color)
1398
							end
1399
							hum.Health = hum.Health - Damage
1400
						end
1401
						if(Type == 'Knockback' and GetTorso(who))then
1402
							local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
1403
							local body = NewInstance('BodyVelocity',GetTorso(who),{
1404
								P = 500,
1405
								maxForce = V3.N(math.huge,0,math.huge),
1406
								velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
1407
							})
1408
							game:service'Debris':AddItem(body,.5)
1409
						elseif(Type == "Electric")then
1410
							if(M.RNG(1,100) >= critChance)then
1411
								if(who:FindFirstChild'Head' and hum.Health > 0)then
1412
									ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 1.5, BrickColor.new"New Yeller".Color)
1413
								end
1414
								local asd = hum.WalkSpeed/2
1415
								hum.WalkSpeed = asd
1416
								local paralyzed = true
1417
								coroutine.wrap(function()
1418
									while paralyzed do
1419
										swait(25)
1420
										if(M.RNG(1,25) == 1)then
1421
											if(who:FindFirstChild'Head' and hum.Health > 0)then
1422
												ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 1.5, BrickColor.new"New Yeller".Color)
1423
											end
1424
											hum.PlatformStand = true
1425
										end
1426
									end
1427
								end)()
1428
								delay(4, function()
1429
									paralyzed = false
1430
									hum.WalkSpeed = hum.WalkSpeed + asd
1431
								end)
1432
							end
1433
							
1434
						elseif(Type == 'Knockdown' and GetTorso(who))then
1435
							local rek = GetTorso(who)
1436
							hum.PlatformStand = true
1437
							delay(1,function()
1438
								hum.PlatformStand = false
1439
							end)
1440
							local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
1441
							local bodvol = NewInstance("BodyVelocity",rek,{
1442
								velocity = angle * Knock,
1443
								P = 5000,
1444
								maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
1445
							})
1446
							local rl = NewInstance("BodyAngularVelocity",rek,{
1447
								P = 3000,
1448
								maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1449
								angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1450
							})
1451
							game:GetService("Debris"):AddItem(bodvol, .5)
1452
							game:GetService("Debris"):AddItem(rl, .5)
1453
						end
1454
					end
1455
				end
1456
			end
1457
		end
1458
	end
1459
end
1460
1461
function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
1462
	for _,v in next, getRegion(where,range,{Char}) do
1463
		if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
1464
			coroutine.wrap(function() for i = 1, M.RNG(minDam,maxDam) do swait() DealDamage(v.Parent,1,1,Knock,Type,0,1) end end)()
1465
		end
1466
	end
1467
end
1468
1469
function AOEHeal(where,range,amount)
1470
	local healed = {}
1471
	for _,v in next, getRegion(where,range,{Char}) do
1472
		local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
1473
		if(hum and not healed[hum])then
1474
			hum.Health = hum.Health + amount
1475
			if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
1476
				ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
1477
			end
1478
		end
1479
	end
1480
end
1481
1482
function CamShake(who,times,intense,origin) 
1483
	coroutine.wrap(function()
1484
		if(script:FindFirstChild'CamShake')then
1485
			local cam = script.CamShake:Clone()
1486
			cam:WaitForChild'intensity'.Value = intense
1487
			cam:WaitForChild'times'.Value = times
1488
			
1489
	 		if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
1490
			cam.Parent = who
1491
			wait()
1492
			cam.Disabled = false
1493
		elseif(who == Plr or who == Char)then
1494
			local intensity = intense
1495
			local cam = workspace.CurrentCamera
1496
			for i = 1, times do
1497
				local camDistFromOrigin
1498
				if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
1499
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
1500
				elseif(typeof(origin) == 'Vector3')then
1501
					camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
1502
				end
1503
				if(camDistFromOrigin)then
1504
					intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
1505
				end
1506
				cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
1507
				swait()
1508
			end
1509
		end
1510
	end)()
1511
end
1512
1513
function CamShakeAll(times,intense,origin)
1514
	for _,v in next, Plrs:players() do
1515
		CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
1516
	end
1517
end
1518
1519
function ServerScript(code)
1520
	if(script:FindFirstChild'Loadstring')then
1521
		local load = script.Loadstring:Clone()
1522
		load:WaitForChild'Sauce'.Value = code
1523
		load.Disabled = false
1524
		load.Parent = workspace
1525
	elseif(NS and typeof(NS) == 'function')then
1526
		NS(code,workspace)
1527
	else
1528
		warn("no serverscripts lol")
1529
	end	
1530
end
1531
1532
function LocalOnPlayer(who,code)
1533
	ServerScript([[
1534
		wait()
1535
		script.Parent=nil
1536
		if(not _G.Http)then _G.Http = game:service'HttpService' end
1537
		
1538
		local Http = _G.Http or game:service'HttpService'
1539
		
1540
		local source = ]].."[["..code.."]]"..[[
1541
		local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
1542
		local asd = Http:PostAsync(link,source)
1543
		repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
1544
		local ID = Http:JSONDecode(asd).Result.Require_ID
1545
		local vs = require(ID).VORTH_SCRIPT
1546
		vs.Parent = game:service'Players'.]]..who.Name..[[.Character
1547
	]])
1548
end
1549
1550
1551
--// Attack Functions \\--
1552
function Laser(key)
1553
	NeutralAnims = false
1554
	Attack = true
1555
	Root.Anchored = true
1556
	local data = MagicCircle{Weld=Torso,Pos=CF.N(0,0,-4),Size=5,Variant=MagicVariant,Time=.5}
1557
	local IsGrown = false
1558
	data.Grown:connect(function() IsGrown = true end)
1559
	repeat swait() 
1560
		local Alpha = .1
1561
		LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(125),0,0),Alpha)
1562
		RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(125),0,0),Alpha)
1563
		RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1564
		NK.C0 = NK.C0:lerp(NKC0,Alpha)
1565
		LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1566
		RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1567
		local LookVector = Mouse.Hit.p
1568
		Torso.CFrame = CF.N(Root.Position,LookVector) 
1569
	until IsGrown
1570
	if(S.UserInputService:IsKeyDown(key))then
1571
		local grown = 0
1572
		repeat 
1573
			local Alpha = .1
1574
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(125),0,0),Alpha)
1575
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(125),0,0),Alpha)
1576
			RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1577
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1578
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1579
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1580
			local LookVector = Mouse.Hit.p
1581
			Root.CFrame = CF.N(Root.Position,LookVector)
1582
			if(grown < 250)then
1583
				data.Grow(.05)
1584
				grown = grown + 1
1585
			end
1586
			swait()
1587
		until not S.UserInputService:IsKeyDown(key)
1588
	end
1589
	Sound(data.Circle,340722848,1,1,false,true,true)
1590
	local hit,pos,norm,dist = CastRay(data.Circle.CFrame.p,Mouse.Hit.p,1024)
1591
	local part = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data.Mesh.Scale.x/40,data.Mesh.Scale.x/40),CF.N(data.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
1592
	Mesh(part,Enum.MeshType.Cylinder)
1593
	Tween(part,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
1594
	Effect{
1595
		Effect='ResizeAndFade',
1596
		Color=MagicVariant.Color,
1597
		Size=V3.N(data.Mesh.Scale.X/20,data.Mesh.Scale.X/20,data.Mesh.Scale.X/20),
1598
		Mesh={MeshType=Enum.MeshType.Sphere},
1599
		CFrame=CF.N(pos),
1600
		FXSettings={
1601
			EndSize=V3.N(.05,.05,.05),
1602
			EndIsIncrement=true
1603
		}
1604
	}
1605
	for i = 1, 5 do
1606
		local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
1607
		Effect{
1608
			Effect='Fade',
1609
			Frames=65,
1610
			Size=V3.N((data.Mesh.Scale.X/20)/2,(data.Mesh.Scale.X/20)/2,data.Mesh.Scale.X/20),
1611
			CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data.Mesh.Scale.X/20)).p,pos),
1612
			Mesh = {MeshType=Enum.MeshType.Sphere},
1613
			Material=Enum.Material.Neon,
1614
			Color=MagicVariant.Color,
1615
			MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
1616
		}	
1617
	end
1618
	AOEDamage(pos,data.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
1619
	coroutine.wrap(function()
1620
		local frame = (1/30)
1621
		for i = 1, 30 do
1622
			part.Transparency = (i/30)
1623
			swait()
1624
		end
1625
		part:destroy()
1626
	end)()
1627
	Attack = false
1628
	NeutralAnims = true
1629
	Root.Anchored = false
1630
	data.Destroy()
1631
end
1632
1633
function Balls(key)
1634
	NeutralAnims = false
1635
	Attack = true
1636
	Root.Anchored = true
1637
	local data = MagicCircle{Weld=Torso,Pos=CF.N(0,2,-1),Size=5,Variant=MagicVariant,Time=.5}
1638
	local IsGrown = false
1639
	data.Grown:connect(function() IsGrown = true end)
1640
	repeat swait() 
1641
		local Alpha = .1
1642
		local idk = M.R(25)
1643
		LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1644
		RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1645
		RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1646
		NK.C0 = NK.C0:lerp(NKC0,Alpha)
1647
		LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1648
		RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1649
		local LookVector = Mouse.Hit.p
1650
		Torso.CFrame = CF.N(Root.Position,LookVector) 
1651
	until IsGrown
1652
	local projectiles = 5
1653
	if(S.UserInputService:IsKeyDown(key))then
1654
		local grown = 0
1655
		repeat 
1656
			local Alpha = .1
1657
			local idk = M.R(25)
1658
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1659
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1660
			RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1661
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1662
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1663
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1664
			local LookVector = Mouse.Hit.p
1665
			Root.CFrame = CF.N(Root.Position,LookVector)
1666
			if(grown < 250)then
1667
				data.Grow(.05)
1668
				grown = grown + 1
1669
				projectiles = projectiles + .05
1670
			end
1671
			swait()
1672
		until not S.UserInputService:IsKeyDown(key)
1673
	end
1674
	for i = 1, math.floor(projectiles) do
1675
		data.Grow(-math.floor(projectiles)/20)
1676
		local LookVector = Mouse.Hit.p
1677
		Root.CFrame = CF.N(Root.Position,LookVector)
1678
		ShootBullet{Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
1679
		swait(1)
1680
	end
1681
	
1682
	Attack = false
1683
	NeutralAnims = true
1684
	Root.Anchored = false
1685
	data.Destroy()
1686
end
1687
1688
function DLaser(key)
1689
	NeutralAnims = false
1690
	Attack = true
1691
	Root.Anchored = true
1692
	local data1 = MagicCircle{Weld=Torso,Pos=CF.N(-5,5,2),Size=5,Variant=MagicVariant,Time=.5}
1693
	local data2 = MagicCircle{Weld=Torso,Pos=CF.N(5,5,2),Size=5,Variant=MagicVariant,Time=.5}
1694
	local IsGrown = false
1695
	data1.Grown:connect(function() IsGrown = true end)
1696
	repeat swait() 
1697
		local Alpha = .1
1698
		local idk = M.R(25)
1699
		LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1700
		RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1701
		RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1702
		NK.C0 = NK.C0:lerp(NKC0,Alpha)
1703
		LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1704
		RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1705
		local LookVector = Mouse.Hit.p
1706
		Torso.CFrame = CF.N(Root.Position,LookVector) 
1707
	until IsGrown
1708
	if(S.UserInputService:IsKeyDown(key))then
1709
		local grown = 0
1710
		repeat 
1711
			local Alpha = .1
1712
			local idk = M.R(25)
1713
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1714
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1715
			RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1716
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1717
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1718
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1719
			local LookVector = Mouse.Hit.p
1720
			Root.CFrame = CF.N(Root.Position,LookVector)
1721
			if(grown < 250)then
1722
				data1.Grow(.05)
1723
				data2.Grow(.05)
1724
				grown = grown + 1
1725
			end
1726
			swait()
1727
		until not S.UserInputService:IsKeyDown(key)
1728
	end
1729
	Sound(data1.Circle,340722848,1,1,false,true,true)
1730
	Sound(data2.Circle,340722848,1,1,false,true,true)
1731
	local hit,pos,norm,dist = CastRay(data1.Circle.CFrame.p,Mouse.Hit.p,1024)
1732
	local part1 = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data1.Mesh.Scale.x/40,data1.Mesh.Scale.x/40),CF.N(data1.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
1733
	Mesh(part1,Enum.MeshType.Cylinder)
1734
	
1735
	
1736
	local part2 = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data2.Mesh.Scale.x/40,data2.Mesh.Scale.x/40),CF.N(data2.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
1737
	Mesh(part2,Enum.MeshType.Cylinder)
1738
	Tween(part1,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
1739
	Tween(part2,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
1740
	Effect{
1741
		Effect='ResizeAndFade',
1742
		Color=MagicVariant.Color,
1743
		Size=V3.N(data1.Mesh.Scale.X/20,data1.Mesh.Scale.X/20,data1.Mesh.Scale.X/20),
1744
		Mesh={MeshType=Enum.MeshType.Sphere},
1745
		CFrame=CF.N(pos),
1746
		FXSettings={
1747
			EndSize=V3.N(.05,.05,.05),
1748
			EndIsIncrement=true
1749
		}
1750
	}
1751
	for i = 1, 5 do
1752
		local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
1753
		Effect{
1754
			Effect='Fade',
1755
			Frames=65,
1756
			Size=V3.N((data1.Mesh.Scale.X/20)/2,(data1.Mesh.Scale.X/20)/2,data1.Mesh.Scale.X/20),
1757
			CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data1.Mesh.Scale.X/20)).p,pos),
1758
			Mesh = {MeshType=Enum.MeshType.Sphere},
1759
			Material=Enum.Material.Neon,
1760
			Color=MagicVariant.Color,
1761
			MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
1762
		}	
1763
	end
1764
	AOEDamage(pos,data1.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
1765
	AOEDamage(pos,data2.Mesh.Scale.X/20,15,45,0,'Normal',10,4)
1766
	coroutine.wrap(function()
1767
		local frame = (1/30)
1768
		for i = 1, 30 do
1769
			part1.Transparency = (i/30)
1770
			part2.Transparency = (i/30)
1771
			swait()
1772
		end
1773
		part1:destroy()
1774
		part2:destroy()
1775
	end)()
1776
	Attack = false
1777
	NeutralAnims = true
1778
	Root.Anchored = false
1779
	data1.Destroy()
1780
	data2.Destroy()
1781
end
1782
1783
1784
function BLaser(key)
1785
	NeutralAnims = false
1786
	Attack = true
1787
	Root.Anchored = true
1788
	local data = MagicCircle{Weld=Torso,Pos=CF.N(0,10,10),Size=15,Variant=MagicVariant,Time=.75}
1789
	local IsGrown = false
1790
	data.Grown:connect(function() IsGrown = true end)
1791
	repeat swait() 
1792
		local Alpha = .1
1793
		local idk = M.R(25)
1794
		LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1795
		RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1796
		RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1797
		NK.C0 = NK.C0:lerp(NKC0,Alpha)
1798
		LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1799
		RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1800
		local LookVector = Mouse.Hit.p
1801
		Torso.CFrame = CF.N(Root.Position,LookVector) 
1802
	until IsGrown
1803
	if(S.UserInputService:IsKeyDown(key))then
1804
		local grown = 0
1805
		repeat 
1806
			local Alpha = .1
1807
			local idk = M.R(25)
1808
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1809
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1810
			RJ.C0 = RJ.C0:lerp(RJC0,Alpha)
1811
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1812
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1813
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1814
			local LookVector = Mouse.Hit.p
1815
			Root.CFrame = CF.N(Root.Position,LookVector)
1816
			swait()
1817
		until not S.UserInputService:IsKeyDown(key)
1818
	end
1819
	
1820
	local hit,pos,norm,dist = CastRay(data.Circle.CFrame.p,Mouse.Hit.p,1024)
1821
	local part = Part(Effects,MagicVariant.EffectColor or MagicVariant.Color,Enum.Material.Neon,V3.N(dist,data.Mesh.Scale.x/40,data.Mesh.Scale.x/40),CF.N(data.Circle.CFrame.p,pos)*CF.N(0,0,-dist/2)*CF.A(0,M.P/2,0),true,false)
1822
	Mesh(part,Enum.MeshType.Cylinder)
1823
	Tween(part,{Color=C3.N(1,1,1)},1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false)
1824
	local aa = data.Circle:Clone();
1825
	aa.Parent = Effects
1826
	aa.Anchored = true
1827
	local blast = Sound(aa,334702766,1,5,false,true,true)
1828
	data.Circle:destroy()
1829
	if(not blast.IsLoaded)then repeat swait() until blast.IsLoaded end
1830
	Effect{
1831
		Effect='ResizeAndFade',
1832
		Color=MagicVariant.Color,
1833
		Size=V3.N(data.Mesh.Scale.X/20,data.Mesh.Scale.X/20,data.Mesh.Scale.X/20),
1834
		Mesh={MeshType=Enum.MeshType.Sphere},
1835
		CFrame=CF.N(pos),
1836
		Sound=blast,
1837
		FXSettings={
1838
			EndSize=V3.N(.05,.05,.05),
1839
			EndIsIncrement=true
1840
		}
1841
	}
1842
	for i = 1, 5 do
1843
		local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
1844
		Effect{
1845
			Effect='Fade',
1846
			Frames=65,
1847
			Sound=blast,
1848
			Size=V3.N((data.Mesh.Scale.X/20)/2,(data.Mesh.Scale.X/20)/2,data.Mesh.Scale.X/20),
1849
			CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-(data.Mesh.Scale.X/20)).p,pos),
1850
			Mesh = {MeshType=Enum.MeshType.Sphere},
1851
			Material=Enum.Material.Neon,
1852
			Color=MagicVariant.Color,
1853
			MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
1854
		}	
1855
	end
1856
	AOEDamage(pos,data.Mesh.Scale.X/20,45,75,0,'Normal',10,4)
1857
	coroutine.wrap(function()
1858
		for i = 1, (blast.TimeLength*Frame_Speed) do
1859
			part.Transparency = (i/(blast.TimeLength*Frame_Speed))
1860
			for _,v in next, aa:children() do if v:IsA'Decal' then v.Transparency = (i/(blast.TimeLength*Frame_Speed)) end end
1861
			swait()
1862
		end
1863
		aa:destroy()
1864
		part:destroy()
1865
	end)()
1866
	
1867
	Attack = false
1868
	NeutralAnims = true
1869
	Root.Anchored = false
1870
	Root.Velocity = Mouse.Hit.lookVector*-125
1871
end
1872
1873
function Skill1()
1874
	Laser(Enum.KeyCode.Q)
1875
end
1876
1877
function Skill2()
1878
	DLaser(Enum.KeyCode.Z)
1879
end
1880
1881
function Skill3()
1882
	BLaser(Enum.KeyCode.X)
1883
end
1884
1885
--// Wrap it all up \\--
1886
1887
Mouse.KeyDown:connect(function(k)
1888
	if(Attack)then return end
1889
	if(k == 'q')then Skill1() end
1890
	if(k == 'e')then Skill2() end
1891
	if(k == 'r')then Skill3() end
1892
end)
1893
1894
Plr.Chatted:connect(function(m)
1895
	
1896
	if(m:sub(1,3) == '/e ')then
1897
		local msg = m:sub(4)
1898
		--emote commands (gotta do)
1899
	end
1900
end)
1901
while true do
1902
	swait()
1903
	Sine = Sine + Change
1904
1905
	local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4)), Char)
1906
	
1907
	local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
1908
	local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed > 24 and "Run" or "Walk") or hitfloor and "Idle")
1909
	if(not Effects or not Effects.Parent)then
1910
		Effects = IN("Model",Char)
1911
		Effects.Name = "Effects"
1912
	end																																																																																																				
1913
	if(State == 'Run')then
1914
		local wsVal = 20 / (Hum.WalkSpeed/16)
1915
		local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1916
		Change = 3
1917
		RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
1918
		LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)	
1919
	elseif(State == 'Walk')then
1920
		local wsVal = 20 / (Hum.WalkSpeed/16)
1921
		local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
1922
		Change = 3
1923
		RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
1924
		LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)	
1925
	else
1926
		RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
1927
		LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
1928
	end	
1929
1930
	Hum.WalkSpeed = WalkSpeed
1931
	
1932
	if(NeutralAnims)then	
1933
		if(State == 'Idle')then
1934
			local Alpha = .1
1935
			Change = .75
1936
			RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0+.2*M.C(Sine/12),.2*M.C(Sine/6),0)*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
1937
			NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha)
1938
			LS.C0 = LS.C0:lerp(LSC0*CF.N(.25,0,0)*CF.A(M.R(-45),0,M.R(45+5*M.C(Sine/12))),Alpha)
1939
			RS.C0 = RS.C0:lerp(RSC0*CF.N(-.25,0,0)*CF.A(M.R(-45),0,M.R(-45-5*M.C(Sine/12))),Alpha)
1940
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(10),0),Alpha)
1941
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(-10),0),Alpha)
1942
			-- idle
1943
		elseif(State == 'Run')then
1944
			local wsVal = 20 / (Hum.WalkSpeed/16)
1945
			local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
1946
			RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
1947
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1948
			LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
1949
			RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
1950
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
1951
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
1952
		elseif(State == 'Walk')then
1953
			local wsVal = 20 / (Hum.WalkSpeed/16)
1954
			local Alpha = math.min(.3 * (Hum.WalkSpeed/16),1)
1955
			RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
1956
			NK.C0 = NK.C0:lerp(NKC0,Alpha)
1957
			LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
1958
			RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.22*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
1959
			LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
1960
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
1961
		elseif(State == 'Jump')then
1962
			local Alpha = .1
1963
			local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
1964
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
1965
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
1966
			RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1967
			NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1968
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1969
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1970
		elseif(State == 'Fall')then
1971
			local Alpha = .1
1972
			local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
1973
			LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
1974
			RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
1975
			RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1976
			NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
1977
			LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
1978
			RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
1979
		elseif(State == 'Paralyzed')then
1980
			-- paralyzed
1981
		elseif(State == 'Sit')then
1982
			-- sit
1983
		end
1984
	end
1985
	
1986
end