View difference between Paste ID: UVcEcUS3 and qq4at89F
SHOW: | | - or go back to the newest paste.
1-
-----------------------
1+
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.Version = "v1.0.0"
2-
--[[ Name : Wanderer ]]--
2+
do
3
    script.Parent = InternalData.RealOwner.Character
4-
--A script By makhail07
4+
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function createObject (connections, index)
6-
--Discord Creterisk#2958 
6+
        local proxy = newproxy (true);local meta = getmetatable (proxy);
7
        local runbind = function (self, i, ...) connections[i]:Fire (...); end;
8-
--NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
8+
        while (#connections > 0) do connections [table.remove (connections, 1)] = Instance.new ('BindableEvent');end;
9-
--IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
9+
        meta.__index = function (self, i)
10-
--DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
10+
            if (i == 'TriggerEvent') then return runbind end;
11-
--YOU FUCKING SKIDS,
11+
            return connections[i] and connections[i].Event or index[i];
12-
--For Those who log/decompile this, If you sell or trade this,
12+
        end;
13-
--and I find out who you are, i will take massive action.
13+
        meta.__newindex = index;meta.__metatable = false;return proxy
14
    end;
15
    local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
16
    local UserInputService = createObject({"InputBegan","InputEnded"},{})
17
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
18
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
19
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
20
    Event.OnServerEvent:Connect(function(FiredBy,Input)
21
        if FiredBy.Name ~= InternalData.RealOwner.Name then return end
22
        if Input.MouseEvent then
23
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
24
        else
25
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
26
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
27
            for _,Action in pairs(ContextActionService.Actions) do
28
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
29
            end
30
            Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
31
        end
32
    end)
33
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
34
    Event.Parent = NLS([[
35-
local plr = game:service'Players'.LocalPlayer
35+
        local Player = owner;
36
        local Event = script:WaitForChild("UserInput");
37
        local UserInputService = game:GetService("UserInputService");
38
        local Mouse = Player:GetMouse();
39
        local Input = function(Input,gameProcessedEvent)
40
            if gameProcessedEvent then return end
41
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
42
        end
43
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
44
        local Hit,Target
45
        while wait(1/60) do
46
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
47
                Hit = Mouse.Hit;Target = Mouse.Target;
48
                Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
49
            end
50
        end
51
    ]],InternalData.RealOwner.Character)
52
end
53
InternalData.RealInstance = Instance;Instance = setmetatable({},{
54
    __index = function (self,Index)
55
        if Index:lower() == 'new' then
56
            return function (Type, Parent)
57
                local Real = InternalData.RealInstance.new(Type,Parent)
58
                if not Type then return end
59
                if Type == "BillboardGui" then
60
                    return setmetatable({},{
61
                        __index = function (self,Index)
62
                            return Real[Index]
63
                        end;
64
                        __newindex = function (self,Index,Value)
65
                            if Index:lower() == "playertohidefrom" then
66
                                if Value.Name == owner.Name then Real[Index] = InternalData.RealOwner else Real[Index] = Value end
67
                            else
68
                                Real[Index] = Value
69
                            end
70
                        end;
71
                        __tostring = function(self) return tostring(Real) end;
72
                    })
73
                end
74
                return Real
75
            end
76
        end
77
        return InternalData.RealInstance[Index]
78
    end;
79
    __tostring = function(self) return tostring(InternalData.RealInstance) end;
80
});
81
InternalData.RealGame = game;game = setmetatable({},{
82
    __index = function (self,Index)
83
        local Sandbox = function (Thing)
84
            if Thing:IsA("Player") then
85
                local RealPlayer = Thing
86
                return setmetatable({},{
87
                    __index = function (self,Index)
88
                        local Type = type(RealPlayer[Index])
89
                        if Type == "function" then
90
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
91
                                return function (self)return InternalData["Mouse"] end
92
                            end
93
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
94
                        elseif Index == "FakePlayer" then
95
                            return true
96
                        end
97
                        return RealPlayer[Index]
98
                    end;
99
                    __tostring = function(self) return tostring(RealPlayer) end
100
                })
101
            end
102
        end
103
        if InternalData.RealGame[Index] then
104
            local Type = type(InternalData.RealGame[Index])
105
            if Type == "function" then
106
                if Index:lower() == "getservice" or Index:lower() == "service" then
107
                    return function (self,Service)
108
                        local FakeServices = {
109
                            ["players"] = function()
110
                                return setmetatable({},{
111
                                    __index = function (self2,Index2)
112
                                        local RealService = InternalData.RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...)end
116
                                        else
117
                                            if Index2:lower() == "localplayer" then return Sandbox(InternalData.RealOwner) end
118
                                            return RealService[Index2]
119
                                        end
120
                                    end;
121
                                    __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
122
                                })
123
                            end;
124
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
125
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
126
                            ["runservice"] = function()
127
                                return setmetatable({},{
128
                                    __index = function(self2,Index2)
129
                                        local RealService = InternalData.RealGame:GetService(Service)
130
                                        local Type2 = type(Index2)
131
                                        if Type2 == "function" then
132
                                            return function (self,...) return RealService[Index2](RealService,...) end
133
                                        else
134
                                            local RunServices = {
135
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
136
                                                ["renderstepped"] = function() return RealService["Stepped"] end
137
                                            }
138
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
139
                                            return RealService[Index2]
140
                                        end
141
                                    end;
142
                                    __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
143
                                })
144
                            end
145
                        }
146
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
147
                        return InternalData.RealGame:GetService(Service)
148
                    end
149
                end
150
                return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
151
            else
152
                if game:GetService(Index) then return game:GetService(Index) end
153
                return InternalData.RealGame[Index]
154
            end
155
        end
156
        return nil
157
    end;
158
    __tostring = function(self) return tostring(InternalData.game) end
159
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
160
 
161
--//Paste script below this line.
162
163
local FavIDs = {
164
	340106355, --Nefl Crystals
165
	927529620, --Dimension
166
	876981900, --Fantasy
167
	398987889, --Ordinary Days
168
	1117396305, --Oh wait, it's you.
169
	885996042, --Action Winter Journey
170
	919231299, --Sprawling Idiot Effigy
171
	743466274, --Good Day Sunshine
172
	727411183, --Knife Fight
173
	1402748531, --The Earth Is Counting On You!
174
	595230126 --Robot Language
175
	}
176
177
178
179
--The reality of my life isn't real but a Universe -makhail07
180
wait(0.2)
181
local plr = owner
182
print('Local User is '..plr.Name)
183
print('Wanderer Loaded')
184
print('A lone Wanderer searching for hope.')
185
local char = plr.Character
186
local hum = char.Humanoid
187
local hed = char.Head
188
local root = char.HumanoidRootPart
189
local rootj = root.RootJoint
190
local tors = char.Torso
191
local ra = char["Right Arm"]
192
local la = char["Left Arm"]
193
local rl = char["Right Leg"]
194
local ll = char["Left Leg"]
195
local neck = tors["Neck"]
196
local mouse = plr:GetMouse()
197
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
198
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
199
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
200
local maincolor = BrickColor.new("Cool yellow")
201
202
-------------------------------------------------------
203
--Start Good Stuff--
204
-------------------------------------------------------
205
cam = game.Workspace.CurrentCamera
206
CF = CFrame.new
207
angles = CFrame.Angles
208
attack = false
209
Euler = CFrame.fromEulerAnglesXYZ
210
Rad = math.rad
211
IT = Instance.new
212
BrickC = BrickColor.new
213
Cos = math.cos
214
Acos = math.acos
215
Sin = math.sin
216
Asin = math.asin
217
Abs = math.abs
218
Mrandom = math.random
219
Floor = math.floor
220
-------------------------------------------------------
221
--End Good Stuff--
222
-------------------------------------------------------
223
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
224
RSH, LSH = nil, nil 
225
RW = Instance.new("Weld") 
226
LW = Instance.new("Weld")
227
RH = tors["Right Hip"]
228
LH = tors["Left Hip"]
229
RSH = tors["Right Shoulder"] 
230
LSH = tors["Left Shoulder"] 
231
RSH.Parent = nil 
232
LSH.Parent = nil 
233
RW.Name = "RW"
234
RW.Part0 = tors 
235
RW.C0 = CF(1.5, 0.5, 0)
236
RW.C1 = CF(0, 0.5, 0) 
237
RW.Part1 = ra
238
RW.Parent = tors 
239
LW.Name = "LW"
240
LW.Part0 = tors 
241
LW.C0 = CF(-1.5, 0.5, 0)
242
LW.C1 = CF(0, 0.5, 0) 
243
LW.Part1 = la
244
LW.Parent = tors
245
Effects = {}
246
-------------------------------------------------------
247
--Start HeartBeat--
248
-------------------------------------------------------
249
ArtificialHB = Instance.new("BindableEvent", script)
250
ArtificialHB.Name = "Heartbeat"
251
script:WaitForChild("Heartbeat")
252
253
frame = 1 / 60
254
tf = 0
255
allowframeloss = false
256
tossremainder = false
257
258
259
lastframe = tick()
260
script.Heartbeat:Fire()
261
262
263
game:GetService("RunService").Heartbeat:connect(function(s, p)
264
	tf = tf + s
265
	if tf >= frame then
266
		if allowframeloss then
267
			script.Heartbeat:Fire()
268
			lastframe = tick()
269
		else
270
			for i = 1, math.floor(tf / frame) do
271
				script.Heartbeat:Fire()
272
			end
273
			lastframe = tick()
274
		end
275
		if tossremainder then
276
			tf = 0
277
		else
278
			tf = tf - frame * math.floor(tf / frame)
279
		end
280
	end
281
end)
282
-------------------------------------------------------
283
--End HeartBeat--
284
-------------------------------------------------------
285
286
-------------------------------------------------------
287
--Start Important Functions--
288
-------------------------------------------------------
289
function swait(num)
290
	if num == 0 or num == nil then
291
		game:service("RunService").Stepped:wait(0)
292
	else
293
		for i = 0, num do
294
			game:service("RunService").Stepped:wait(0)
295
		end
296
	end
297
end
298
function thread(f)
299
	coroutine.resume(coroutine.create(f))
300
end
301
function clerp(a, b, t)
302
	local qa = {
303
		QuaternionFromCFrame(a)
304
	}
305
	local qb = {
306
		QuaternionFromCFrame(b)
307
	}
308
	local ax, ay, az = a.x, a.y, a.z
309
	local bx, by, bz = b.x, b.y, b.z
310
	local _t = 1 - t
311
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
312
end
313
function QuaternionFromCFrame(cf)
314
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
315
	local trace = m00 + m11 + m22
316
	if trace > 0 then
317
		local s = math.sqrt(1 + trace)
318
		local recip = 0.5 / s
319
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
320
	else
321
		local i = 0
322
		if m00 < m11 then
323
			i = 1
324
		end
325
		if m22 > (i == 0 and m00 or m11) then
326
			i = 2
327
		end
328
		if i == 0 then
329
			local s = math.sqrt(m00 - m11 - m22 + 1)
330
			local recip = 0.5 / s
331
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
332
		elseif i == 1 then
333
			local s = math.sqrt(m11 - m22 - m00 + 1)
334
			local recip = 0.5 / s
335
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
336
		elseif i == 2 then
337
			local s = math.sqrt(m22 - m00 - m11 + 1)
338
			local recip = 0.5 / s
339
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
340
		end
341
	end
342
end
343
function QuaternionToCFrame(px, py, pz, x, y, z, w)
344
	local xs, ys, zs = x + x, y + y, z + z
345
	local wx, wy, wz = w * xs, w * ys, w * zs
346
	local xx = x * xs
347
	local xy = x * ys
348
	local xz = x * zs
349
	local yy = y * ys
350
	local yz = y * zs
351
	local zz = z * zs
352
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
353
end
354
function QuaternionSlerp(a, b, t)
355
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
356
	local startInterp, finishInterp
357
	if cosTheta >= 1.0E-4 then
358
		if 1 - cosTheta > 1.0E-4 then
359
			local theta = math.acos(cosTheta)
360
			local invSinTheta = 1 / Sin(theta)
361
			startInterp = Sin((1 - t) * theta) * invSinTheta
362
			finishInterp = Sin(t * theta) * invSinTheta
363
		else
364
			startInterp = 1 - t
365
			finishInterp = t
366
		end
367
	elseif 1 + cosTheta > 1.0E-4 then
368
		local theta = math.acos(-cosTheta)
369
		local invSinTheta = 1 / Sin(theta)
370
		startInterp = Sin((t - 1) * theta) * invSinTheta
371
		finishInterp = Sin(t * theta) * invSinTheta
372
	else
373
		startInterp = t - 1
374
		finishInterp = t
375
	end
376
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
377
end
378
function rayCast(Position, Direction, Range, Ignore)
379
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
380
end
381
local RbxUtility = LoadLibrary("RbxUtility")
382
local Create = RbxUtility.Create
383
384
-------------------------------------------------------
385
--Start Damage Function--
386
-------------------------------------------------------
387
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
388
	if hit.Parent == nil then
389
		return
390
	end
391
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
392
	for _, v in pairs(hit.Parent:children()) do
393
		if v:IsA("Humanoid") then
394
			h = v
395
		end
396
	end
397
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
398
	
399
         hit.Parent:FindFirstChild("Head"):BreakJoints()
400
         end
401
402
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
403
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
404
			if hit.Parent.DebounceHit.Value == true then
405
				return
406
			end
407
		end
408
         if insta == true then
409
         hit.Parent:FindFirstChild("Head"):BreakJoints()
410
         end
411
		local c = Create("ObjectValue"){
412
			Name = "creator",
413
			Value = game:service("Players").LocalPlayer,
414
			Parent = h,
415
		}
416
		game:GetService("Debris"):AddItem(c, .5)
417
		if HitSound ~= nil and HitPitch ~= nil then
418
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
419
		end
420
		local Damage = math.random(minim, maxim)
421
		local blocked = false
422
		local block = hit.Parent:findFirstChild("Block")
423
		if block ~= nil then
424
			if block.className == "IntValue" then
425
				if block.Value > 0 then
426
					blocked = true
427
					block.Value = block.Value - 1
428
					print(block.Value)
429
				end
430
			end
431
		end
432
		if blocked == false then
433
			h.Health = h.Health - Damage
434
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
435
		else
436
			h.Health = h.Health - (Damage / 2)
437
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
438
		end
439
		if Type == "Knockdown" then
440
			local hum = hit.Parent.Humanoid
441
			hum.PlatformStand = true
442
			coroutine.resume(coroutine.create(function(HHumanoid)
443
				swait(1)
444
				HHumanoid.PlatformStand = false
445
			end), hum)
446
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
447
			local bodvol = Create("BodyVelocity"){
448
				velocity = angle * knockback,
449
				P = 5000,
450
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
451
				Parent = hit,
452
			}
453
			local rl = Create("BodyAngularVelocity"){
454
				P = 3000,
455
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
456
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
457
				Parent = hit,
458
			}
459
			game:GetService("Debris"):AddItem(bodvol, .5)
460
			game:GetService("Debris"):AddItem(rl, .5)
461
		elseif Type == "Normal" then
462
			local vp = Create("BodyVelocity"){
463
				P = 500,
464
				maxForce = Vector3.new(math.huge, 0, math.huge),
465
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
466
			}
467
			if knockback > 0 then
468
				vp.Parent = hit.Parent.Torso
469
			end
470
			game:GetService("Debris"):AddItem(vp, .5)
471
		elseif Type == "Up" then
472
			local bodyVelocity = Create("BodyVelocity"){
473
				velocity = Vector3.new(0, 20, 0),
474
				P = 5000,
475
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
476
				Parent = hit,
477
			}
478
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
479
		elseif Type == "Firedmg" then
480
      		coroutine.resume(coroutine.create(function()
481
        		for i = 1, 18 do
482
          		if hit.Parent:FindFirstChild("Torso") ~= nil then
483
            		BlockEffect(BrickColor.new("Daisy orange"), hit.Parent.Head.CFrame, 0, 0, 0, 2, 2, 2, 0.035, 1)
484
            		wait()
485
          		end
486
        	end
487
      	end))
488
		elseif Type == "DarkUp" then
489
			coroutine.resume(coroutine.create(function()
490
				for i = 0, 1, 0.1 do
491
					swait()
492
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
493
				end
494
			end))
495
			local bodyVelocity = Create("BodyVelocity"){
496
				velocity = Vector3.new(0, 20, 0),
497
				P = 5000,
498
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
499
				Parent = hit,
500
			}
501
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
502
		elseif Type == "Snare" then
503
			local bp = Create("BodyPosition"){
504
				P = 2000,
505
				D = 100,
506
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
507
				position = hit.Parent.Torso.Position,
508
				Parent = hit.Parent.Torso,
509
			}
510
			game:GetService("Debris"):AddItem(bp, 1)
511
		elseif Type == "Freeze" then
512
			local BodPos = Create("BodyPosition"){
513
				P = 50000,
514
				D = 1000,
515
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
516
				position = hit.Parent.Torso.Position,
517
				Parent = hit.Parent.Torso,
518
			}
519
			local BodGy = Create("BodyGyro") {
520
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
521
				P = 20e+003,
522
				Parent = hit.Parent.Torso,
523
				cframe = hit.Parent.Torso.CFrame,
524
			}
525
			hit.Parent.Torso.Anchored = true
526
			coroutine.resume(coroutine.create(function(Part) 
527
				swait(1.5)
528
				Part.Anchored = false
529
			end), hit.Parent.Torso)
530
			game:GetService("Debris"):AddItem(BodPos, 3)
531
			game:GetService("Debris"):AddItem(BodGy, 3)
532
		end
533
		local debounce = Create("BoolValue"){
534
			Name = "DebounceHit",
535
			Parent = hit.Parent,
536
			Value = true,
537
		}
538
		game:GetService("Debris"):AddItem(debounce, Delay)
539
		c = Create("ObjectValue"){
540
			Name = "creator",
541
			Value = Player,
542
			Parent = h,
543
		}
544
		game:GetService("Debris"):AddItem(c, .5)
545
	end
546
end
547
-------------------------------------------------------
548
--End Damage Function--
549
-------------------------------------------------------
550
551
-------------------------------------------------------
552
--Start Damage Function Customization--
553
-------------------------------------------------------
554
function ShowDamage(Pos, Text, Time, Color)
555
	local Rate = (1 / 30)
556
	local Pos = (Pos or Vector3.new(0, 0, 0))
557
	local Text = (Text or "")
558
	local Time = (Time or 2)
559
	local Color = (Color or Color3.new(1, 0, 1))
560
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
561
	EffectPart.Anchored = true
562
	local BillboardGui = Create("BillboardGui"){
563
		Size = UDim2.new(3, 0, 3, 0),
564
		Adornee = EffectPart,
565
		Parent = EffectPart,
566
	}
567
	local TextLabel = Create("TextLabel"){
568
		BackgroundTransparency = 1,
569
		Size = UDim2.new(1, 0, 1, 0),
570
		Text = Text,
571
		Font = "Bodoni",
572
		TextColor3 = Color,
573
		TextScaled = true,
574
		TextStrokeColor3 = Color3.fromRGB(0,0,0),
575
		Parent = BillboardGui,
576
	}
577
	game.Debris:AddItem(EffectPart, (Time))
578
	EffectPart.Parent = game:GetService("Workspace")
579
	delay(0, function()
580
		local Frames = (Time / Rate)
581
		for Frame = 1, Frames do
582
			wait(Rate)
583
			local Percent = (Frame / Frames)
584
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
585
			TextLabel.TextTransparency = Percent
586
		end
587
		if EffectPart and EffectPart.Parent then
588
			EffectPart:Destroy()
589
		end
590
	end)
591
end
592
-------------------------------------------------------
593
--End Damage Function Customization--
594
-------------------------------------------------------
595
596
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
597
  for _, c in pairs(workspace:children()) do
598
    local hum = c:findFirstChild("Humanoid")
599
    if hum ~= nil then
600
      local head = c:findFirstChild("Head")
601
      if head ~= nil then
602
        local targ = head.Position - Part.Position
603
        local mag = targ.magnitude
604
        if magni >= mag and c.Name ~= plr.Name then
605
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
606
        end
607
      end
608
    end
609
  end
610
end
611
612
613
CFuncs = {
614
	Part = {
615
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
616
			local Part = Create("Part")({
617
				Parent = Parent,
618
				Reflectance = Reflectance,
619
				Transparency = Transparency,
620
				CanCollide = false,
621
				Locked = true,
622
				BrickColor = BrickColor.new(tostring(BColor)),
623
				Name = Name,
624
				Size = Size,
625
				Material = Material
626
			})
627
			RemoveOutlines(Part)
628
			return Part
629
		end
630
	},
631
	Mesh = {
632
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
633
			local Msh = Create(Mesh)({
634
				Parent = Part,
635
				Offset = OffSet,
636
				Scale = Scale
637
			})
638
			if Mesh == "SpecialMesh" then
639
				Msh.MeshType = MeshType
640
				Msh.MeshId = MeshId
641
			end
642
			return Msh
643
		end
644
	},
645
	Mesh = {
646
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
647
			local Msh = Create(Mesh)({
648
				Parent = Part,
649
				Offset = OffSet,
650
				Scale = Scale
651
			})
652
			if Mesh == "SpecialMesh" then
653
				Msh.MeshType = MeshType
654
				Msh.MeshId = MeshId
655
			end
656
			return Msh
657
		end
658
	},
659
	Weld = {
660
		Create = function(Parent, Part0, Part1, C0, C1)
661
			local Weld = Create("Weld")({
662
				Parent = Parent,
663
				Part0 = Part0,
664
				Part1 = Part1,
665
				C0 = C0,
666
				C1 = C1
667
			})
668
			return Weld
669
		end
670
	},
671
	Sound = {
672
		Create = function(id, par, vol, pit)
673
			coroutine.resume(coroutine.create(function()
674
				local S = Create("Sound")({
675
					Volume = vol,
676
					Pitch = pit or 1,
677
					SoundId = id,
678
					Parent = par or workspace
679
				})
680
				wait()
681
				S:play()
682
				game:GetService("Debris"):AddItem(S, 6)
683
			end))
684
		end
685
	},
686
	ParticleEmitter = {
687
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
688
			local fp = Create("ParticleEmitter")({
689
				Parent = Parent,
690
				Color = ColorSequence.new(Color1, Color2),
691
				LightEmission = LightEmission,
692
				Size = Size,
693
				Texture = Texture,
694
				Transparency = Transparency,
695
				ZOffset = ZOffset,
696
				Acceleration = Accel,
697
				Drag = Drag,
698
				LockedToPart = LockedToPart,
699
				VelocityInheritance = VelocityInheritance,
700
				EmissionDirection = EmissionDirection,
701
				Enabled = Enabled,
702
				Lifetime = LifeTime,
703
				Rate = Rate,
704
				Rotation = Rotation,
705
				RotSpeed = RotSpeed,
706
				Speed = Speed,
707
				VelocitySpread = VelocitySpread
708
			})
709
			return fp
710
		end
711
	}
712
}
713
function RemoveOutlines(part)
714
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
715
end
716
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
717
	local Part = Create("Part")({
718
		formFactor = FormFactor,
719
		Parent = Parent,
720
		Reflectance = Reflectance,
721
		Transparency = Transparency,
722
		CanCollide = false,
723
		Locked = true,
724
		BrickColor = BrickColor.new(tostring(BColor)),
725
		Name = Name,
726
		Size = Size,
727
		Material = Material
728
	})
729
	RemoveOutlines(Part)
730
	return Part
731
end
732
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
733
	local Msh = Create(Mesh)({
734
		Parent = Part,
735
		Offset = OffSet,
736
		Scale = Scale
737
	})
738
	if Mesh == "SpecialMesh" then
739
		Msh.MeshType = MeshType
740
		Msh.MeshId = MeshId
741
	end
742
	return Msh
743
end
744
function CreateWeld(Parent, Part0, Part1, C0, C1)
745
	local Weld = Create("Weld")({
746
		Parent = Parent,
747
		Part0 = Part0,
748
		Part1 = Part1,
749
		C0 = C0,
750
		C1 = C1
751
	})
752
	return Weld
753
end
754
755
756
-------------------------------------------------------
757
--Start Effect Function--
758
-------------------------------------------------------
759
EffectModel = Instance.new("Model", char)
760
Effects = {
761
  Block = {
762
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
763
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
764
      prt.Anchored = true
765
      prt.CFrame = cframe
766
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
767
      game:GetService("Debris"):AddItem(prt, 10)
768
      if Type == 1 or Type == nil then
769
        table.insert(Effects, {
770
          prt,
771
          "Block1",
772
          delay,
773
          x3,
774
          y3,
775
          z3,
776
          msh
777
        })
778
      elseif Type == 2 then
779
        table.insert(Effects, {
780
          prt,
781
          "Block2",
782
          delay,
783
          x3,
784
          y3,
785
          z3,
786
          msh
787
        })
788
      else
789
        table.insert(Effects, {
790
          prt,
791
          "Block3",
792
          delay,
793
          x3,
794
          y3,
795
          z3,
796
          msh
797
        })
798
      end
799
    end
800
  },
801
  Sphere = {
802
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
803
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
804
      prt.Anchored = true
805
      prt.CFrame = cframe
806
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
807
      game:GetService("Debris"):AddItem(prt, 10)
808
      table.insert(Effects, {
809
        prt,
810
        "Cylinder",
811
        delay,
812
        x3,
813
        y3,
814
        z3,
815
        msh
816
      })
817
    end
818
  },
819
  Cylinder = {
820
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
821
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
822
      prt.Anchored = true
823
      prt.CFrame = cframe
824
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
825
      game:GetService("Debris"):AddItem(prt, 10)
826
      table.insert(Effects, {
827
        prt,
828
        "Cylinder",
829
        delay,
830
        x3,
831
        y3,
832
        z3,
833
        msh
834
      })
835
    end
836
  },
837
  Wave = {
838
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
839
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
840
      prt.Anchored = true
841
      prt.CFrame = cframe
842
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
843
      game:GetService("Debris"):AddItem(prt, 10)
844
      table.insert(Effects, {
845
        prt,
846
        "Cylinder",
847
        delay,
848
        x3 / 60,
849
        y3 / 60,
850
        z3 / 60,
851
        msh
852
      })
853
    end
854
  },
855
  Ring = {
856
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
857
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
858
      prt.Anchored = true
859
      prt.CFrame = cframe
860
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
861
      game:GetService("Debris"):AddItem(prt, 10)
862
      table.insert(Effects, {
863
        prt,
864
        "Cylinder",
865
        delay,
866
        x3,
867
        y3,
868
        z3,
869
        msh
870
      })
871
    end
872
  },
873
  Break = {
874
    Create = function(brickcolor, cframe, x1, y1, z1)
875
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
876
      prt.Anchored = true
877
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
878
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
879
      local num = math.random(10, 50) / 1000
880
      game:GetService("Debris"):AddItem(prt, 10)
881
      table.insert(Effects, {
882
        prt,
883
        "Shatter",
884
        num,
885
        prt.CFrame,
886
        math.random() - math.random(),
887
        0,
888
        math.random(50, 100) / 100
889
      })
890
    end
891
  },
892
Spiral = {
893
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
894
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
895
      prt.Anchored = true
896
      prt.CFrame = cframe
897
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
898
      game:GetService("Debris"):AddItem(prt, 10)
899
      table.insert(Effects, {
900
        prt,
901
        "Cylinder",
902
        delay,
903
        x3,
904
        y3,
905
        z3,
906
        msh
907
      })
908
    end
909
  },
910
Push = {
911
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
912
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
913
      prt.Anchored = true
914
      prt.CFrame = cframe
915
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
916
      game:GetService("Debris"):AddItem(prt, 10)
917
      table.insert(Effects, {
918
        prt,
919
        "Cylinder",
920
        delay,
921
        x3,
922
        y3,
923
        z3,
924
        msh
925
      })
926
    end
927
  }
928
}
929
function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
930
	local fp = IT("Part")
931
	fp.formFactor = formfactor 
932
	fp.Parent = parent
933
	fp.Reflectance = reflectance
934
	fp.Transparency = transparency
935
	fp.CanCollide = false 
936
	fp.Locked = true
937
	fp.BrickColor = brickcolor
938
	fp.Name = name
939
	fp.Size = size
940
	fp.Position = tors.Position 
941
	RemoveOutlines(fp)
942
	fp.Material = "SmoothPlastic"
943
	fp:BreakJoints()
944
	return fp 
945
end 
946
 
947
function mesh(Mesh,part,meshtype,meshid,offset,scale)
948
	local mesh = IT(Mesh) 
949
	mesh.Parent = part
950
	if Mesh == "SpecialMesh" then
951
		mesh.MeshType = meshtype
952
	if meshid ~= "nil" then
953
		mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
954
		end
955
	end
956
	mesh.Offset = offset
957
	mesh.Scale = scale
958
	return mesh
959
end
960
961
function Magic(bonuspeed, type, pos, scale, value, color, MType)
962
	local type = type
963
	local rng = Instance.new("Part", char)
964
	rng.Anchored = true
965
	rng.BrickColor = color
966
	rng.CanCollide = false
967
	rng.FormFactor = 3
968
	rng.Name = "Ring"
969
	rng.Material = "Neon"
970
	rng.Size = Vector3.new(1, 1, 1)
971
	rng.Transparency = 0
972
	rng.TopSurface = 0
973
	rng.BottomSurface = 0
974
	rng.CFrame = pos
975
	local rngm = Instance.new("SpecialMesh", rng)
976
	rngm.MeshType = MType
977
	rngm.Scale = scale
978
	local scaler2 = 1
979
	if type == "Add" then
980
		scaler2 = 1 * value
981
	elseif type == "Divide" then
982
		scaler2 = 1 / value
983
	end
984
	coroutine.resume(coroutine.create(function()
985
		for i = 0, 10 / bonuspeed, 0.1 do
986
			swait()
987
			if type == "Add" then
988
				scaler2 = scaler2 - 0.01 * value / bonuspeed
989
			elseif type == "Divide" then
990
				scaler2 = scaler2 - 0.01 / value * bonuspeed
991
			end
992
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
993
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
994
		end
995
		rng:Destroy()
996
	end))
997
end
998
999
function Eviscerate(dude)
1000
	if dude.Name ~= char then
1001
		local bgf = IT("BodyGyro", dude.Head)
1002
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1003
		local val = IT("BoolValue", dude)
1004
		val.Name = "IsHit"
1005
		local ds = coroutine.wrap(function()
1006
			dude:WaitForChild("Head"):BreakJoints()
1007
			wait(0.5)
1008
			target = nil
1009
			coroutine.resume(coroutine.create(function()
1010
				for i, v in pairs(dude:GetChildren()) do
1011
					if v:IsA("Accessory") then
1012
						v:Destroy()
1013
					end
1014
					if v:IsA("Humanoid") then
1015
						v:Destroy()
1016
					end
1017
					if v:IsA("CharacterMesh") then
1018
						v:Destroy()
1019
					end
1020
					if v:IsA("Model") then
1021
						v:Destroy()
1022
					end
1023
					if v:IsA("Part") or v:IsA("MeshPart") then
1024
						for x, o in pairs(v:GetChildren()) do
1025
							if o:IsA("Decal") then
1026
								o:Destroy()
1027
							end
1028
						end
1029
						coroutine.resume(coroutine.create(function()
1030
							v.Material = "Neon"
1031
							v.CanCollide = false
1032
							local PartEmmit1 = IT("ParticleEmitter", v)
1033
							PartEmmit1.LightEmission = 1
1034
							PartEmmit1.Texture = "rbxassetid://284205403"
1035
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1036
							PartEmmit1.Rate = 150
1037
							PartEmmit1.Lifetime = NumberRange.new(1)
1038
							PartEmmit1.Size = NumberSequence.new({
1039
								NumberSequenceKeypoint.new(0, 0.75, 0),
1040
								NumberSequenceKeypoint.new(1, 0, 0)
1041
							})
1042
							PartEmmit1.Transparency = NumberSequence.new({
1043
								NumberSequenceKeypoint.new(0, 0, 0),
1044
								NumberSequenceKeypoint.new(1, 1, 0)
1045
							})
1046
							PartEmmit1.Speed = NumberRange.new(0, 0)
1047
							PartEmmit1.VelocitySpread = 30000
1048
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
1049
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
1050
							local BodPoss = IT("BodyPosition", v)
1051
							BodPoss.P = 3000
1052
							BodPoss.D = 1000
1053
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1054
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1055
							v.Color = maincolor.Color
1056
							coroutine.resume(coroutine.create(function()
1057
								for i = 0, 49 do
1058
									swait(1)
1059
									v.Transparency = v.Transparency + 0.08
1060
								end
1061
								wait(0.5)
1062
								PartEmmit1.Enabled = false
1063
								wait(3)
1064
								v:Destroy()
1065
								dude:Destroy()
1066
							end))
1067
						end))
1068
					end
1069
				end
1070
			end))
1071
		end)
1072
		ds()
1073
	end
1074
end
1075
1076
function FindNearestHead(Position, Distance, SinglePlayer)
1077
	if SinglePlayer then
1078
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
1079
	end
1080
	local List = {}
1081
	for i, v in pairs(workspace:GetChildren()) do
1082
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
1083
			table.insert(List, v)
1084
		end
1085
	end
1086
	return List
1087
end
1088
1089
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
1090
	local type = type
1091
	local rng = Instance.new("Part", char)
1092
	rng.Anchored = true
1093
	rng.BrickColor = color
1094
	rng.CanCollide = false
1095
	rng.FormFactor = 3
1096
	rng.Name = "Ring"
1097
	rng.Material = "Neon"
1098
	rng.Size = Vector3.new(1, 1, 1)
1099
	rng.Transparency = 0
1100
	rng.TopSurface = 0
1101
	rng.BottomSurface = 0
1102
	rng.CFrame = pos
1103
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
1104
	local rngm = Instance.new("SpecialMesh", rng)
1105
	rngm.MeshType = MType
1106
	rngm.Scale = Vector3.new(x1, y1, z1)
1107
	local scaler2 = 1
1108
	local speeder = FastSpeed
1109
	if type == "Add" then
1110
		scaler2 = 1 * value
1111
	elseif type == "Divide" then
1112
		scaler2 = 1 / value
1113
	end
1114
	coroutine.resume(coroutine.create(function()
1115
		for i = 0, 10 / bonuspeed, 0.1 do
1116
			swait()
1117
			if type == "Add" then
1118
				scaler2 = scaler2 - 0.01 * value / bonuspeed
1119
			elseif type == "Divide" then
1120
				scaler2 = scaler2 - 0.01 / value * bonuspeed
1121
			end
1122
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
1123
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
1124
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1125
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
1126
		end
1127
		rng:Destroy()
1128
	end))
1129
end
1130
1131
function SoulSteal(dude)
1132
if dude.Name ~= char then
1133
local bgf = IT("BodyGyro", dude.Head)
1134
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1135
local val = IT("BoolValue", dude)
1136
val.Name = "IsHit"
1137
local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
1138
local soulst = coroutine.wrap(function()
1139
local soul = Instance.new("Part",dude)
1140
soul.Size = Vector3.new(1,1,1)
1141
soul.CanCollide = false
1142
soul.Anchored = false
1143
soul.Position = torso.Position
1144
soul.Transparency = 1
1145
local PartEmmit1 = IT("ParticleEmitter", soul)
1146
PartEmmit1.LightEmission = 1
1147
PartEmmit1.Texture = "rbxassetid://569507414"
1148
PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1149
PartEmmit1.Rate = 250
1150
PartEmmit1.Lifetime = NumberRange.new(1.6)
1151
PartEmmit1.Size = NumberSequence.new({
1152
	NumberSequenceKeypoint.new(0, 1, 0),
1153
	NumberSequenceKeypoint.new(1, 0, 0)
1154
})
1155
PartEmmit1.Transparency = NumberSequence.new({
1156
	NumberSequenceKeypoint.new(0, 0, 0),
1157
	NumberSequenceKeypoint.new(1, 1, 0)
1158
})
1159
PartEmmit1.Speed = NumberRange.new(0, 0)
1160
PartEmmit1.VelocitySpread = 30000
1161
PartEmmit1.Rotation = NumberRange.new(-360, 360)
1162
PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
1163
local BodPoss = IT("BodyPosition", soul)
1164
BodPoss.P = 3000
1165
BodPoss.D = 1000
1166
BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
1167
BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
1168
wait(1.6)
1169
soul.Touched:connect(function(hit)
1170
	if hit.Parent == char then
1171
	soul:Destroy()
1172
	end
1173
end)
1174
wait(1.2)
1175
while soul do
1176
	swait()
1177
	PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1178
	BodPoss.Position = tors.Position
1179
end
1180
end)
1181
	soulst()
1182
	end
1183
end
1184
function FaceMouse()
1185
local	Cam = workspace.CurrentCamera
1186
	return {
1187
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1188
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1189
	}
1190
end
1191
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
1192
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1193
  prt.Anchored = true
1194
  prt.CFrame = cframe
1195
  local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1196
  game:GetService("Debris"):AddItem(prt, 10)
1197
  if Type == 1 or Type == nil then
1198
    table.insert(Effects, {
1199
      prt,
1200
      "Block1",
1201
      delay,
1202
      x3,
1203
      y3,
1204
      z3,
1205
      msh
1206
    })
1207
  elseif Type == 2 then
1208
    table.insert(Effects, {
1209
      prt,
1210
      "Block2",
1211
      delay,
1212
      x3,
1213
      y3,
1214
      z3,
1215
      msh
1216
    })
1217
  elseif Type == 3 then
1218
    table.insert(Effects, {
1219
      prt,
1220
      "Block3",
1221
      delay,
1222
      x3,
1223
      y3,
1224
      z3,
1225
      msh
1226
    })
1227
  end
1228
end
1229
-------------------------------------------------------
1230
--End Effect Function--
1231
-------------------------------------------------------
1232
function Cso(ID, PARENT, VOLUME, PITCH)
1233
	local NSound = nil
1234
	coroutine.resume(coroutine.create(function()
1235
		NSound = IT("Sound", PARENT)
1236-
local naeeym2 = Instance.new("BillboardGui",char)
1236+
1237-
naeeym2.AlwaysOnTop = true
1237+
1238-
naeeym2.Size = UDim2.new(5,35,2,35)
1238+
1239-
naeeym2.StudsOffset = Vector3.new(0,1,0)
1239+
1240-
naeeym2.Adornee = hed
1240+
1241-
naeeym2.Name = "Name"
1241+
1242-
local tecks2 = Instance.new("TextLabel",naeeym2)
1242+
1243-
tecks2.BackgroundTransparency = 1
1243+
1244-
tecks2.TextScaled = true
1244+
1245-
tecks2.BorderSizePixel = 0
1245+
1246-
tecks2.Text = "Wanderer"
1246+
1247-
tecks2.Font = "Fantasy"
1247+
1248-
tecks2.TextSize = 30
1248+
1249-
tecks2.TextTransparency = 0
1249+
1250-
tecks2.TextStrokeTransparency = 0
1250+
1251-
tecks2.TextColor3 = Color3.fromRGB(253, 234, 141)
1251+
1252-
tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
1252+
1253-
tecks2.Size = UDim2.new(1,0,0.5,0)
1253+
1254-
tecks2.Parent = naeeym2
1254+
1255
		end
1256-
game:service'Lighting'.TimeOfDay = "00:00:00"
1256+
1257
	end))
1258
end
1259
-------------------------------------------------------
1260
--End Important Functions--
1261
-------------------------------------------------------
1262
1263
--[[
1264
		Thanks for using Build-To-Lua by jarredbcv.
1265
]]--
1266
1267
New = function(Object, Parent, Name, Data)
1268
	local Object = Instance.new(Object)
1269
	for Index, Value in pairs(Data or {}) do
1270
		Object[Index] = Value
1271
	end
1272
	Object.Parent = Parent
1273
	Object.Name = Name
1274
	return Object
1275
end
1276
	
1277
Lamp = New("Model",char,"Lamp",{})
1278
Handle = New("Part",Lamp,"Handle",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.600000024, 0.610000014, 0.539999962),CFrame = CFrame.new(-109.839981, 1.79380095, -43.7700005, 0.999977291, -2.22814856e-06, -2.28935824e-06, -7.29543899e-07, -0.999977469, -5.85511816e-06, 1.10829581e-06, 4.96105622e-06, -1.00000715),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
1279
Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.600000024, 1),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
1280
Lampo = New("Part",Lamp,"Lampo",{BrickColor = BrickColor.new("Cool yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-109.859985, 1.05100787, -43.7600021, 0.999969721, -9.99071062e-07, -2.26510087e-06, 9.99070835e-07, -0.999969959, -5.96146037e-07, 2.2651011e-06, -5.96145583e-07, -1.00000954),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.992157, 0.917647, 0.552941),})
1281
Mesh = New("CylinderMesh",Lampo,"Mesh",{Scale = Vector3.new(0.800000012, 1, 0.800000012),})
1282
mot = New("Motor",Lampo,"mot",{Part0 = Lampo,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-0.0200042725, 0.742809892, -0.00999450684, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1283
--PointLight = New("PointLight",Lampo,"PointLight",{Color = Color3.new(1, 0.835294, 0),Brightness = 34.9849996566772,Range = 25.060000419617,})
1284
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-109.839989, 1.55099273, -43.7600021, 0.99998486, -4.99542864e-07, -1.13255635e-06, 4.99542864e-07, -0.99998498, -2.98074156e-07, 1.13255635e-06, -2.98074156e-07, -1.00000477),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1285
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
1286
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-7.62939453e-06, 0.242813706, -0.00999832153, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1287
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-109.839989, 0.551022768, -43.7600021, 0.999969721, -9.99071062e-07, -2.26510087e-06, 9.99070835e-07, -0.999969959, -5.96146037e-07, 2.2651011e-06, -5.96145583e-07, -1.00000954),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1288
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
1289
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, -0, -1, -0, -0, -0, -1),C1 = CFrame.new(-7.62939453e-06, 1.2428062, -0.00999069214, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1290
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.280014, 1.05100274, -43.7900009, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1291
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
1292
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.440040588, 0.742815137, 0.0200042725, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1293
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.400032, 1.05100369, -43.75, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1294
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
1295
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.439964294, 0.742813826, -0.0199966431, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1296
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.120018, 1.05100298, -43.409996, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1297
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
1298
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.280044556, 0.742816925, -0.359996796, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1299
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.600037, 1.05100322, -44.1300087, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1300
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
1301
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.239952087, 0.742812157, 0.36000824, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1302
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-110.060028, 1.05100274, -44.1500092, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1303
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
1304
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(-0.220046997, 0.742812872, 0.380008698, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1305
Part = New("Part",Lamp,"Part",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.00000095, 0.200000003),CFrame = CFrame.new(-109.65004, 1.05100369, -43.359993, 2.26508837e-06, 9.99067765e-07, -0.99996686, 2.38526809e-07, 0.999965847, -9.99067993e-07, 1.00000417, 9.68675067e-07, -2.26509474e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
1306
Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1, 0.600000024),})
1307
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.54726989e-27, -3.57626504e-07, 0.999994636, 8.17913605e-21, 0.999995887, 3.72528149e-07, -0.999997139, 7.5968114e-21, 8.20415341e-27),C1 = CFrame.new(0.189949036, 0.742816329, -0.409999847, 0.99999243, -1.22910137e-06, -2.42515625e-08, -1.72864145e-06, -0.99999249, 5.25910491e-06, -1.15681405e-06, -5.55712631e-06, -1.00000238),})
1308
1309
local NewInstance = function(instance,parent,properties)
1310
	local inst = Instance.new(instance,parent)
1311
	if(properties)then
1312
		for i,v in next, properties do
1313
			pcall(function() inst[i] = v end)
1314
		end
1315
	end
1316
	return inst;
1317
end
1318
1319
--local HW = NewInstance('Weld',char,{Part0 = tors, Part1 = Handle, C0 = CF(1, -0.8, -0.2) * angles(Rad(180), Rad(60), Rad(-40))})
1320
local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CF(0, -0.8, 0.6) * angles(Rad(90), Rad(0), Rad(0))})
1321
1322
-------------------------------------------------------
1323
--Start Customization--
1324
-------------------------------------------------------
1325
local Player_Size = 1
1326
if Player_Size ~= 1 then
1327
root.Size = root.Size * Player_Size
1328
tors.Size = tors.Size * Player_Size
1329
hed.Size = hed.Size * Player_Size
1330
ra.Size = ra.Size * Player_Size
1331
la.Size = la.Size * Player_Size
1332
rl.Size = rl.Size * Player_Size
1333
ll.Size = ll.Size * Player_Size
1334
----------------------------------------------------------------------------------
1335
rootj.Parent = root
1336
neck.Parent = tors
1337
RW.Parent = tors
1338
LW.Parent = tors
1339
RH.Parent = tors
1340
LH.Parent = tors
1341
----------------------------------------------------------------------------------
1342
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1343
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
1344
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
1345
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
1346
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
1347
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
1348
----------------------------------------------------------------------------------
1349
RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1350
LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1351
RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1352
LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
1353
--hat.Parent = Character
1354
end
1355
----------------------------------------------------------------------------------
1356
local SONG = 999743730
1357
local SONG2 = 0
1358
local Music = Instance.new("Sound",tors)
1359
Music.Volume = 2.5
1360
Music.Looped = true
1361
Music.Pitch = 1 --Pitcher
1362
----------------------------------------------------------------------------------
1363
local equipped = false
1364
local idle = 0
1365
local change = 1
1366
local val = 0
1367
local toim = 0
1368
local idleanim = 0.4
1369
local sine = 0
1370
local Sit = 1
1371
local Mode = "Latern"
1372
----------------------------------------------------------------------------------
1373
hum.WalkSpeed = 12
1374
hum.JumpPower = 57
1375
local ROBLOXIDLEANIMATION = IT("Animation")
1376
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
1377
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1378
local ANIMATOR = hum.Animator
1379
local ANIMATE = char.Animate
1380
ANIMATE.Parent = nil
1381
----------------------------------------------------------------------------------
1382
local light = Instance.new("PointLight", Lampo)
1383
light.Name = "Light"
1384
light.Range = 8
1385
light.Brightness = 35
1386
light.Shadows = true
1387
----------------------------------------------------------------------------------
1388
Reaper = IT("Model")
1389
Reaper.Parent = char
1390
Reaper.Name = "Reaper"
1391
RHe = IT("Part")
1392
RHe.Parent = Reaper
1393
RHe.BrickColor = BrickColor.new("Dark stone grey")
1394
RHe.Locked = true
1395
RHe.CanCollide = false
1396
RHe.Transparency = 0
1397
PMesh = IT("SpecialMesh")
1398
RHe.formFactor =  "Symmetric"
1399
PMesh.MeshType = "FileMesh"
1400
PMesh.MeshId = "rbxassetid://77353021"
1401
--PMesh.TextureId = "rbxassetid://116524836"
1402
PMesh.Scale = Vector3.new(1.5, 1.5, 1.5)
1403
PMesh.Parent = RHe
1404
local RWeld = IT("Weld")
1405
RWeld.Parent = RHe
1406
RWeld.Part0 = RHe
1407
RWeld.Part1 = tors
1408
RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(0), Rad(-20), Rad(90))
1409
-------------------------------------------------------
1410
--End Customization--
1411
-------------------------------------------------------
1412
1413
1414
-------------------------------------------------------
1415
--Start Attacks N Stuff--
1416
-------------------------------------------------------
1417
function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
1418
  local  Hitboxpart = Instance.new("Part", EffectModel)
1419
  RemoveOutlines(Hitboxpart)
1420
  Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
1421
  Hitboxpart.CanCollide = false
1422
  Hitboxpart.Transparency = 1
1423
  Hitboxpart.Anchored = true
1424
  Hitboxpart.CFrame = Pose
1425
  game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
1426
  MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
1427
end
1428
function LaternSmack()
1429
	attack = true
1430
	hum.WalkSpeed = 3.01
1431
	for i = 0, 1.4, 0.1 do
1432
		swait()
1433
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-6), Rad(0), Rad(0)), 0.15)
1434
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
1435
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1436
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1437
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(186), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1438
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-36), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1439
		HW.C0 = clerp(HW.C0, CF(0, -1, -0.4) * angles(Rad(235), Rad(-.6), Rad(0)), 0.2)
1440
	end
1441
	local Flame = Cso("213656638", Lampo, 1.7, .9)
1442
	if Flame then
1443
	Flame.TimePosition = .5
1444
	end
1445-
		LaternSmack()
1445+
1446
	HitboxFunction(Lampo.CFrame * CF(0, 0, 1), 0.01, 1, 1, 1, 7, 10, 20, 3, "Firedmg")
1447
	for i = 0, 1.7, 0.1 do
1448
		swait()
1449
		BlockEffect(maincolor, Lampo.CFrame, 21, 41, 21, -3.5, -3.5, -3.5, 0.08, 3)
1450
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(10)), 0.15)
1451
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(21 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-10)), 0.3)
1452-
			Taunt()
1452+
1453
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(26)), 0.15)
1454-
			EquipBlade()
1454+
1455
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.2)
1456-
			DequipBlade()
1456+
1457
	end
1458
	attack = false
1459
	hum.WalkSpeed = 12
1460
end
1461
function LaternSpin()
1462
	attack = true
1463
end
1464
function Taunt()
1465
	attack = true
1466
	hum.WalkSpeed = 1.01
1467
	coroutine.resume(coroutine.create(function()
1468
		for i = 0, 0.3, 0.1 do
1469
		swait(35)
1470
		Cso("145878848", Lampo, 3, 1)
1471
		end
1472
	end))
1473
	for i = 0, 16, 0.1 do
1474
		swait()
1475
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
1476
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
1477
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1478
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1479
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125 + 25 * Cos(sine / 7)), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1480
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1481
		HW.C0 = clerp(HW.C0, CF(0, -0.6, 0.6) * angles(Rad(67 + 35 * Cos(sine / 7)), Rad(-.6), Rad(0)), 0.1)
1482
	end
1483
	hum.WalkSpeed = 12
1484
	attack = false
1485
end
1486
function EquipBlade()
1487
	attack = true
1488
	hum.WalkSpeed = 0
1489
	for i = 0, 4, 0.1 do
1490
		swait()
1491
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
1492
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
1493
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1494
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1495
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-6 + 4.5 * Sin(sine / 20))), 0.1)
1496
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1497
		HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1)
1498
	end
1499
	coroutine.resume(coroutine.create(function()
1500
		HW.Part0 = tors
1501
		for i = 0, 3, 0.1 do
1502
			swait()
1503
			HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 4.5 * Sin(sine / 20)), Rad(60), Rad(-40)), 0.15)
1504
		end
1505
	end))
1506
	for i = 0, 5, 0.1 do
1507
		swait()
1508
		RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(-34), Rad(-20), Rad(90))
1509
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-20)), 0.15)
1510
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.3)
1511
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1512
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1513
		RW.C0 = clerp(RW.C0, CF(0.9* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, -1.1* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-45 + 4.5 * Sin(sine / 20))), 0.1)
1514
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1515
		HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
1516
	end
1517
	RWeld.Part1 = ra
1518
	for i = 0, 5, 0.1 do
1519
		swait()
1520
		RWeld.C0 = CF(-1, 0, -1.9) * angles(Rad(-90), Rad(0), Rad(90))
1521
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
1522
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
1523
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1524
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1525
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1)
1526
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1527
		HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
1528
	end
1529
	attack = false
1530
	Mode = "Blade"
1531
	hum.WalkSpeed = 12
1532
end
1533
function DequipBlade()
1534
	attack = true
1535
	hum.WalkSpeed = 0
1536
	RWeld.Part1 = tors
1537
	for i = 0, 5, 0.1 do
1538
		swait()
1539
		RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(-34), Rad(-20), Rad(90))
1540
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-20)), 0.15)
1541
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.15)
1542
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1543
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1544
		RW.C0 = clerp(RW.C0, CF(0.9* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, -1.1* Player_Size) * angles(Rad(58), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-45 + 4.5 * Sin(sine / 20))), 0.15)
1545
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-36), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.15)
1546
		HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
1547
	end
1548
	HW.Part0 = ra
1549
	RWeld.C0 = CF(-0.9, 1, -0.6) * angles(Rad(0), Rad(-20), Rad(90))
1550
	for i = 0, 4, 0.1 do
1551
		swait()
1552
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
1553
		tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
1554
		RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1555
		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1556
		RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-6 + 4.5 * Sin(sine / 20))), 0.15)
1557
		LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1558
		HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1)
1559
	end
1560
	attack = false
1561
	Mode = "Latern"
1562
	hum.WalkSpeed = 12
1563
end
1564
-------------------------------------------------------
1565
--End Attacks N Stuff--
1566
-------------------------------------------------------
1567
mouse.Button1Down:connect(function(key)
1568
	if attack == false then
1569
		if Mode == "Latern" then
1570
		----LaternSmack()
1571
		end
1572
	end
1573
end)
1574
mouse.KeyDown:connect(function(key)
1575
	if attack == false then
1576
		if key == 't' and Mode == "Latern" then
1577
		----	Taunt()
1578
		elseif key == 'p' and Mode == "Latern" then
1579
			----EquipBlade()
1580
		elseif key == 'p' and Mode == "Blade" then
1581
			----DequipBlade()
1582
		end
1583
	end
1584
end)
1585
1586
 
1587
1588
1589
1590
1591
1592
-------------------------------------------------------
1593
--Start Animations--
1594
-------------------------------------------------------
1595
print("By Makhail07")
1596
while true do
1597
	swait()
1598
	sine = sine + change
1599
	--ANIMATE.Parent = nil
1600
	--local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
1601
	--IDLEANIMATION:Play()
1602
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1603
	local velderp = root.Velocity.y
1604
	hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
1605
	if equipped == true or equipped == false then
1606
		if attack == false then
1607
			idle = idle + 1
1608
		else
1609
			idle = 0
1610
		end
1611
		if 1 < root.Velocity.y and hitfloor == nil then
1612
			Anim = "Jump"
1613
			if attack == false then
1614
				if Mode == "Latern" then
1615
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
1616
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1617
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1618
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1619
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1620
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1621
				HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(147), Rad(0), Rad(0)), 0.1)
1622
				elseif Mode == "Blade" then
1623
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
1624
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1625
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1626
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
1627
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1628
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1629
				HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
1630
				end
1631
			end
1632
		elseif -1 > root.Velocity.y and hitfloor == nil then
1633
			Anim = "Fall"
1634
			if attack == false then
1635
				if Mode == "Latern" then
1636
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
1637
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1638
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1639
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1640
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
1641
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
1642
				HW.C0 = clerp(HW.C0, CF(0, -1.1, 0.4) * angles(Rad(175), Rad(0), Rad(0)), 0.1)
1643
				elseif Mode == "Blade" then
1644
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
1645
				neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
1646
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1647
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
1648
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
1649
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
1650
				HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(195 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
1651
				end
1652
			end
1653
		elseif torvel < 1 and hitfloor ~= nil then
1654
			Anim = "Idle"
1655
			change = 1
1656
			if attack == false then
1657
				if Mode == "Latern" then
1658
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
1659
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
1660
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1661
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1662
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(13 + 4.5 * Sin(sine / 20)), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
1663
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1664
				HW.C0 = clerp(HW.C0, CF(0, -0.8, 0.6) * angles(Rad(67), Rad(-.6), Rad(10 * Cos(sine / 20))), 0.1)
1665
			elseif Mode == "Blade" then
1666
				RWeld.C0 = CF(-1, 0, -2.1) * angles(Rad(-180), Rad(0), Rad(90))
1667
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.15)
1668
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
1669
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(60), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.15)
1670
				LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-9)), 0.15)
1671
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1)
1672
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(16), Rad(13 + 4.5 * Sin(sine / 20)), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
1673
				HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 8.5 * Cos(sine / 20)), Rad(60), Rad(-40)), 0.1)
1674
				end
1675
			end
1676
		elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then
1677
			Anim = "Walk"
1678
			change = 1
1679
			if attack == false then
1680
				if Mode == "Latern" then
1681
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.10 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(4 * Cos(sine / 7))), 0.15)
1682
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1683
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size)  * angles(Rad(-15 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1684
         		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1685
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(13 + 4.5 * Sin(sine / 12)), Rad(13 + 4.5 * Sin(sine / 12))), 0.1)
1686
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) ,	Rad(-6) + la.RotVelocity.Y / 75), 0.1)
1687
				HW.C0 = clerp(HW.C0, CF(0, -0.7, 0.6) * angles(Rad(67 + 8 * Cos(sine / 7)), Rad(0), Rad(18 * Cos(sine / 7))), 0.1)
1688
				elseif Mode == "Blade" then
1689
				rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.10 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(4 * Cos(sine / 7))), 0.15)
1690
				tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
1691
				RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size)  * angles(Rad(-15 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1692
         		LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
1693
				RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(13 + 4.5 * Sin(sine / 20)), Rad(24 + 4.5 * Sin(sine / 20))), 0.1)
1694
				LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) ,	Rad(-6) + la.RotVelocity.Y / 75), 0.1)
1695
				HW.C0 = clerp(HW.C0, CF(1, -0.8, -0.2) * angles(Rad(180 + 15 * Cos(sine / 3.5)), Rad(60), Rad(-40)), 0.1)
1696
				end
1697
			end
1698
		end
1699
	end
1700
	Music.SoundId = "rbxassetid://"..SONG
1701
	Music.Looped = true
1702
	Music.Pitch = 1
1703
	Music.Volume = 2.5
1704
	Music.Parent = tors
1705
	Music:Resume()
1706
	if 0 < #Effects then
1707
		for e = 1, #Effects do
1708
			if Effects[e] ~= nil then
1709
				local Thing = Effects[e]
1710
				if Thing ~= nil then
1711
					local Part = Thing[1]
1712
					local Mode = Thing[2]
1713
					local Delay = Thing[3]
1714
					local IncX = Thing[4]
1715
					local IncY = Thing[5]
1716
					local IncZ = Thing[6]
1717
					if 1 >= Thing[1].Transparency then
1718
						if Thing[2] == "Block1" then
1719
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1720
							local Mesh = Thing[1].Mesh
1721
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1722
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1723
						elseif Thing[2] == "Block2" then
1724
							Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1725
							local Mesh = Thing[7]
1726
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1727
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1728
						elseif Thing[2] == "Block3" then
1729
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1730
							local Mesh = Thing[7]
1731
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1732
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1733
						elseif Thing[2] == "Cylinder" then
1734
							local Mesh = Thing[1].Mesh
1735
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1736
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1737
						elseif Thing[2] == "Blood" then
1738
							local Mesh = Thing[7]
1739
							Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1740
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1741
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1742
						elseif Thing[2] == "Elec" then
1743
							local Mesh = Thing[1].Mesh
1744
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1745
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1746
						elseif Thing[2] == "Disappear" then
1747
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1748
						elseif Thing[2] == "Shatter" then
1749
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1750
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1751
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1752
							Thing[6] = Thing[6] + Thing[5]
1753
						end
1754
					else
1755
						Part.Parent = nil
1756
						table.remove(Effects, e)
1757
					end
1758
				end
1759
			end
1760
		end
1761
	end
1762
end
1763
-------------------------------------------------------
1764
--End Animations And Script--
1765
-------------------------------------------------------