View difference between Paste ID: 0nF4vFKD and za1fXu2z
SHOW: | | - or go back to the newest paste.
1-
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
1+
2-
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
2+
3-
do
3+
4-
	print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
4+
5-
    print("Have Fun!")
5+
6-
	script.Parent = Player.Character
6+
7
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
8-
	--RemoteEvent for communicating
8+
9-
	local Event = Instance.new("RemoteEvent")
9+
10-
	Event.Name = "UserInput_Event"
10+
11
for i = 1, 8 do
12-
	--Fake event to make stuff like Mouse.KeyDown work
12+
13-
	local function fakeEvent()
13+
14-
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14+
15-
		t.connect = t.Connect
15+
16-
		return t
16+
17
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
18
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
19-
	--Creating fake input objects with fake variables
19+
20-
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20+
21-
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21+
22-
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22+
23-
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23+
24-
	end}
24+
25-
	--Merged 2 functions into one by checking amount of arguments
25+
26-
	CAS.UnbindAction = CAS.BindAction
26+
27
local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
28-
	--This function will trigger the events that have been :Connect()'ed
28+
29-
	local function te(self,ev,...)
29+
30-
		local t = m[ev]
30+
31-
		if t and t._fakeEvent and t.Function then
31+
32-
			t.Function(...)
32+
33
local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
34
MakeForm(RightHole,"Cyl")
35-
	m.TrigEvent = te
35+
36-
	UIS.TrigEvent = te
36+
37
local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
38-
	Event.OnServerEvent:Connect(function(plr,io)
38+
39-
	    if plr~=Player then return end
39+
40-
		if io.isMouse then
40+
41-
			m.Target = io.Target
41+
42-
			m.Hit = io.Hit
42+
43
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
44-
			local b = io.UserInputState == Enum.UserInputState.Begin
44+
45-
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45+
46-
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46+
47
    local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
48-
			for _,t in pairs(CAS.Actions) do
48+
49-
				for _,k in pairs(t.Keys) do
49+
50-
					if k==io.KeyCode then
50+
51-
						t.Function(t.Name,io.UserInputState,io)
51+
52
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
53
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
54
MakeForm(Part,"Cyl")
55
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
56
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
57
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
58
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false)
59
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
60
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false)
61
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
62
local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
63
MakeForm(LeftBarrel,"Cyl")
64
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
65
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false)
66
MakeForm(Part,"Wedge")
67
CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
68
local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
69
MakeForm(LeftHole,"Cyl")
70
CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
71
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
72
MakeForm(Eye,"Ball")
73
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
74
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
75
MakeForm(Eye,"Ball")
76
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
77
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
78
MakeForm(Eye,"Ball")
79
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
80
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
81
MakeForm(Eye,"Ball")
82
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
83
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
84
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
85
	    end
86
	end)
87
	Event.Parent = NLS([==[
88
	local Player = game:GetService("Players").LocalPlayer
89
	local Event = script:WaitForChild("UserInput_Event")
90
91
	local UIS = game:GetService("UserInputService")
92
	local input = function(io,a)
93
		if a then return end
94
		--Since InputObject is a client-side instance, we create and pass table instead
95
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
96
	end
97
	UIS.InputBegan:Connect(input)
98
	UIS.InputEnded:Connect(input)
99
100
	local Mouse = Player:GetMouse()
101
	local h,t
102
	--Give the server mouse data 30 times every second, but only if the values changed
103
	--If player is not moving their mouse, client won't fire events
104
	while wait(1/30) do
105
		if h~=Mouse.Hit or t~=Mouse.Target then
106
			h,t=Mouse.Hit,Mouse.Target
107
			Event:FireServer({isMouse=true,Target=t,Hit=h})
108
		end
109
	end]==],Player.Character)
110
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
111
end
112
113
114
115
script.Name = "Soul Pistol"
116
--Original script created by shackluster
117
--Edit by Biologically_Noob
118
script:ClearAllChildren()
119
wait(0.2)
120
121
--|SIMPLE KICK SCRIPT FOR EMERGENCY PURPOSES AND STUFF|--
122
--|ROBLOX SCRIPT BUILDER LOCAL SCRIPT|--
123
player=game:GetService("Players").LocalPlayer
124
player.Chatted:connect(function(m)
125
if string.sub(m,1,6)=="kick " then
126
local victim
127
for i,v in pairs(game.Players:GetPlayers()) do
128
if string.find(m,v.Name) then
129
v:Kick()
130
end
131
end
132
end
133
end)
134
Player = game:GetService("Players").LocalPlayer
135
PlayerGui = Player.PlayerGui
136
Cam = workspace.CurrentCamera
137
Backpack = Player.Backpack
138
Character = Player.Character
139
Humanoid = Character.Humanoid
140
RootPart = Character["HumanoidRootPart"]
141
Torso = Character["Torso"]
142
Head = Character["Head"]
143
RightArm = Character["Right Arm"]
144-
	local Player = owner
144+
145
RightLeg = Character["Right Leg"]
146
LeftLeg = Character["Left Leg"]
147
RootJoint = RootPart["RootJoint"]
148
Neck = Torso["Neck"]
149
RightShoulder = Torso["Right Shoulder"]
150
LeftShoulder = Torso["Left Shoulder"]
151
RightHip = Torso["Right Hip"]
152
LeftHip = Torso["Left Hip"]
153
local TIME = 0
154
local sick = Instance.new("Sound",Torso)
155
156
IT = Instance.new
157
CF = CFrame.new
158
VT = Vector3.new
159
RAD = math.rad
160
C3 = Color3.new
161
UD2 = UDim2.new
162
BRICKC = BrickColor.new
163
ANGLES = CFrame.Angles
164
EULER = CFrame.fromEulerAnglesXYZ
165
COS = math.cos
166
ACOS = math.acos
167
SIN = math.sin
168
ASIN = math.asin
169
ABS = math.abs
170
MRANDOM = math.random
171
FLOOR = math.floor
172
173
--//=================================\\
174
--|| 	      USEFUL VALUES
175
--\\=================================//
176
177
Animation_Speed = 3
178
local FORCERESET = false
179-
player=owner
179+
180
local Speed = 16
181
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
182
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
183
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
184
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
185
local DAMAGEMULTIPLIER = 1
186
local ANIM = "Idle"
187
local ATTACK = false
188
local EQUIPPED = false
189
local HOLD = false
190-
Player = owner
190+
191
local Rooted = false
192
local SINE = 0
193
local KEYHOLD = false
194
local CHANGE = 2 / Animation_Speed
195
local WALKINGANIM = false
196
local VALUE1 = false
197
local VALUE2 = false
198
local ROBLOXIDLEANIMATION = IT("Animation")
199
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
200
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
201
--ROBLOXIDLEANIMATION.Parent = Humanoid
202
local WEAPONGUI = IT("ScreenGui", PlayerGui)
203
WEAPONGUI.Name = "BanishV3Gui"
204
local Weapon = IT("Model")
205
Weapon.Name = "Adds"
206
local Effects = IT("Folder", Weapon)
207
Effects.Name = "Effects"
208
local ANIMATOR = Humanoid.Animator
209
local ANIMATE = Character:FindFirstChild("Animate")
210
local UNANCHOR = true
211
local TOBANISH = {}
212
script.Parent = PlayerGui
213
214
--//=================================\\
215
--\\=================================//
216
217
218
--//=================================\\
219
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
220
--\\=================================//
221
222
ArtificialHB = Instance.new("BindableEvent", script)
223
ArtificialHB.Name = "ArtificialHB"
224
225
script:WaitForChild("ArtificialHB")
226
227
frame = Frame_Speed
228
tf = 0
229
allowframeloss = false
230
tossremainder = false
231
lastframe = tick()
232
script.ArtificialHB:Fire()
233
234
game:GetService("RunService").Heartbeat:connect(function(s, p)
235
	tf = tf + s
236
	if tf >= frame then
237
		if allowframeloss then
238
			script.ArtificialHB:Fire()
239
			lastframe = tick()
240
		else
241
			for i = 1, math.floor(tf / frame) do
242
				script.ArtificialHB:Fire()
243
			end
244
		lastframe = tick()
245
		end
246
		if tossremainder then
247
			tf = 0
248
		else
249
			tf = tf - frame * math.floor(tf / frame)
250
		end
251
	end
252
end)
253
254
--//=================================\\
255
--\\=================================//
256
257
--//=================================\\
258
--|| 	      SOME FUNCTIONS
259
--\\=================================//
260
261
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
262
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
263
end
264
265
function PositiveAngle(NUMBER)
266
	if NUMBER >= 0 then
267
		NUMBER = 0
268
	end
269
	return NUMBER
270
end
271
272
function NegativeAngle(NUMBER)
273
	if NUMBER <= 0 then
274
		NUMBER = 0
275
	end
276
	return NUMBER
277
end
278
279
function Swait(NUMBER)
280
	if NUMBER == 0 or NUMBER == nil then
281
		ArtificialHB.Event:wait()
282
	else
283
		for i = 1, NUMBER do
284
			ArtificialHB.Event:wait()
285
		end
286
	end
287
end
288
289
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
290
	local NEWMESH = IT(MESH)
291
	if MESH == "SpecialMesh" then
292
		NEWMESH.MeshType = MESHTYPE
293
		if MESHID ~= "nil" and MESHID ~= "" then
294
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
295
		end
296
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
297
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
298
		end
299
	end
300
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
301
	NEWMESH.Scale = SCALE
302
	NEWMESH.Parent = PARENT
303
	return NEWMESH
304
end
305
306
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
307
	local NEWPART = IT("Part")
308
	NEWPART.formFactor = FORMFACTOR
309
	NEWPART.Reflectance = REFLECTANCE
310
	NEWPART.Transparency = TRANSPARENCY
311
	NEWPART.CanCollide = false
312
	NEWPART.Locked = true
313
	NEWPART.Anchored = true
314
	if ANCHOR == false then
315
		NEWPART.Anchored = false
316
	end
317
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
318
	NEWPART.Name = NAME
319
	NEWPART.Size = SIZE
320
	NEWPART.Position = Torso.Position
321
	NEWPART.Material = MATERIAL
322
	NEWPART:BreakJoints()
323
	NEWPART.Parent = PARENT
324
	return NEWPART
325
end
326
327
	local function weldBetween(a, b)
328
	    local weldd = Instance.new("ManualWeld")
329
	    weldd.Part0 = a
330
	    weldd.Part1 = b
331
	    weldd.C0 = CFrame.new()
332
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
333
	    weldd.Parent = a
334
	    return weldd
335
	end
336
337
338
function QuaternionFromCFrame(cf)
339
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
340
	local trace = m00 + m11 + m22
341
	if trace > 0 then 
342
		local s = math.sqrt(1 + trace)
343
		local recip = 0.5 / s
344
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
345
	else
346
		local i = 0
347
		if m11 > m00 then
348
			i = 1
349
		end
350
		if m22 > (i == 0 and m00 or m11) then
351
			i = 2
352
		end
353
		if i == 0 then
354
			local s = math.sqrt(m00 - m11 - m22 + 1)
355
			local recip = 0.5 / s
356
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
357
		elseif i == 1 then
358
			local s = math.sqrt(m11 - m22 - m00 + 1)
359
			local recip = 0.5 / s
360
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
361
		elseif i == 2 then
362
			local s = math.sqrt(m22 - m00 - m11 + 1)
363
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
364
		end
365
	end
366
end
367
 
368
function QuaternionToCFrame(px, py, pz, x, y, z, w)
369
	local xs, ys, zs = x + x, y + y, z + z
370
	local wx, wy, wz = w * xs, w * ys, w * zs
371
	local xx = x * xs
372
	local xy = x * ys
373
	local xz = x * zs
374
	local yy = y * ys
375
	local yz = y * zs
376
	local zz = z * zs
377
	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))
378
end
379
 
380
function QuaternionSlerp(a, b, t)
381
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
382
	local startInterp, finishInterp;
383
	if cosTheta >= 0.0001 then
384
		if (1 - cosTheta) > 0.0001 then
385
			local theta = ACOS(cosTheta)
386
			local invSinTheta = 1 / SIN(theta)
387
			startInterp = SIN((1 - t) * theta) * invSinTheta
388
			finishInterp = SIN(t * theta) * invSinTheta
389
		else
390
			startInterp = 1 - t
391
			finishInterp = t
392
		end
393
	else
394
		if (1 + cosTheta) > 0.0001 then
395
			local theta = ACOS(-cosTheta)
396
			local invSinTheta = 1 / SIN(theta)
397
			startInterp = SIN((t - 1) * theta) * invSinTheta
398
			finishInterp = SIN(t * theta) * invSinTheta
399
		else
400
			startInterp = t - 1
401
			finishInterp = t
402
		end
403
	end
404
	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
405
end
406
407
function Clerp(a, b, t)
408
	local qa = {QuaternionFromCFrame(a)}
409
	local qb = {QuaternionFromCFrame(b)}
410
	local ax, ay, az = a.x, a.y, a.z
411
	local bx, by, bz = b.x, b.y, b.z
412
	local _t = 1 - t
413
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
414
end
415
416
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
417
	local frame = IT("Frame")
418
	frame.BackgroundTransparency = TRANSPARENCY
419
	frame.BorderSizePixel = BORDERSIZEPIXEL
420
	frame.Position = POSITION
421
	frame.Size = SIZE
422
	frame.BackgroundColor3 = COLOR
423
	frame.BorderColor3 = BORDERCOLOR
424
	frame.Name = NAME
425
	frame.Parent = PARENT
426
	return frame
427
end
428
429
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
430
	local label = IT("TextLabel")
431
	label.BackgroundTransparency = 1
432
	label.Size = UD2(1, 0, 1, 0)
433
	label.Position = UD2(0, 0, 0, 0)
434
	label.TextColor3 = TEXTCOLOR
435
	label.TextStrokeTransparency = STROKETRANSPARENCY
436
	label.TextTransparency = TRANSPARENCY
437
	label.FontSize = TEXTFONTSIZE
438
	label.Font = TEXTFONT
439
	label.BorderSizePixel = BORDERSIZEPIXEL
440
	label.TextScaled = false
441
	label.Text = TEXT
442
	label.Name = NAME
443
	label.Parent = PARENT
444
	return label
445
end
446
447
function NoOutlines(PART)
448
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
449
end
450
451
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
452
	local NEWWELD = IT(TYPE)
453
	NEWWELD.Part0 = PART0
454
	NEWWELD.Part1 = PART1
455
	NEWWELD.C0 = C0
456
	NEWWELD.C1 = C1
457
	NEWWELD.Parent = PARENT
458
	return NEWWELD
459
end
460
461
local S = IT("Sound")
462
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
463
	local NEWSOUND = nil
464
	coroutine.resume(coroutine.create(function()
465
		NEWSOUND = S:Clone()
466
		NEWSOUND.Parent = PARENT
467
		NEWSOUND.Volume = VOLUME
468
		NEWSOUND.Pitch = PITCH
469
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
470
		NEWSOUND:play()
471
		if DOESLOOP == true then
472
			NEWSOUND.Looped = true
473
		else
474
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
475
			NEWSOUND:remove()
476
		end
477
	end))
478
	return NEWSOUND
479
end
480
481
function CFrameFromTopBack(at, top, back)
482
	local right = top:Cross(back)
483
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
484
end
485
486
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
487
function WACKYEFFECT(Table)
488
	local TYPE = (Table.EffectType or "Sphere")
489
	local SIZE = (Table.Size or VT(1,1,1))
490
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
491
	local TRANSPARENCY = (Table.Transparency or 0)
492
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
493
	local CFRAME = (Table.CFrame or Torso.CFrame)
494
	local MOVEDIRECTION = (Table.MoveToPos or nil)
495
	local ROTATION1 = (Table.RotationX or 0)
496
	local ROTATION2 = (Table.RotationY or 0)
497
	local ROTATION3 = (Table.RotationZ or 0)
498
	local MATERIAL = (Table.Material or "Neon")
499
	local COLOR = (Table.Color or C3(1,1,1))
500
	local TIME = (Table.Time or 45)
501
	local SOUNDID = (Table.SoundID or nil)
502
	local SOUNDPITCH = (Table.SoundPitch or nil)
503
	local SOUNDVOLUME = (Table.SoundVolume or nil)
504
	coroutine.resume(coroutine.create(function()
505
		local PLAYSSOUND = false
506
		local SOUND = nil
507
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
508
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
509
			PLAYSSOUND = true
510
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
511
		end
512
		EFFECT.Color = COLOR
513
		local MSH = nil
514
		if TYPE == "Sphere" then
515
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
516
		elseif TYPE == "Block" then
517
			MSH = IT("BlockMesh",EFFECT)
518
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
519
		elseif TYPE == "Wave" then
520
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
521
		elseif TYPE == "Ring" then
522
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
523
		elseif TYPE == "Slash" then
524
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
525
		elseif TYPE == "Round Slash" then
526
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
527
		elseif TYPE == "Swirl" then
528
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
529
		elseif TYPE == "Skull" then
530
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
531
		elseif TYPE == "Crystal" then
532
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
533
		end
534
		if MSH ~= nil then
535
			local MOVESPEED = nil
536
			if MOVEDIRECTION ~= nil then
537
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
538
			end
539
			local GROWTH = SIZE - ENDSIZE
540
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
541
			if TYPE == "Block" then
542
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
543
			else
544
				EFFECT.CFrame = CFRAME
545
			end
546
			for LOOP = 1, TIME+1 do
547
				Swait()
548
				MSH.Scale = MSH.Scale - GROWTH/TIME
549
				if TYPE == "Wave" then
550
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
551
				end
552
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
553
				if TYPE == "Block" then
554
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
555
				else
556
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
557
				end
558
				if MOVEDIRECTION ~= nil then
559
					local ORI = EFFECT.Orientation
560
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
561
					EFFECT.Orientation = ORI
562
				end
563
			end
564
			if PLAYSSOUND == false then
565
				EFFECT:remove()
566
			else
567
				SOUND.Stopped:Connect(function()
568
					EFFECT:remove()
569
				end)
570
			end
571
		else
572
			if PLAYSSOUND == false then
573
				EFFECT:remove()
574
			else
575
				repeat Swait() until SOUND.Playing == false
576
				EFFECT:remove()
577
			end
578
		end
579
	end))
580
end
581
582
function MakeForm(PART,TYPE)
583
	if TYPE == "Cyl" then
584
		local MSH = IT("CylinderMesh",PART)
585
	elseif TYPE == "Ball" then
586
		local MSH = IT("SpecialMesh",PART)
587
		MSH.MeshType = "Sphere"
588
	elseif TYPE == "Wedge" then
589
		local MSH = IT("SpecialMesh",PART)
590
		MSH.MeshType = "Wedge"
591
	end
592
end
593
594
function SpawnTrail(FROM,TO,BIG)
595
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Cyan", "Trail", VT(0,0,0))
596
	MakeForm(TRAIL,"Cyl")
597
	local DIST = (FROM - TO).Magnitude
598
	if BIG == true then
599
		TRAIL.Size = VT(0.5,DIST,0.5)
600
	else
601
		TRAIL.Size = VT(0.25,DIST,0.25)
602
	end
603
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
604
	coroutine.resume(coroutine.create(function()
605
		for i = 1, 5 do
606
			Swait()
607
			TRAIL.Transparency = TRAIL.Transparency + 0.1
608
		end
609
		TRAIL:remove()
610
	end))
611
end
612
613
Debris = game:GetService("Debris")
614
615
function CastProperRay(StartPos, EndPos, Distance, Ignore)
616
	local DIRECTION = CF(StartPos,EndPos).lookVector
617
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
618
end
619
620
function turnto(position)
621
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
622
end
623
624
--//=================================\\
625
--||	     WEAPON CREATION
626
--\\=================================//
627
628
local Particle = IT("ParticleEmitter",nil)
629
Particle.Enabled = false
630
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
631
Particle.LightEmission = 0.5
632
Particle.Rate = 150
633
Particle.ZOffset = 0.2
634
Particle.Rotation = NumberRange.new(-180, 180)
635
Particle.RotSpeed = NumberRange.new(-180, 180)
636
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
637
Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255))
638
local Particle2 = IT("ParticleEmitter",nil)
639
Particle2.Enabled = false
640
Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597"
641
Particle2.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
642
Particle2.LightEmission = 0
643
Particle2.RotSpeed = NumberRange.new(0, 180)
644
Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
645
Particle2.LightEmission = 1
646
Particle2.Rate = 20
647
Particle2.RotSpeed = NumberRange.new(-20, 20)
648
local Particle3 = IT("ParticleEmitter",nil)
649
Particle3.Enabled = false
650
Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121"
651
Particle3.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
652
Particle3.LightEmission = 0
653
Particle3.RotSpeed = NumberRange.new(0, 180)
654
Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
655
Particle3.LightEmission = 1
656
Particle3.Rate = 20
657
Particle3.RotSpeed = NumberRange.new(-20, 20)
658
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
659
function ParticleEmitter(Table)
660
	local PRTCL = Particle:Clone()
661
	local Speed = Table.Speed or 5
662
	local Drag = Table.Drag or 0
663
	local Size1 = Table.Size1 or 1
664
	local Size2 = Table.Size2 or 5
665
	local Lifetime1 = Table.Lifetime1 or 1
666
	local Lifetime2 = Table.Lifetime2 or 1.5
667
	local Parent = Table.Parent or Torso
668
	local Emit = Table.Emit or 100
669
	local Offset = Table.Offset or 360
670
	local Acel = Table.Acel or VT(0,0,0)
671
	local Enabled = Table.Enabled or false
672
	PRTCL.Parent = Parent
673
	PRTCL.Size = NumberSequence.new(Size1,Size2)
674
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
675
	PRTCL.Speed = NumberRange.new(Speed)
676
	PRTCL.VelocitySpread = Offset
677
	PRTCL.Drag = Drag
678
	PRTCL.Acceleration = Acel
679
	if Enabled == false then
680
		PRTCL:Emit(Emit)
681
		Debris:AddItem(PRTCL,Lifetime2)
682
	else
683
		PRTCL.Enabled = true
684
	end
685
	return PRTCL
686
end
687
function ParticleEmitter2(Table)
688
	local PRTCL2 = Particle2:Clone()
689
	local LockedToPart = Table.LTP or true
690
	local Speed = Table.Speed or 0
691
	local Drag = Table.Drag or 0
692
	local Size1 = Table.Size1 or 1
693
	local Size2 = Table.Size2 or 2
694
	local Lifetime1 = Table.Lifetime1 or 1
695
	local Lifetime2 = Table.Lifetime2 or 1
696
	local Parent = Table.Parent or Torso
697
	local Emit = Table.Emit or 100
698
	local Offset = Table.Offset or 360
699
	local Acel = Table.Acel or VT(0,0,0)
700
	local Enabled = Table.Enabled or false
701
	PRTCL2.Parent = Parent
702
	PRTCL2.Size = NumberSequence.new(Size1,Size2)
703
	PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
704
	PRTCL2.Speed = NumberRange.new(Speed)
705
	PRTCL2.VelocitySpread = Offset
706
	PRTCL2.Drag = Drag
707
	PRTCL2.Acceleration = Acel
708
		PRTCL2.Parent = Parent
709
		PRTCL2.Size = NumberSequence.new(Size1,Size2)
710
		PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
711
		PRTCL2.Speed = NumberRange.new(Speed)
712
		PRTCL2.VelocitySpread = Offset
713
		PRTCL2.Drag = Drag
714
		PRTCL2.Acceleration = Acel
715
		PRTCL2.LockedToPart = true
716
	if Enabled == false then
717
		PRTCL2:Emit(Emit)
718
		Debris:AddItem(PRTCL2,Lifetime2)
719
	else
720
		PRTCL2.Enabled = true
721
	end
722
	return PRTCL2
723
end
724
function ParticleEmitter3(Table)
725
	local PRTCL3 = Particle2:Clone()
726
	local Speed = Table.Speed or 0
727
	local Drag = Table.Drag or 0
728
	local Size1 = Table.Size1 or 1
729
	local Size2 = Table.Size2 or 2
730
	local Lifetime1 = Table.Lifetime1 or 1
731
	local Lifetime2 = Table.Lifetime2 or 1
732
	local Parent = Table.Parent or Torso
733
	local Emit = Table.Emit or 100
734
	local Offset = Table.Offset or 0
735
	local Acel = Table.Acel or VT(0,0,0)
736
	local Enabled = Table.Enabled or false
737
	PRTCL3.Parent = Parent
738
	PRTCL3.Size = NumberSequence.new(Size1,Size2)
739
	PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
740
	PRTCL3.Speed = NumberRange.new(Speed)
741
	PRTCL3.VelocitySpread = Offset
742
	PRTCL3.Drag = Drag
743
	PRTCL3.Acceleration = Acel
744
		PRTCL3.Parent = Parent
745
		PRTCL3.Size = NumberSequence.new(Size1,Size2)
746
		PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
747
		PRTCL3.Speed = NumberRange.new(Speed)
748
		PRTCL3.VelocitySpread = Offset
749
		PRTCL3.Drag = Drag
750
		PRTCL3.Acceleration = Acel
751
	if Enabled == false then
752
		PRTCL3:Emit(Emit)
753
		Debris:AddItem(PRTCL3,Lifetime2)
754
	else
755
		PRTCL3.Enabled = true
756
	end
757
	return PRTCL3
758
end
759
760
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
761
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
762
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
763
MakeForm(Part,"Wedge")
764
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
765
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
766
MakeForm(Part,"Wedge")
767
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
768
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
769
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
770
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
771
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
772
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
773
MakeForm(Part,"Cyl")
774
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
775
for i = 1, 8 do
776
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
777
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
778
end
779
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
780
MakeForm(Part,"Cyl")
781
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
782
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
783
MakeForm(Part,"Ball")
784
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
785
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
786
MakeForm(Part,"Wedge")
787
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
788
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
789
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
790
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
791
MakeForm(Part,"Cyl")
792
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
793
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
794
MakeForm(Part,"Cyl")
795
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
796
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
797
MakeForm(Part,"Cyl")
798
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
799
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
800
MakeForm(Part,"Wedge")
801
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
802
local LASTPART = Handle
803
for i = 1, 10 do
804
	if LASTPART == Handle then
805
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
806
		LASTPART = Part
807
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
808
	else
809
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
810
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
811
		LASTPART = Part
812
	end
813
end
814
815
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
816
MakeForm(Barrel,"Cyl")
817
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
818
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
819
MakeForm(Part,"Cyl")
820
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
821
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
822
MakeForm(Part,"Wedge")
823
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
824
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
825
MakeForm(Hole,"Cyl")
826
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
827
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
828
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
829
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
830
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
831
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
832
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
833
coroutine.resume(coroutine.create(function()
834
	while wait() do
835
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
836
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
837
	end
838
end))
839
--PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
840
--[[
841
	YEAH BOIIIIIIIII
842
	PARTICLE TIME
843
--]]
844
ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
845
--ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)})
846
ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
847
ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
848
ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
849
--Trails
850
local A1 = Instance.new("Attachment",Barrel)
851
local A2 = Instance.new("Attachment",Barrel)
852
local Trail = Instance.new("Trail",Barrel)
853
A1.Position = Vector3.new(0,1,0)
854
A2.Position = Vector3.new(0,-0.8,0)
855
Trail.Attachment0 = A1
856
Trail.Attachment1 = A2
857
Trail.LightEmission = 1
858
Trail.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0))
859
Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
860
for _, c in pairs(Weapon:GetDescendants()) do
861
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
862
		c.Material = "Glass"
863
		c.Color = C3(0,0,0)
864
	elseif c.ClassName == "Part" and c.Name == "Eye" then
865
		c.Color = C3(0,0,1)
866
		c.Material = "Neon"
867
	end
868
end
869
870
Weapon.Parent = Character
871
for _, c in pairs(Weapon:GetChildren()) do
872
	if c.ClassName == "Part" then
873
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
874
	end
875
end
876
877
local SKILLTEXTCOLOR = C3(0,0,1)
878
local SKILLFONT = "Antique"
879
local SKILLTEXTSIZE = 7
880
881
Humanoid.Died:connect(function()
882
	ATTACK = true
883
end)
884
885
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
886
--[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
887
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
888
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
889
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
890
--]]
891
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
892
--[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
893
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
894
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
895
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
896
--]]
897
function printbye(Name)
898
	local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
899
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
900
		
901
end
902
903
workspace.ChildAdded:connect(function(instance)
904
    for BANISH = 1, #TOBANISH do
905
		if TOBANISH[BANISH] ~= nil then
906
			if instance.Name == TOBANISH[BANISH] then
907
				coroutine.resume(coroutine.create(function()
908
					printbye(instance.Name)
909
					instance:ClearAllChildren()
910
					Debris:AddItem(instance,0.0005)
911
				end))
912
			end
913
		end
914
	end
915
end)
916
917
--//=================================\\
918
--||			DAMAGING
919
--\\=================================//
920
921
function Banish(Foe)
922
	if Foe then
923
		coroutine.resume(coroutine.create(function()
924
			--if game.Players:FindFirstChild(Foe.Name) then
925
				table.insert(TOBANISH,Foe.Name)
926
				printbye(Foe.Name)
927
			--end
928
			Foe.Archivable = true
929
			local CLONE = Foe:Clone()
930
			Foe:Destroy()
931
			CLONE.Parent = Effects
932
			CLONE:BreakJoints()
933
			local MATERIALS = {"Glass","Neon"}
934
			for _, c in pairs(CLONE:GetDescendants()) do
935
				if c:IsA("BasePart") then
936
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
937
 						CreateSound(340722848, c, 10, 1, false)
938
					end
939
					c.Anchored = true
940
					c.Transparency = c.Transparency + 0.2
941
					c.Material = MATERIALS[MRANDOM(1,2)]
942
					c.Color = C3(0,0,255)
943
					if c.ClassName == "MeshPart" then
944
						c.TextureID = ""
945
					end
946
					if c:FindFirstChildOfClass("SpecialMesh") then
947
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
948
					end
949
					if c:FindFirstChildOfClass("Decal") then
950
						c:FindFirstChildOfClass("Decal"):remove()
951
					end
952
					c.Name = "Banished"
953
					c.CanCollide = false
954
				else
955
					c:remove()
956
				end
957
			end
958
			local A = false
959
			for i = 1, 35 do
960
				if A == false then
961
					A = true
962
				elseif A == true then
963
					A = false
964
				end
965
				for _, c in pairs(CLONE:GetDescendants()) do
966
					if c:IsA("BasePart") then
967
						c.Anchored = true
968
						c.Material = MATERIALS[MRANDOM(1,2)]
969
						c.Transparency = c.Transparency + 0.8/35
970
						if A == false then
971
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
972
						elseif A == true then
973
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
974
						end
975
					end
976
				end
977
				Swait()
978
			end
979
			CLONE:remove()
980
		end))
981
	end
982
end
983
984
function ApplyAoE(POSITION,RANGE,ISBANISH)
985
	local CHILDREN = workspace:GetDescendants()
986
	for index, CHILD in pairs(CHILDREN) do
987
		if CHILD.ClassName == "Model" and CHILD ~= Character then
988
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
989
			if HUM then
990
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
991
				if TORSO then
992
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
993
						if ISBANISH == true then
994
							Banish(CHILD)
995
						else
996
							if ISBANISH == "Gravity" then
997
								HUM.PlatformStand = true
998
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
999
									local grav = Instance.new("BodyPosition",TORSO)
1000
									grav.D = 15
1001
									grav.P = 20000
1002
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1003
									grav.position = TORSO.Position
1004
									grav.Name = "V3BanishForce"..Player.Name
1005
								else
1006
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
1007
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
1008
								end
1009
							else
1010
								HUM.PlatformStand = false
1011
							end
1012
						end
1013
					elseif ISBANISH == "Gravity" then
1014
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1015
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
1016
							HUM.PlatformStand = false
1017
						end
1018
					end
1019
				end
1020
			end
1021
		end
1022
	end
1023
end
1024
1025
--//=================================\\
1026
--||	ATTACK FUNCTIONS AND STUFF
1027
--\\=================================//
1028
1029
function Banisher_Bullet()
1030
	ATTACK = true
1031
	Rooted = false
1032
	for i=0, 0.4, 0.1 / Animation_Speed do
1033
		Swait()
1034
		turnto(Mouse.Hit.p)
1035
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1036
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1037
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1038
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1039
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1040
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1041
	end
1042
	repeat
1043
		for i=0, 0.2, 0.1 / Animation_Speed do
1044
			Swait()
1045
			turnto(Mouse.Hit.p)
1046
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1047
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1048
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1049
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1050
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1051
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1052
		end
1053
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
1054
		SpawnTrail(Hole.Position,POS)
1055
		if HIT ~= nil then
1056
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1057
				Banish(HIT.Parent)
1058
			end
1059
		end
1060
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1061
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1062
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1063
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1064
		for i=0, 0.3, 0.1 / Animation_Speed do
1065
			Swait()
1066
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1067
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1068
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1069
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1070
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1071
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1072
		end
1073
	until KEYHOLD == false
1074
	ATTACK = false
1075
	Rooted = false
1076
end
1077
1078
function AttackTemplate()
1079
	ATTACK = true
1080
	Rooted = false
1081
	for i=0, 1, 0.1 / Animation_Speed do
1082
		Swait()
1083
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1084
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1085
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1086
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1087
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1088
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1089
	end
1090
	ATTACK = false
1091
	Rooted = false
1092
end
1093
--//================================\\
1094
--||      Edits                       
1095
--\\================================\\
1096
1097
---By leochoi2007---
1098
--NOT MADE FOR R15
1099
game.Players.PlayerAdded:connect(function(player)
1100
		player.CharacterAdded:connect(function(character)
1101
			player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=252557606" -- Insert ID here or leave this one--
1102
		end)
1103
end)
1104
1105
1106
1107
--//=================================\\
1108
--||          SOME TAG EDIT
1109
--\\=================================//
1110
1111
m = game:GetService("Players").LocalPlayer
1112
char = m.Character
1113
local txt = Instance.new("BillboardGui", char)
1114
txt.Adornee = char.Head
1115
txt.Name = "_status"
1116
txt.Size = UDim2.new(2, 0, 1.2, 0)
1117
txt.StudsOffset = Vector3.new(-9, 8, 0)
1118
local text = Instance.new("TextLabel", txt)
1119
text.Size = UDim2.new(10, 0, 7, 0)
1120
text.FontSize = "Size24"
1121
text.TextScaled = true
1122
text.TextTransparency = 0
1123
text.BackgroundTransparency = 1
1124
text.TextTransparency = 0
1125
text.TextStrokeTransparency = 0
1126
text.Font = "Bodoni"
1127
text.TextStrokeColor3 = Color3.new(0, 0, 0)
1128
v = Instance.new("Part")
1129
v.Name = "ColorBrick"
1130
v.Parent = m.Character
1131
v.FormFactor = "Symmetric"
1132
v.Anchored = true
1133
v.CanCollide = false
1134
v.BottomSurface = "Smooth"
1135
v.TopSurface = "Smooth"
1136
v.Size = Vector3.new(10, 5, 3)
1137
v.Transparency = 1
1138
v.CFrame = char.Torso.CFrame
1139
v.BrickColor = BrickColor.new("Really black")
1140
v.Transparency = 1
1141
v.Shape = "Block"
1142
spawn(function()
1143
local TweenService = game:GetService("TweenService")
1144
local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,0,255),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(150,0,175),Color3.fromRGB(0,0,0),Color3.fromRGB(100,100,100),Color3.fromRGB(0,0,0)}
1145
local Int = 0
1146
while wait(0.5) do
1147
    if Int == #Colours then Int = 0 end
1148
    Int = Int+1
1149
    TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
1150
end
1151
end)
1152
text.Text = "God Of The Unknown Banish"
1153
1154
local SONG = 1812212957
1155
local PLAYSONG = true
1156
1157
--//=================================\\
1158
--||	ATTACK FUNCTIONS AND STUFF
1159
--\\=================================//
1160
1161
1162
--//=================================\\
1163
--||	  ASSIGN THINGS TO KEYS
1164
--\\=================================//
1165
1166
function MouseDown(Mouse)
1167-
m = owner
1167+
1168
	end
1169
end
1170
1171
function MouseUp(Mouse)
1172
HOLD = false
1173
end
1174
1175
function KeyDown(Key)
1176
	KEYHOLD = true
1177
	if Key == "z" and ATTACK == false then
1178
		Banisher_Bullet()
1179
	end
1180
1181
	if Key == "b" and ATTACK == false then
1182
	end
1183
1184
	if Key == "c" and ATTACK == false then
1185
	end
1186
1187
	if Key == "v" and ATTACK == false then
1188
	end
1189
1190
	if Key == "x" and ATTACK == false then
1191
	end
1192
end
1193
1194
function KeyUp(Key)
1195
	KEYHOLD = false
1196
end
1197
1198
	Mouse.Button1Down:connect(function(NEWKEY)
1199
		MouseDown(NEWKEY)
1200
	end)
1201
	Mouse.Button1Up:connect(function(NEWKEY)
1202
		MouseUp(NEWKEY)
1203
	end)
1204
	Mouse.KeyDown:connect(function(NEWKEY)
1205
		KeyDown(NEWKEY)
1206
	end)
1207
	Mouse.KeyUp:connect(function(NEWKEY)
1208
		KeyUp(NEWKEY)
1209
	end)
1210
1211
--//=================================\\
1212
--\\=================================//
1213
1214
1215
function unanchor()
1216
	if UNANCHOR == true then
1217
		g = Character:GetChildren()
1218
		for i = 1, #g do
1219
			if g[i].ClassName == "Part" then
1220
				g[i].Anchored = false
1221
			end
1222
		end
1223
	end
1224
end
1225
1226
1227
--//=================================\\
1228
--||	WRAP THE WHOLE SCRIPT UP
1229
--\\=================================//
1230
1231
Humanoid.Changed:connect(function(Jump)
1232
	if Jump == "Jump" and (Disable_Jump == true) then
1233
		Humanoid.Jump = false
1234
	end
1235
end)
1236
1237
local CONNECT = nil
1238
1239
while true do
1240
	Swait()
1241
	ANIMATE.Parent = nil
1242
	if Character:FindFirstChildOfClass("Humanoid") == nil then
1243
		Humanoid = IT("Humanoid",Character)
1244
	end
1245
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1246
	    v:Stop();
1247
	end
1248
	SINE = SINE + CHANGE
1249
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1250
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1251
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1252
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1253
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1254
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1255
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1256
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1257
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1258
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1259
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1260
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1261
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1262
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1263
	end
1264
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1265
		ANIM = "Jump"
1266
		if ATTACK == false then
1267
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1268
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1269
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1270
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1271
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1272
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1273
	    end
1274
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1275
		ANIM = "Fall"
1276
		if ATTACK == false then
1277
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1278
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1279
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1280
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1281
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1282
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1283
		end
1284
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1285
		ANIM = "Idle"
1286
		if ATTACK == false then
1287
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
1288
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
1289
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1290
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1291
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1292
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1293
		end
1294
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1295
		ANIM = "Walk"
1296
		if ATTACK == false then
1297
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1298
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1299
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1300
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1301
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1302
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1303
		end
1304
	end
1305
	unanchor()
1306
	Humanoid.MaxHealth = math.huge
1307
	Humanoid.Health = math.huge
1308
----------------------------------------------------------------------------------
1309
local naeeym2 = Instance.new("BillboardGui",char)
1310
naeeym2.AlwaysOnTop = true
1311
naeeym2.Size = UDim2.new(5,35,2,15)
1312
naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
1313
naeeym2.Adornee = hed
1314
naeeym2.Name = "Name"
1315
--naeeym2.PlayerToHideFrom = Player
1316
local tecks2 = Instance.new("TextLabel",naeeym2)
1317
tecks2.BackgroundTransparency = 1
1318
tecks2.TextScaled = true
1319
tecks2.BorderSizePixel = 0
1320
tecks2.Font = Enum.Font.Antique
1321
tecks2.TextSize = 30
1322
tecks2.TextStrokeTransparency = 0
1323
tecks2.TextColor3 = Color3.new(0, 0, 0)
1324
tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
1325
tecks2.Size = UDim2.new(1,0,0.5,0)
1326
tecks2.Parent = naeeym2
1327
wait(0.1)
1328
tecks2.Text = "Possessed..?"
1329
--------------------------------------------------------
1330
local EyeSizes={
1331
	NumberSequenceKeypoint.new(0,0.65,0),
1332
	NumberSequenceKeypoint.new(0.5,0.7,0),
1333
	NumberSequenceKeypoint.new(1,0,0)
1334
}
1335
local EyeTrans={
1336
	NumberSequenceKeypoint.new(0,0,0),
1337
	NumberSequenceKeypoint.new(0.5,0,0),
1338
	NumberSequenceKeypoint.new(1,1,0)
1339
}
1340
local PE2=Instance.new("ParticleEmitter", ra)
1341
PE2.LightEmission=.9
1342
PE2.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
1343
PE2.Transparency=NumberSequence.new(EyeTrans)
1344
PE2.Lifetime=NumberRange.new(0.35)
1345
PE2.Rotation=NumberRange.new(0,360)
1346
PE2.Rate=999
1347
PE2.VelocitySpread = 10000
1348
PE2.Acceleration = Vector3.new(0,25,0)
1349
PE2.ZOffset = 0.5
1350
PE2.Drag = 0
1351
PE2.Speed = NumberRange.new(0,0,0)
1352
PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
1353
PE2.Name = "PE2"
1354
PE2.Enabled = true
1355
PE2.LockedToPart = true
1356
local EyeSizes={
1357
	NumberSequenceKeypoint.new(0,0.65,0),
1358
	NumberSequenceKeypoint.new(0.5,0.7,0),
1359
	NumberSequenceKeypoint.new(1,0,0)
1360
}
1361
local EyeTrans={
1362
	NumberSequenceKeypoint.new(0,0,0),
1363
	NumberSequenceKeypoint.new(0.5,0,0),
1364
	NumberSequenceKeypoint.new(1,1,0)
1365
}
1366
local PE3=Instance.new("ParticleEmitter", ra)
1367
PE3.LightEmission=.9
1368
PE3.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
1369
PE3.Transparency=NumberSequence.new(EyeTrans)
1370
PE3.Lifetime=NumberRange.new(0.35)
1371
PE3.Rotation=NumberRange.new(0,360)
1372
PE3.Rate=999
1373
PE3.VelocitySpread = 10000
1374
PE3.Acceleration = Vector3.new(0,25,0)
1375
PE3.ZOffset = 0.5
1376
PE3.Drag = 0
1377
PE3.Speed = NumberRange.new(0,0,0)
1378
PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
1379
PE3.Name = "PE3"
1380
PE3.Enabled = true
1381
PE3.LockedToPart = true
1382
1383
local EyeSizes={
1384
	NumberSequenceKeypoint.new(0,0.65,0),
1385
	NumberSequenceKeypoint.new(0.5,0.7,0),
1386
	NumberSequenceKeypoint.new(1,0,0)
1387
}
1388
local EyeTrans={
1389
	NumberSequenceKeypoint.new(0,0,0),
1390
	NumberSequenceKeypoint.new(0.5,0,0),
1391
	NumberSequenceKeypoint.new(1,1,0)
1392
}
1393
local PE4=Instance.new("ParticleEmitter", ll)
1394
PE4.LightEmission=.9
1395
PE4.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
1396
PE4.Transparency=NumberSequence.new(EyeTrans)
1397
PE4.Lifetime=NumberRange.new(0.35)
1398
PE4.Rotation=NumberRange.new(0,360)
1399
PE4.Rate=999
1400
PE4.VelocitySpread = 10000
1401
PE4.Acceleration = Vector3.new(0,25,0)
1402
PE4.ZOffset = 0.5
1403
PE4.Drag = 0
1404
PE4.Speed = NumberRange.new(0,0,0)
1405
PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
1406
PE4.Name = "PE4"
1407
PE4.Enabled = true
1408
PE4.LockedToPart = true
1409
local EyeSizes={
1410
	NumberSequenceKeypoint.new(0,0.65,0),
1411
	NumberSequenceKeypoint.new(0.5,0.7,0),
1412
	NumberSequenceKeypoint.new(1,0,0)
1413
}
1414
local EyeTrans={
1415
	NumberSequenceKeypoint.new(0,0,0),
1416
	NumberSequenceKeypoint.new(0.5,0,0),
1417
	NumberSequenceKeypoint.new(1,1,0)
1418
}
1419
local PE5=Instance.new("ParticleEmitter", ll)
1420
PE5.LightEmission=.9
1421
PE5.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
1422
PE5.Transparency=NumberSequence.new(EyeTrans)
1423
PE5.Lifetime=NumberRange.new(0.35)
1424
PE5.Rotation=NumberRange.new(0,360)
1425
PE5.Rate=999
1426
PE5.VelocitySpread = 10000
1427
PE5.Acceleration = Vector3.new(0,25,0)
1428
PE5.ZOffset = 0.5
1429
PE5.Drag = 0
1430
PE5.Speed = NumberRange.new(0,0,0)
1431
PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
1432
PE5.Name = "PE5"
1433
PE5.Enabled = true
1434
PE5.LockedToPart = true
1435
-------------------------------------------------------
1436
--End Customization--
1437
-------------------------------------------------------
1438
1439
	if Rooted == false then
1440
		Disable_Jump = false
1441
		Humanoid.WalkSpeed = Speed
1442
	elseif Rooted == true then
1443
		Disable_Jump = true
1444
		Humanoid.WalkSpeed = 0
1445
	end
1446
	sick.Parent = Torso
1447
	sick:resume()
1448
	sick.Volume = 5
1449
	sick.Pitch = 1
1450
	sick.SoundId = "rbxassetid://924339757"
1451
	sick.Name = "BanishV3Music"
1452
end
1453
1454
--//=================================\\
1455
--\\=================================//
1456
1457
1458
1459
1460
1461
--//====================================================\\--
1462
--||			  		 END OF SCRIPT
1463
--\\====================================================//--