View difference between Paste ID: cQdvBaWx and 728z6D45
SHOW: | | - or go back to the newest paste.
1-
--https://github.com/Mokiros/roblox-FE-compatibility
1+
2-
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2+
3-
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3+
4-
local RealPlayer = Player
4+
5-
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5+
6
local Character = Player.Character
7
local Humanoid = Character.Humanoid
8
local char = Player.Character
9
local mouse = Player:GetMouse()
10
local m = Instance.new('Model', Character)
11
m.Name = "WeaponModel"
12
local LeftArm = Character["Left Arm"]
13
local RightArm = Character["Right Arm"]
14
local LeftLeg = Character["Left Leg"]
15
local RightLeg = Character["Right Leg"]
16
local Head = Character.Head
17
local Torso = Character.Torso
18
local cam = game.Workspace.CurrentCamera
19
local RootPart = Character.HumanoidRootPart
20
local RootJoint = RootPart.RootJoint
21
local equipped = false
22
local attack = false
23
local Anim = 'Idle'
24
local idle = 0
25
local attacktype = 1
26
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
27
local velocity = RootPart.Velocity.y
28
local sine = 0
29
local change = 1
30
local FPS = 0
31
local grabbed = false
32
local cn = CFrame.new
33
local mr = math.rad
34
local angles = CFrame.Angles
35
local ud = UDim2.new
36
local c3 = Color3.new
37
38
Humanoid.Animator:Destroy()
39
40
Character.Animate:Destroy()
41
42
--[[Credits to SazErenos for his Artificial Heartbeat]]--
43
44
ArtificialHB = Instance.new("BindableEvent", script)
45
ArtificialHB.Name = "Heartbeat"
46
47
script:WaitForChild("Heartbeat")
48
49
frame = 1 / 30
50
tf = 0
51
allowframeloss = false
52
tossremainder = false
53
lastframe = tick()
54
script.Heartbeat:Fire()
55
56
game:GetService("RunService").Heartbeat:connect(function(s, p)
57
	tf = tf + s
58
	if tf >= frame then
59
		if allowframeloss then
60
			script.Heartbeat:Fire()
61
			lastframe = tick()
62
		else
63
			for i = 1, math.floor(tf / frame) do
64
				script.Heartbeat:Fire()
65
			end
66
			lastframe = tick()
67
		end
68
		if tossremainder then
69
			tf = 0
70
		else
71
			tf = tf - frame * math.floor(tf / frame)
72
		end
73
	end
74
end)
75
--------------------------------------
76
plr=game:service'Players'.LocalPlayer
77
chr=plr.Character
78
local ms = plr:GetMouse()
79
CV="Bright red"
80
 
81
local txt = Instance.new("BillboardGui", chr)
82
txt.Adornee = chr.Head
83
txt.Name = "_status"
84
txt.Size = UDim2.new(4, 0, 2.5, 0)
85
txt.StudsOffset = Vector3.new(-4, 2, 0)
86
local text = Instance.new("TextLabel", txt)
87
text.Size = UDim2.new(3, 0, 0.5, 0)
88
text.FontSize = "Size24"
89
text.TextScaled = true
90
text.TextTransparency = 0
91
text.BackgroundTransparency = 1
92
text.TextTransparency = 0
93
text.TextStrokeTransparency = 0
94
text.Font = "Garamond"
95
text.TextStrokeColor3 = Color3.new(128,128,128)
96
text.Text = "Dragonborn" 
97
--------------------------------------
98
plr=game:service'Players'.LocalPlayer
99
chr=plr.Character
100
local ms = plr:GetMouse()
101
CV="Bright red"
102
 
103
local txt = Instance.new("BillboardGui", chr)
104
txt.Adornee = chr.Head
105
txt.Name = "_status"
106
txt.Size = UDim2.new(4, 0, 2.5, 0)
107
txt.StudsOffset = Vector3.new(-4, 1.5, 0)
108
local text = Instance.new("TextLabel", txt)
109
text.Size = UDim2.new(3, 0, 0.5, 0)
110
text.FontSize = "Size24"
111
text.TextScaled = false
112
text.TextTransparency = 0
113
text.BackgroundTransparency = 1
114
text.TextTransparency = 0
115
text.TextStrokeTransparency = 0
116
text.Font = "Garamond"
117
text.TextStrokeColor3 = Color3.new(128,128,128)
118
text.Text = "by bannaboy43" 
119
---------------------shout---------------------------------------------------------
120
local plr = game:GetService"Players".LocalPlayer;local mouse = plr:GetMouse()
121
repeat wait() until plr.Character;local char = plr.Character;local hr = char:WaitForChild"HumanoidRootPart";local plrHum;repeat wait()plrHum = char:FindFirstChildWhichIsA"Humanoid" until  plrHum~=nil;local keydown = false;local playing = false;rt = 0 ;m = Instance.new"Part";meshID = 'rbxassetid://1471350128' ;gc = game.Workspace.CurrentCamera;BLAST_FORCE = 2000
122
local s;fire = function()local pos = hr.CFrame + hr.CFrame.lookVector *5 + Vector3.new(0,1.5,0)for i =1,1 do local m2 = m:Clone();local mesh = Instance.new("FileMesh")mesh.MeshId = 'rbxassetid://1471350128';mesh.Parent= m2;m2.Size = Vector3.new(5,5,.5);local bv = Instance.new'BodyVelocity';
123
bv.MaxForce= Vector3.new(math.huge,math.huge,math.huge);m2.CFrame = pos;bv.Velocity = m2.CFrame.lookVector *180;m2.Locked = true;m2.CanCollide = false;m2.Anchored = false;bv.Parent = m2;m2.Parent = workspace;coroutine.resume(coroutine.create(function()for a =1,5 do m2.Size = Vector3.new(a*2,a*2,.5)mesh.Scale = Vector3.new(a*2,a*2,.5)wait();end;end));m2.Touched:connect(function(hit)
124
if  hit.Name ~= "Baseplate" and hit.Name ~="Base" then
125
hit.Anchored = false;hit:BreakJoints()local blastForce = Instance.new('BodyForce', hit) blastForce.force =  m2.CFrame.lookVector * BLAST_FORCE * hit:GetMass()
126
game.Debris:AddItem(blastForce,.1)end;end)wait()game.Debris:AddItem(m2,2)end;--[[GETOUT OF ME CODE M8]]end;deb = function ()hr.Anchored = false;wait(rt)keydown = false end;mouse.KeyDown:connect(function(key)key = key:lower()if key == 't' and keydown == false then local m2 =m:Clone()s=nil;m2.Locked = true;m2.Size = Vector3.new(5,5,.5)keydown = true;while keydown == true do hr.Anchored = true
127
hr.CFrame = CFrame.new(hr.Position,mouse.Hit.p)m2.Size = m2.Size + Vector3.new(.5,.5,0)
128
m2.CFrame = hr.CFrame+ hr.CFrame.lookVector *2;s = m2.Size;wait()end;game.Debris:AddItem(m2,0.11)end;end)
129
ku = function(key)key = key:lower()if key == 't' and keydown ~= nil  then local s = Instance.new("Sound");s.SoundId = 'rbxassetid://149576324';s.Volume =4;s.Parent = workspace s:Play();wait(1)coroutine.resume(coroutine.create(fire))keydown = nil;deb();end;end;mouse.KeyUp:connect(ku)
130
----------------------Clothes-------------------------------
131
--[Quicksilver edit by Bannaboy43 (only make edits cant stcipt ihml if this gets leaked tell people to send me scripts to make edits)
132
wait(1 / 60)
133
p = game.Players.LocalPlayer
134
char = p.Character
135
torso = char.Torso
136
neck = char.Torso.Neck
137
hum = char.Humanoid
138
139
wait()
140
hum.Health =hum.MaxHealth
141
char.Head.face.Texture = "rbxassetid://166951215"
142
143
144
145
z = Instance.new("Sound", char)
146
z.SoundId = "rbxassetid://168474998" -- Put Music ID Here.
147
z.Looped = true
148
z.Volume = 2
149
wait(.1)
150
z:Play()
151
152
153
Hat = Instance.new("Model")
154
Hat.Parent = char
155
Hat.Name = "Hat"
156
rh = Instance.new("Part")
157
rh.Parent = Hat
158
rh.BrickColor = BrickColor.new("Brown")
159
rh.Locked = true
160
rh.CanCollide = false
161
mesh = Instance.new("SpecialMesh")
162
rh.formFactor =  "Symmetric"
163
mesh.MeshType = "FileMesh"
164
mesh.MeshId = "rbxassetid://323386572"
165
mesh.Parent = rh
166
local weld = Instance.new("Weld")
167
weld.Parent = rh
168
weld.Part0 = rh
169
weld.Part1 =char.Head
170
weld.C0 = CFrame.new(0,.16,.35)*CFrame.Angles(0, 0, 0)
171
mesh.Scale = Vector3.new(1,1,1)
172
----------------------------------------------------
173
-------------Head---------------------------------
174
char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
175
176
Head = Instance.new("Part", char)
177
Head.Size = Vector3.new(1,1,1)
178
Headmesh = Instance.new("SpecialMesh", Head)
179
Headmesh.MeshId = "rbxassetid://2264333"
180
Headmesh.Scale = Vector3.new(0.417, 0.35, 0.36)
181
Headmesh.TextureId = "rbxassetid://3770870"
182
Head.Transparency = 0
183
Head.CanCollide = false
184
Head.Name = "plrHead"
185
Head.Anchored = false
186
Head.BrickColor = BrickColor.new("Really black")
187
Weld = Instance.new("Weld", char)
188
Weld.Part0 = char["Head"]
189
Weld.Part1 = Head
190
Weld.C1 = CFrame.new(0,-.5,0)*CFrame.Angles(0,(0),0)
191
-------------Shield---------------------------------
192
char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
193
194
Shield = Instance.new("Part", char)
195
Shield.Size = Vector3.new(1,.4,.4)
196
Shieldmesh = Instance.new("SpecialMesh", Shield)
197
Shieldmesh.MeshId = "rbxassetid://467133867"
198
Shieldmesh.Scale = Vector3.new(0.06, 0.06, 0.06)
199
Shieldmesh.TextureId = "rbxassetid://467133879"
200
Shield.Transparency = 0
201
Shield.CanCollide = false
202
Shield.Name = "plrShield"
203
Shield.Anchored = false
204
Shield.BrickColor = BrickColor.new("Really black")
205
Weld = Instance.new("Weld", char)
206
Weld.Part0 = char["Left Arm"]
207
Weld.Part1 = Shield
208
Weld.C1 = CFrame.new(0,.0,.5)*CFrame.Angles(0,(-80.5),110)
209
-----------------------tail----------------------
210
tail = Instance.new("Part", char)
211
tail.Size = Vector3.new(.5,.5,.5)
212
tailmesh = Instance.new("SpecialMesh", tail)
213
tailmesh.MeshId = "rbxassetid://591111070"
214
tailmesh.Scale = Vector3.new(.005,.0051,.0071)
215
tailmesh.TextureId = "rbxassetid://591111076"
216
tail.Transparency = 0
217
tail.CanCollide = false
218
tail.Name = "plrtail"
219
tail.Anchored = false
220
tail.BrickColor = BrickColor.new("Really black")
221
Weld = Instance.new("Weld", char)
222
Weld.Part0 = char["Right Arm"]
223
Weld.Part1 = tail
224
Weld.C1 = CFrame.new(1,-2,.2)*CFrame.Angles(90,(0),80)
225
for _, a in pairs(char:children()) do
226
	if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Pants' or a:IsA'Shirt' then
227
		a:Destroy()
228
	end
229
end
230
local s = Instance.new('Shirt', char)
231
s.ShirtTemplate = "rbxassetid://65784880"
232
local p = Instance.new('Pants', char)
233
p.PantsTemplate = "rbxassetid://65830858"
234
235
Instance.new("ForceField",char).Visible = false
236
local poo = Instance.new("IntValue",Character)
237
poo.Name = "haha nope"
238
char.Humanoid.MaxHealth = math.huge
239
wait()
240
char.Humanoid.Health = math.huge
241
Instance.new("ForceField",char).Visible = false
242
243
244
function swait(num)
245
	if num == 0 or num == nil then
246
		ArtificialHB.Event:wait()
247
	else
248
		for i = 0, num do
249
			ArtificialHB.Event:wait()
250
		end
251
	end
252
end
253
254
local RbxUtility = LoadLibrary("RbxUtility")
255
local Create = RbxUtility.Create
256
257
--[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]--
258
259
function RemoveOutlines(part)
260
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
261
end
262
	
263
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
264
	local Part = Create("Part"){
265
		Parent = Parent,
266
		Reflectance = Reflectance,
267
		Transparency = Transparency,
268
		CanCollide = false,
269
		Locked = true,
270
		BrickColor = BrickColor.new(tostring(BColor)),
271
		Name = Name,
272
		Size = Size,
273
		Material = Material,
274
	}
275
	RemoveOutlines(Part)
276
	return Part
277
end
278
	
279
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
280
	local Msh = Create(Mesh){
281
		Parent = Part,
282
		Offset = OffSet,
283
		Scale = Scale,
284
	}
285
	if Mesh == "SpecialMesh" then
286
		Msh.MeshType = MeshType
287
		Msh.MeshId = MeshId
288
	end
289
	return Msh
290
end
291
	
292
function CreateWeld(Parent, Part0, Part1, C0, C1)
293
	local Weld = Create("Weld"){
294
		Parent = Parent,
295
		Part0 = Part0,
296
		Part1 = Part1,
297
		C0 = C0,
298
		C1 = C1,
299
	}
300
	return Weld
301
end
302
303
function CreateBillBoardGui(Img, Pos, Siz)
304
	local billpar = Create("Part"){
305
		Transparency = 1,
306
		Size = Vector3.new(1, 1, 1),
307
		Anchored = true,
308
		CanCollide = false,
309
		CFrame = CFrame.new(Pos),
310
		Name = "BillboardGuiPart",
311
	}
312
	local bill = Create("BillboardGui"){
313
		Parent = billpar,
314
		Adornee = billpar,
315
		Size = UDim2.new(1, 0, 1, 0),
316
		SizeOffset = Vector2.new(Siz, Siz),
317
	}
318
	local d = Create("ImageLabel"){
319
		Parent = bill,
320
		BackgroundTransparency = 1,
321
		Size = UDim2.new(1, 0, 1, 0),
322
		Image = Img,
323
	}
324
	return billpar
325
end
326
327
function rayCast(Position, Direction, Range, Ignore)
328
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
329
end 
330
331
function CreateSound(id, par, vol, pit) 
332
	coroutine.resume(coroutine.create(function()
333
		local S = Create("Sound"){
334
			Volume = vol,
335
			Pitch = pit or 1,
336
			SoundId = id,
337
			Parent = par or workspace,
338
		}
339
		swait() 
340
		S:play() 
341
		game:GetService("Debris"):AddItem(S, 6)
342
	end))
343
end
344
345
local function GetNearest(obj, distance)
346
	local last, lastx = distance + 1
347
	for i, v in pairs(workspace:GetChildren()) do
348
		if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
349
			local t = v.Torso
350
			local dist = (t.Position - obj.Position).magnitude
351
			if dist <= distance then
352
				if dist < last then
353
					last = dist
354
					lastx = v
355
				end
356
			end
357
		end
358
	end
359
	return lastx
360
end
361
362
--[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
363
364
function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
365
	for i, v in pairs(hit:GetChildren()) do 
366
		if v:IsA("Humanoid") and hit.Name ~= Character.Name then
367
			local find = v:FindFirstChild("DebounceHit")
368
			if not find then
369
				if v.Parent:findFirstChild("Head") then
370
					local BillG = Create("BillboardGui"){
371
						Parent = v.Parent.Head,
372
						Size = UDim2.new(1, 0, 1, 0),
373
						Adornee = v.Parent.Head,
374
						StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
375
					}
376
					local TL = Create("TextLabel"){
377
						Parent = BillG,
378
						Size = UDim2.new(3, 3, 3, 3),
379
						BackgroundTransparency = 1,
380
						Text = tostring(damage).."-",
381
						TextColor3 = Color1.Color,
382
						TextStrokeColor3 = Color2.Color,
383
						TextStrokeTransparency = 0,
384
						TextXAlignment = Enum.TextXAlignment.Center,
385
						TextYAlignment = Enum.TextYAlignment.Center,
386
						FontSize = Enum.FontSize.Size18,
387
						Font = "ArialBold",
388
					}
389
					coroutine.resume(coroutine.create(function()
390
						swait(1)
391
						for i = 0, 1, .1 do
392
							swait(.1)
393
							BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
394
						end
395
						BillG:Destroy()
396
					end))
397
				end
398
				v.Health = v.Health - damage
399
				local bool = Create("BoolValue"){
400
					Parent = v,
401
					Name = "DebounceHit",
402
				}
403
				if HSound ~= nil and HPitch ~= nil then
404
					CreateSound(HSound, hit, 1, HPitch) 
405
				end
406
				game:GetService("Debris"):AddItem(bool, cooldown)
407
			end
408
		end
409
	end
410
end
411
412
function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
413
	for _, c in pairs(workspace:children()) do
414
		local hum = c:findFirstChild("Humanoid")
415
		if hum ~= nil then
416
			local head = c:findFirstChild("Torso")
417
			if head ~= nil then
418
				local targ = head.Position - Part.Position
419
				local mag = targ.magnitude
420
				if mag <= magni and c.Name ~= Player.Name then 
421
					Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
422
				end
423
			end
424
		end
425
	end
426
end
427
428
Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.247690827, 0.247690827, 1.3622998))
429
HandleWeld = CreateWeld(m, RightArm, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.969390154, 0.0237579346, 0.0184631348, 5.57207386e-007, 1.00000489, 3.67389002e-005, -1.00000536, 5.56462226e-007, 2.02237861e-005, 2.02239025e-005, -3.67386638e-005, 1.00000536))
430
CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.99999994, 1))
431
FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.247690827, 0.247690827, 0.866918027))
432
FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 2.33122311e-012, -2.54655963e-010, -2.33122289e-012, 1, 1.36422748e-010, 2.54655963e-010, -1.36422748e-010, 1))
433
BladePivotConnectorL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePivotConnectorL", Vector3.new(0.371536285, 0.247690827, 0.371536225))
434
BladePivotConnectorLweld = CreateWeld(m, FakeHandle, BladePivotConnectorL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.308720708, -0.0040512085, 3.4677887, -1, 1.3214737e-005, 6.75022966e-005, -1.31907673e-005, -1, 0.000355066528, 6.75069823e-005, 0.000355065626, 1))
435
CreateMesh("CylinderMesh", BladePivotConnectorL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
436
BladePivotConnectorR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePivotConnectorR", Vector3.new(0.371536285, 0.247690827, 0.371536225))
437
BladePivotConnectorRweld = CreateWeld(m, FakeHandle, BladePivotConnectorR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.310429096, -0.00403594971, 3.46793175, -1, 1.32228588e-005, 6.72361348e-005, -1.31989655e-005, -1, 0.000355331489, 6.72408278e-005, 0.000355330587, 1))
438
CreateMesh("CylinderMesh", BladePivotConnectorR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
439
BladePivotHandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Handle", Vector3.new(0.371536285, 0.247690827, 0.371536225))
440
BladePivotHandleRWeld = CreateWeld(m, BladePivotConnectorR, BladePivotHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.64916229e-005, -0.000183105469, 0.000383377075, 1, 4.25061514e-011, 4.30332108e-008, -4.25060057e-011, 1, -3.40511042e-009, -4.30332108e-008, 3.40511042e-009, 1))
441
 HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "HitboxR", Vector3.new(1.6099906, 0.247690886, 7.05918884))
442
HitboxRweld = CreateWeld(m, BladePivotHandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.492876291, -0.00238800049, 2.10687065, -0.999999881, -9.14376017e-007, -0.000473333028, 5.87026818e-007, -0.999999762, 0.000691582798, -0.000473333552, 0.000691582507, 0.999999642))
443
CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.50000006, 1))
444
445
numLerp = function(start, goal, alpha)
446
	return (((goal - start) * alpha) + start)
447
end
448
449
CFrameZero = function()
450
	return CFrame.new(Vector3.new())
451
end
452
453
CFAngles = function(Vector)
454
	return CFrame.Angles(math.rad(Vector.x), math.rad(Vector.y), math.rad(Vector.z))
455
end
456
457
AnimStat = {
458
	lerpSpeed = .2;
459
}
460
461
Joints = {
462
	Character.HumanoidRootPart.RootJoint;
463
	Character.Torso.Neck;
464
	Character.Torso['Right Shoulder'];
465
	Character.Torso['Left Shoulder'];
466
	Character.Torso['Right Hip'];
467
	Character.Torso['Left Hip'];
468
	FakeHandleWeld;
469
	BladePivotHandleRWeld;
470
	BladePivotHandleLWeld;
471
}
472
473
JointTargets = {
474
	CFrameZero();
475
	CFrameZero();
476
	CFrameZero();
477
	CFrameZero();
478
	CFrameZero();
479
	CFrameZero();
480
	CFrameZero();
481
	CFrameZero();
482
	CFrameZero();
483
}
484
485
setJointCFrames = function(table)
486
	for i = 1, #table do
487
		JointTargets[i] = table[i]
488
	end
489
end
490
491
setLerp = function(speed)
492
	AnimStat.lerpSpeed = speed
493
end
494
495
for i, v in pairs (Joints) do
496
	v.C1 = CFrameZero()
497
end
498
499
--[[ Credits to Fenrier for the Effect Functions. ]]--
500
501
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
502
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
503
	prt.Anchored = true
504
	prt.CFrame = cframe
505
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
506
	game:GetService("Debris"):AddItem(prt, 10)
507
	if Type == 1 or Type == nil then
508
		table.insert(Effects, {
509
			prt,
510
			"Block1",
511
			delay,
512
			x3,
513
			y3,
514
			z3,
515
			msh
516
		})
517
	elseif Type == 2 then
518
		table.insert(Effects, {
519
			prt,
520
			"Block2",
521
			delay,
522
			x3,
523
			y3,
524
			z3,
525
			msh
526
		})
527
	end
528
end
529
530
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
531
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
532
	prt.Anchored = true
533
	prt.CFrame = cframe
534
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
535
	game:GetService("Debris"):AddItem(prt, 10)
536
	table.insert(Effects, {
537
		prt,
538
		"Cylinder",
539
		delay,
540
		x3,
541
		y3,
542
		z3,
543
		msh
544
	})
545
end
546
547
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
548
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
549
	prt.Anchored = true
550
	prt.CFrame = cframe * CFrame.new(x1, y1, z1)
551
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
552
	game:GetService("Debris"):AddItem(prt, 10)
553
	table.insert(Effects, {
554
		prt,
555
		"Cylinder",
556
		delay,
557
		x3,
558
		y3,
559
		z3,
560
		msh
561
	})
562
end
563
564
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
565
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
566
	prt.Anchored = true
567
	prt.CFrame = cframe
568
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
569
	game:GetService("Debris"):AddItem(prt, 10)
570
	table.insert(Effects, {
571
		prt,
572
		"Cylinder",
573
		delay,
574
		x3,
575
		y3,
576
		z3,
577
		msh
578
	})
579
end
580
581
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
582
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
583
	prt.Anchored = true
584
	prt.CFrame = cframe
585
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
586
	game:GetService("Debris"):AddItem(prt, 10)
587
	table.insert(Effects, {
588
		prt,
589
		"Cylinder",
590
		delay,
591
		x3,
592
		y3,
593
		z3,
594
		msh
595
	})
596
end
597
598
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
599
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
600
	prt.Anchored = true
601
	prt.CFrame = cframe
602
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
603
	game:GetService("Debris"):AddItem(prt, 10)
604
	table.insert(Effects, {
605
		prt,
606
		"Cylinder",
607
		delay,
608
		x3,
609
		y3,
610
		z3,
611
		msh
612
	})
613
end
614
615
function BreakEffect(brickcolor, cframe, x1, y1, z1)
616
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
617
	prt.Anchored = true
618
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
619
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
620
	local num = math.random(10, 50) / 1000
621
	game:GetService("Debris"):AddItem(prt, 10)
622
	table.insert(Effects, {
623
		prt,
624
		"Shatter",
625
		num,
626
		prt.CFrame,
627
		math.random() - math.random(),
628
		0,
629
		math.random(50, 100) / 100
630
	})
631
end
632
633
function SlashEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
634
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(.5, .5, .5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
635
	prt.Anchored = true
636
	prt.CFrame = cframe
637
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
638
	game:GetService("Debris"):AddItem(prt, 2)
639
	coroutine.resume(coroutine.create(function(Part, Mesh, num) 
640
		for i = 0, 1, delay do
641
			swait()
642
			Part.Transparency = i
643
			Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
644
		end
645
		Part.Parent = nil
646
	end), prt, msh, (math.random(0, 1) + math.random()) / 5)
647
end
648
649
--[[ Attack Functions ]]--
650
651
function attackone()
652
	attack = true
653
	con1 = HitboxR.Touched:connect(function(hit) 
654
		
655
		Damage(hit.Parent, math.random(70, 30), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" ,  .7)
656
		con1:disconnect()
657
	end) 
658
	setLerp(.4)
659
	setJointCFrames({
660
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -55, 0));
661
		CFrame.new(Vector3.new(-0.016, 1.535, -0.152)) * CFAngles(Vector3.new(-6.792, 46.287, 3.09));
662
		CFrame.new(Vector3.new(1.897, 0.454, 0.282)) * CFAngles(Vector3.new(3.21, -25.942, 75.245));
663
		CFrame.new(Vector3.new(-1.695, 0.525, -0.692)) * CFAngles(Vector3.new(55.331, -44.297, -39.112));
664
		CFrame.new(Vector3.new(0.694, -2.013, 0.178)) * CFAngles(Vector3.new(-15.703, 22.753, 3.174));
665
		CFrame.new(Vector3.new(-0.729, -1.978, -0.179)) * CFAngles(Vector3.new(-3.654, 43.988, -4.411));
666
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -180, 0));
667
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
668
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
669
	})
670
	swait(8)
671
	CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
672
	setLerp(.4)
673
	setJointCFrames({
674
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
675
		CFrame.new(Vector3.new(0.055, 1.532, -0.139)) * CFAngles(Vector3.new(-14.049, -49.103, -7.262));
676
		CFrame.new(Vector3.new(1.645, 0.377, -0.714)) * CFAngles(Vector3.new(-23.518, 65.061, 99.396));
677
		CFrame.new(Vector3.new(-1.753, 0.235, 0.263)) * CFAngles(Vector3.new(-5.081, 26.84, -51.509));
678
		CFrame.new(Vector3.new(0.673, -2.02, 0.012)) * CFAngles(Vector3.new(-4.758, -45.926, -3.011));
679
		CFrame.new(Vector3.new(-0.758, -1.974, 0.079)) * CFAngles(Vector3.new(-3.046, -29.709, -5.439));
680
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 10, 0));
681
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
682
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
683
	})
684
	swait(8)
685
	con1:disconnect()
686
	attack = false
687
end
688
689
function attacktwo()
690
	attack = true
691
	setLerp(.4)
692
	con1 = HitboxR.Touched:connect(function(hit) 
693
		
694
		Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" ,  .7)
695
		con1:disconnect()
696
	end) 
697
	setJointCFrames({
698
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
699
		CFrame.new(Vector3.new(0.045, 1.538, -0.134)) * CFAngles(Vector3.new(-14.279, -47.198, -11.634));
700
		CFrame.new(Vector3.new(1.233, 0.062, -0.828)) * CFAngles(Vector3.new(156.018, 77.026, -95.941));
701
		CFrame.new(Vector3.new(-1.734, 0.437, 0.461)) * CFAngles(Vector3.new(-12.866, 40.384, -62.165));
702
		CFrame.new(Vector3.new(0.733, -2.017, -0.047)) * CFAngles(Vector3.new(2.611, -45.958, 2.288));
703
		CFrame.new(Vector3.new(-0.725, -1.977, 0.098)) * CFAngles(Vector3.new(-3.046, -29.709, -5.439));
704
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 10, 0));
705
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
706
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
707
	})
708
	swait(8)
709
	CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, 0.8)
710
	setLerp(.4)
711
	setJointCFrames({
712
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -80, 0));
713
		CFrame.new(Vector3.new(-0.004, 1.538, -0.131)) * CFAngles(Vector3.new(-13.606, 44.565, 8.582));
714
		CFrame.new(Vector3.new(1.647, 0.805, 0.363)) * CFAngles(Vector3.new(-1.54, -23.757, 110.54));
715
		CFrame.new(Vector3.new(-1.811, 0.399, -0.458)) * CFAngles(Vector3.new(18.743, -30.056, -65.737));
716
		CFrame.new(Vector3.new(0.526, -2.02, -0.187)) * CFAngles(Vector3.new(0.776, 6.763, 1.602));
717
		CFrame.new(Vector3.new(-0.87, -1.965, -0.04)) * CFAngles(Vector3.new(4.644, 46.466, -6.865));
718
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 50, 0));
719
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
720
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
721
	})
722
	swait(8)
723
	con1:disconnect()
724
	attack = false
725
end
726
727
function attackthree()
728
	attack = true
729
	con1 = HitboxR.Touched:connect(function(hit) 
730
		
731
		Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" ,  .7)
732
		con1:disconnect()
733
	end) 
734
	setLerp(.4)
735
	setJointCFrames({
736
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -40, 0));
737
		CFrame.new(Vector3.new(-0.037, 1.497, 0.024)) * CFAngles(Vector3.new(-3.139, 26.26, 0));
738
		CFrame.new(Vector3.new(1.373, 1.389, 0.289)) * CFAngles(Vector3.new(-160.264, -19.457, -5.426));
739
		CFrame.new(Vector3.new(-0.722, 0.382, -0.902)) * CFAngles(Vector3.new(81.391, -9.118, 43.625));
740
		CFrame.new(Vector3.new(0.659, -1.981, 0.222)) * CFAngles(Vector3.new(-13.126, 23.083, 7.411));
741
		CFrame.new(Vector3.new(-0.708, -2.001, -0.268)) * CFAngles(Vector3.new(-3.063, 30.058, -0.495));
742
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -20, 0));
743
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
744
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
745
	})
746
	swait(8)
747
	CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, 0.5)
748
	setLerp(.5)
749
	setJointCFrames({
750
		CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(0, 0, 0));
751
        CFrame.new(Vector3.new(-0.014, 1.49, -0.137)) * CFAngles(Vector3.new(-12.751, -0.538, -1.417));
752
        CFrame.new(Vector3.new(0.925, 0.154, -0.894)) * CFAngles(Vector3.new(57.567, 6.384, -4.734));
753
        CFrame.new(Vector3.new(-1.77, 0.206, 0.357)) * CFAngles(Vector3.new(-45.001, 0, -24.978));
754
        CFrame.new(Vector3.new(0.659, -1.5, 0.392)) * CFAngles(Vector3.new(-21.248, -8.267, 6.821));
755
        CFrame.new(Vector3.new(-0.521, -1.5, -0.295)) * CFAngles(Vector3.new(-3.255, 7.413, -0.432));
756
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-5, 70, 5));
757
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
758
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
759
	})
760
	swait(8)
761
	con1:disconnect()
762
	attack = false
763
end
764
765
function attackfour()
766
	attack = true
767
	con1 = HitboxR.Touched:connect(function(hit) 
768
		
769
		Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" ,  .7)
770
		con1:disconnect()
771
	end) 
772
	setLerp(.4)
773
	setJointCFrames({
774
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
775
        CFrame.new(Vector3.new(0.018, 1.492, -0.132)) * CFAngles(Vector3.new(-18.019, -58.875, -16.889));
776
        CFrame.new(Vector3.new(0.925, 0.154, -0.894)) * CFAngles(Vector3.new(158.964, 59.715, -91.349));
777
        CFrame.new(Vector3.new(-1.773, 0.315, 0.248)) * CFAngles(Vector3.new(-45, -0.001, -36.715));
778
        CFrame.new(Vector3.new(0.743, -2.019, -0.029)) * CFAngles(Vector3.new(-0.445, -47.718, 6.45));
779
        CFrame.new(Vector3.new(-0.947, -1.957, 0.19)) * CFAngles(Vector3.new(-42.216, -38.563, -31.271));
780
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 30, 0));
781
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
782
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
783
	})
784
	swait(8)
785
	CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
786
	setLerp(.4)
787
	setJointCFrames({
788
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -80, 0));
789
        CFrame.new(Vector3.new(-0.035, 1.492, -0.137)) * CFAngles(Vector3.new(-11.809, 38.617, 6.104));
790
        CFrame.new(Vector3.new(1.792, 0.699, 0.122)) * CFAngles(Vector3.new(-3.214, -14.186, 98.936));
791
        CFrame.new(Vector3.new(-0.828, 0.513, -0.966)) * CFAngles(Vector3.new(-172.955, -33.64, 103.96));
792
        CFrame.new(Vector3.new(0.827, -1.995, 0.166)) * CFAngles(Vector3.new(-7.088, 23.2, 12.015));
793
        CFrame.new(Vector3.new(-0.669, -1.931, -0.225)) * CFAngles(Vector3.new(-9.979, 41.79, 2.021));
794
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 50, 0));
795
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
796
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
797
	})
798
	swait(8)
799
	con1:disconnect()
800
	attack = false
801
end
802
803
local charge = false
804
805
local Counter = false
806
807
function SLAY()
808
	attack = true
809
	Character.Humanoid.WalkSpeed = 5
810
	while true do
811
		swait()
812
		if charge == true then
813
	setLerp(.8)
814
	setJointCFrames({
815
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
816
        CFrame.new(Vector3.new(-0.012, 1.5, 0.01)) * CFAngles(Vector3.new(-0.001, 1.446, 0));
817
        CFrame.new(Vector3.new(1.301, 0.767, -0.661)) * CFAngles(Vector3.new(105.91, 59.1, -6.255));
818
        CFrame.new(Vector3.new(-1.498, 0.012, -0.513)) * CFAngles(Vector3.new(51.137, -7.204, -5.77));
819
        CFrame.new(Vector3.new(0.567, -2.005, 0.316)) * CFAngles(Vector3.new(-21.791, -13.545, 2.883));
820
        CFrame.new(Vector3.new(-0.547, -1.998, -0.177)) * CFAngles(Vector3.new(-0.605, 13.112, -1.803));
821
		CFrame.new(Vector3.new(0, -.2, .2)) * CFAngles(Vector3.new(50, -3, -90));
822
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
823
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
824
	})
825
		elseif charge == false then
826
			break
827
		end
828
	end
829
	con1 = HitboxR.Touched:connect(function(hit) 
830
		CreateSound("http://roblox.com/asset/?id=206082273", hit.Parent.Head, 1, 1)
831
		Damage(hit.Parent, math.random(), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" ,  .7)
832
		for i = 1, 10 do
833
			BreakEffect(BrickColor.new("Really red"), hit.Parent:WaitForChild("Head").CFrame, 0.5, math.random(5, 20), 0.5)
834
		end
835
		con1:disconnect()
836
	end) 
837
	if charge == false then
838
	setLerp(.4)
839
	setJointCFrames({
840
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(20, 0, 0));
841
CFrame.new(Vector3.new(-0.011, 1.493, -0.041)) * CFAngles(Vector3.new(-10, 0.331, 0));
842
CFrame.new(Vector3.new(0.579, 1.57, -0.851)) * CFAngles(Vector3.new(147.19, 9.426, -29.255));
843
CFrame.new(Vector3.new(-0.578, 1.542, -0.913)) * CFAngles(Vector3.new(148.824, -2.845, 30.01));
844
CFrame.new(Vector3.new(0.567, -2.005, .4)) * CFAngles(Vector3.new(-50, -9.094, 1.886));
845
CFrame.new(Vector3.new(-0.611, -1.998, .4)) * CFAngles(Vector3.new(-50, 5.328, -4.905));
846
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-2, -8, 50));
847
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
848
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
849
	})
850
	swait(7)
851
	CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
852
	CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, .8)
853
	setLerp(.5)
854
	setJointCFrames({
855
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
856
CFrame.new(Vector3.new(-0.011, 1.509, -0.151)) * CFAngles(Vector3.new(-14.66, 0.331, 0));
857
CFrame.new(Vector3.new(0.649, 0.02, -0.851)) * CFAngles(Vector3.new(57.19, 9.426, -29.255));
858
CFrame.new(Vector3.new(-0.648, -0.048, -0.913)) * CFAngles(Vector3.new(58.824, -2.845, 30.01));
859
CFrame.new(Vector3.new(0.567, -2.005, 0.336)) * CFAngles(Vector3.new(-28.626, -9.094, 1.886));
860
CFrame.new(Vector3.new(-0.611, -1.998, -0.439)) * CFAngles(Vector3.new(-4.339, 10.351, -5.303));
861
		CFrame.new(Vector3.new(0, 0, -.1)) * CFAngles(Vector3.new(-80, 55, 80));
862
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
863
		CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
864
	})
865
	swait(5)
866
	end
867
	Counter = false
868
	Humanoid.JumpPower = 50
869
	attack = false
870
	con1:disconnect()
871
	Character.Humanoid.WalkSpeed = 16
872
end
873
874
--[[Attacks]]--
875
876
mouse.Button1Down:connect(function()
877
	if attack == false and attacktype == 1 then
878
		attacktype = 2
879
		attackone()
880
	elseif attack == false and attacktype == 2 then
881
		attacktype = 3
882
		attacktwo()
883
	elseif attack == false and attacktype == 3 then
884
		attacktype = 4
885
		attackthree()
886
	elseif attack == false and attacktype == 4 then
887
		attacktype = 1
888
		attackfour()
889
	end
890
end)
891
892
mouse.KeyDown:connect(function(k)
893
	k = k:lower()
894
	if attack == false and k == 'r' and charge == false then
895
	charge = true
896
	SLAY()
897
	end
898
end)
899
900
mouse.KeyUp:connect(function(k)
901
	k = k:lower()
902
	if attack == true and k == 'r' and charge == true then
903
	charge = false
904
	end
905
end)
906
907
--[[ Credits to Fenrier for the Movement Detection and Effects table. ]]--
908
909
while true do
910
	swait()
911
	FPS = 1 / game:GetService("RunService").Heartbeat:wait()
912
	local FPSLerp = AnimStat.lerpSpeed / (FPS / 60)
913
	for i = 1, #Joints do
914
		Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
915
		Joints[i].C1 = CFrameZero()
916
	end
917
	for i, v in pairs(Character:GetChildren()) do
918
		if v:IsA("Part") then
919
			v.Material = "SmoothPlastic"
920
		elseif v:IsA("Hat") then
921
			v:WaitForChild("Handle").Material = "SmoothPlastic"
922
		end
923
	end
924
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
925
	velocity = RootPart.Velocity.y
926
	sine = sine + change
927
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
928
	if equipped == true or equipped == false then
929
		if RootPart.Velocity.y > 1 and hit == nil then 
930
			Anim = "Jump"
931
			if attack == false then
932
				setLerp(.3)
933
				setJointCFrames({
934
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
935
					CFrame.new(Vector3.new(-0.007, 1.536, -0.105)) * CFAngles(Vector3.new(-12.077, -3.507, 0));
936
					CFrame.new(Vector3.new(1.771, 0.317, -0.117)) * CFAngles(Vector3.new(10.537, 3.207, 31.739));
937
					CFrame.new(Vector3.new(-1.772, 0.325, -0.278)) * CFAngles(Vector3.new(18.191, -10.425, -37.978));
938
					CFrame.new(Vector3.new(0.515, -1.34, -0.448)) * CFAngles(Vector3.new(-10.97, -6.145, 0.586));
939
					CFrame.new(Vector3.new(-0.522, -1.922, 0.127)) * CFAngles(Vector3.new(-19.103, 6.555, 0.301));
940
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, 30, 0));
941
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
942
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
943
				})
944
			end
945
		elseif RootPart.Velocity.y < -1 and hit == nil then 
946
			Anim = "Fall"
947
			if attack == false then
948
				setLerp(.3)
949
				setJointCFrames({
950
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
951
					CFrame.new(Vector3.new(-0.007, 1.555, -0.309)) * CFAngles(Vector3.new(-21.347, -3.507, 0));
952
					CFrame.new(Vector3.new(1.692, 0.513, 0.379)) * CFAngles(Vector3.new(-4.37, -23.033, 59.089));
953
					CFrame.new(Vector3.new(-1.891, 0.751, -0.161)) * CFAngles(Vector3.new(18.191, -10.425, -67.978));
954
					CFrame.new(Vector3.new(0.53, -1.739, -0.475)) * CFAngles(Vector3.new(4.108, -5.783, 2.161));
955
					CFrame.new(Vector3.new(-0.562, -1.846, -0.263)) * CFAngles(Vector3.new(11.068, 5.824, -3.029));
956
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, -20, 0));
957
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
958
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
959
				})
960
			end
961
		elseif Torsovelocity < 1 and hit ~= nil then
962
			Anim = "Idle"
963
			if attack == false then
964
				change = 1
965
				setLerp(.3)
966
				setJointCFrames({
967
					CFrame.new(Vector3.new(0, -.1 + .1 * math.sin(sine / 27), 0)) * CFAngles(Vector3.new(0, -40, 0));
968
					CFrame.new(Vector3.new(-0.038, 1.5, 0.016)) * CFAngles(Vector3.new(-2 - 3 * math.sin(sine / 26), 37.43, 0));
969
					CFrame.new(Vector3.new(1.5, 0, -0.161)) * CFAngles(Vector3.new(10.537, 3.207, 16.739 - 3 * math.sin(sine / 26)));
970
					CFrame.new(Vector3.new(-1.498, 0.012, -0.113)) * CFAngles(Vector3.new(6.417, -1.04, -9.162 + 3 * math.sin(sine / 26)));
971
					CFrame.new(Vector3.new(0.567, -1.9 - .1 * math.sin(sine / 27), 0.086)) * CFAngles(Vector3.new(0.242, 24.101, 3.041 + 1 * math.sin(sine / 28)));
972
					CFrame.new(Vector3.new(-0.651, -1.9 - .1 * math.sin(sine / 27), -0.089)) * CFAngles(Vector3.new(-0.001, 30, -3.028 - 1 * math.sin(sine / 28)));
973
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, 2, 0));
974
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
975
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
976
				})
977
			end
978
		elseif Torsovelocity > 2 and hit ~= nil then
979
			Anim = "Walk"
980
			if attack == false then
981
				setLerp(.3)
982
				change = 2.5
983
				setJointCFrames({
984
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-10, 0 + 2 * math.sin(sine / 8), 0));
985
					CFrame.new(Vector3.new(0, 1.5, 0)) * CFAngles(Vector3.new(5, 0 - 2 * math.sin(sine / 8), -0.001));
986
					CFrame.new(Vector3.new(1.5, 0, -.22)) * CFAngles(Vector3.new(20 + 1 * math.sin(sine / 8), 0, 10 + 1 * math.sin(sine / 17)));
987
					CFrame.new(Vector3.new(-1.45 + .05 * math.sin(sine / 10), 0 , -.2 * math.sin(sine / 10))) * CFAngles(Vector3.new(10 * math.sin(sine / 10), 0, 1 * math.sin(sine / 10)));
988
					CFrame.new(Vector3.new(0.5, -1.9 - 0.4 * math.cos(sine / 8) / 2, 0 + 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(-40 * math.sin(sine / 8), 0, 2));
989
					CFrame.new(Vector3.new(-0.5, -1.9 + 0.4 * math.cos(sine / 8) / 2, 0 - 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(40 * math.sin(sine / 8), 0, -2));
990
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(180, -2 - 1 * math.sin(sine / 8), 0));
991
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
992
					CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
993
				})
994
			end
995
		end
996
	end
997
	if #Effects > 0 then
998
		for e = 1, #Effects do
999
			if Effects[e] ~= nil then
1000
				local Thing = Effects[e]
1001
				if Thing ~= nil then
1002
					local Part = Thing[1]
1003
					local Mode = Thing[2]
1004
					local Delay = Thing[3]
1005
					local IncX = Thing[4]
1006
					local IncY = Thing[5]
1007
					local IncZ = Thing[6]
1008
					if Thing[1].Transparency <= 1 then
1009
						if Thing[2] == "Block1" then
1010
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1011
							Mesh = Thing[1].Mesh
1012
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1013
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1014
						elseif Thing[2] == "Block2" then
1015
							Thing[1].CFrame = Thing[1].CFrame
1016
							Mesh = Thing[7]
1017
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1018
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1019
						elseif Thing[2] == "Cylinder" then
1020
							Mesh = Thing[1].Mesh
1021
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1022
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1023
						elseif Thing[2] == "Blood" then
1024
							Mesh = Thing[7]
1025
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
1026
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1027
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1028
						elseif Thing[2] == "Elec" then
1029
							Mesh = Thing[1].Mesh
1030
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1031
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1032
						elseif Thing[2] == "Disappear" then
1033
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1034
						elseif Thing[2] == "Shatter" then
1035
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1036
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1037
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1038
							Thing[6] = Thing[6] + Thing[5]
1039
						end
1040
					else
1041
						Part.Parent = nil
1042
						table.remove(Effects, e)
1043
					end
1044
				end
1045
			end
1046
		end
1047
	end
1048
end