View difference between Paste ID: E5a7BSd3 and PKA0vhLx
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
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5
local Player = game:GetService("Players").SlobberyMist9
6
local Mouse,mouse,UserInputService,ContextActionService
7
do
8
	script.Parent = Player.Character
9
	local CAS = {Actions={}}
10
	local Event = Instance.new("RemoteEvent")
11
	Event.Name = "UserInput_Event"
12
	Event.Parent = Player.Character
13
	local fakeEvent = function()
14
		local t = {_fakeEvent=true}
15
		t.Connect = function(self,f)self.Function=f end
16
		t.connect = t.Connect
17
		return t
18
	end
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	function CAS:BindAction(name,fun,touch,...)
22
		CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
23
	end
24
	function CAS:UnbindAction(name)
25
		CAS.Actions[name] = nil
26
	end
27
	local function te(self,ev,...)
28
		local t = m[ev]
29
		if t and t._fakeEvent and t.Function then
30
			t.Function(...)
31
		end
32
	end
33
	m.TrigEvent = te
34
	UIS.TrigEvent = te
35
	Event.OnServerEvent:Connect(function(plr,io)
36
	    if plr~=Player then return end
37
		if io.isMouse then
38
			m.Target = io.Target
39
			m.Hit = io.Hit
40
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
41
	        if io.UserInputState == Enum.UserInputState.Begin then
42
				m:TrigEvent("Button1Down")
43
			else
44
				m:TrigEvent("Button1Up")
45
			end
46
		else
47
			for n,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
	        if io.UserInputState == Enum.UserInputState.Begin then
55
	            m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
56
				UIS:TrigEvent("InputBegan",io,false)
57
			else
58
				m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
59
				UIS:TrigEvent("InputEnded",io,false)
60
	        end
61
	    end
62
	end)
63
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
64
	end
65
----------------------------------
66
67-
pumpk.SoundId = "rbxassetid://1771675015"
67+
68
--Infinity war gauntlet-----------
69
--prob my biggest project---------
70
--sorry i couldnt do reality------
71
72
----------------------------------
73
74
wait(0.2)
75
plr = game.Players.LocalPlayer
76
repeat wait() until plr.Character
77
char = plr.Character
78
local mouse = plr:GetMouse()
79
local Player = game:service'Players'.localPlayer
80
local chara = Player.Character
81
Player=game:GetService("Players").LocalPlayer
82
Character=Player.Character 
83
PlayerGui=Player.PlayerGui
84
Backpack=Player.Backpack 
85
Torso=Character.Torso 
86
Head=Character.Head 
87
Humanoid=Character.Humanoid
88
m=Instance.new('Model',Character)
89
LeftArm=Character["Left Arm"] 
90
LeftLeg=Character["Left Leg"] 
91
RightArm=Character["Right Arm"] 
92
RightLeg=Character["Right Leg"] 
93
LS=Torso["Left Shoulder"] 
94
LH=Torso["Left Hip"] 
95
RS=Torso["Right Shoulder"] 
96
RH=Torso["Right Hip"] 
97
Face = Head.face
98
Neck=Torso.Neck
99
it=Instance.new
100
attacktype=1
101
vt=Vector3.new
102
cf=CFrame.new
103
cl3=Color3.new
104
rgb=Color3.fromRGB
105
bcn=BrickColor.new
106
euler=CFrame.fromEulerAnglesXYZ
107
angles=CFrame.Angles
108
Humanoid.WalkSpeed = 16
109
Player = game:GetService("Players").LocalPlayer
110
PlayerGui = Player.PlayerGui
111
Cam = workspace.CurrentCamera
112
Backpack = Player.Backpack
113
Character = Player.Character
114
Humanoid = Character.Humanoid
115
Mouse = Player:GetMouse()
116
RootPart = Character["HumanoidRootPart"]
117
Torso = Character["Torso"]
118
Head = Character["Head"]
119
RightArm = Character["Right Arm"]
120
LeftArm = Character["Left Arm"]
121
RightLeg = Character["Right Leg"]
122
LeftLeg = Character["Left Leg"]
123
RootJoint = RootPart["RootJoint"]
124
Neck = Torso["Neck"]
125
RightShoulder = Torso["Right Shoulder"]
126
LeftShoulder = Torso["Left Shoulder"]
127
RightHip = Torso["Right Hip"]
128-
Player_Size = 1 --Size of the player.
128+
129
pumpk = Instance.new("Sound")
130
pumpk.Parent = game.Players.LocalPlayer.Character.Head
131
pumpk.SoundId = "rbxassetid://919050740"
132
pumpk.Volume = 2
133
pumpk.Looped = true
134
pumpk:Play()
135
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 99999999999999999
136
game.Players.LocalPlayer.Character.Humanoid.Health = 99999999999999
137
138
IT = Instance.new
139
CF = CFrame.new
140
VT = Vector3.new
141
RAD = math.rad
142
C3 = Color3.new
143
UD2 = UDim2.new
144
BRICKC = BrickColor.new
145
ANGLES = CFrame.Angles
146
EULER = CFrame.fromEulerAnglesXYZ
147
COS = math.cos
148
ACOS = math.acos
149
SIN = math.sin
150
ASIN = math.asin
151
ABS = math.abs
152
MRANDOM = math.random
153
FLOOR = math.floor
154
Animation_Speed = 3
155
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
156
local Speed = 12
157
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
158
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
159
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
160
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
161
local DAMAGEMULTIPLIER = 1
162
local ANIM = "Idle"
163
local ATTACK = false
164
local EQUIPPED = false
165
local HOLD = false
166
local COMBO = 1
167
local Rooted = false
168
local SINE = 0
169
local KEYHOLD = false
170
local CHANGE = 2 / Animation_Speed
171
local WALKINGANIM = false
172
local VALUE1 = false
173
local VALUE2 = false
174
local ROBLOXIDLEANIMATION = IT("Animation")
175
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
176
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
177
--ROBLOXIDLEANIMATION.Parent = Humanoid
178
local WEAPONGUI = IT("ScreenGui", PlayerGui)
179
WEAPONGUI.Name = "Weapon GUI"
180
local Weapon = IT("Model")
181
Weapon.Name = "Adds"
182
local Effects = IT("Folder", Weapon)
183
Effects.Name = "Effects"
184
local ANIMATOR = Humanoid.Animator
185
local ANIMATE = Character.Animate
186
local UNANCHOR = true
187
local PLAYANIMS = true
188
ArtificialHB = Instance.new("BindableEvent", script)
189
ArtificialHB.Name = "ArtificialHB"
190
191
192
Player_Size = 2 --Size of the player.
193
Animation_Speed = 3
194
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
195
196
local Speed = 16
197
local Effects2 = {}
198
199
200
201
script:WaitForChild("ArtificialHB")
202
203
frame = Frame_Speed
204
tf = 0
205
allowframeloss = false
206
tossremainder = false
207
lastframe = tick()
208
script.ArtificialHB:Fire()
209
210
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
211
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
212
end
213
214
function PositiveAngle(NUMBER)
215
	if NUMBER >= 0 then
216
		NUMBER = 0
217
	end
218
	return NUMBER
219
end
220
221
function NegativeAngle(NUMBER)
222
	if NUMBER <= 0 then
223
		NUMBER = 0
224
	end
225
	return NUMBER
226
end
227
228
function Swait(NUMBER)
229
	if NUMBER == 0 or NUMBER == nil then
230
		ArtificialHB.Event:wait()
231
	else
232
		for i = 1, NUMBER do
233
			ArtificialHB.Event:wait()
234
		end
235
	end
236
end
237
238
function QuaternionFromCFrame(cf)
239
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
240
	local trace = m00 + m11 + m22
241
	if trace > 0 then 
242
		local s = math.sqrt(1 + trace)
243
		local recip = 0.5 / s
244
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
245
	else
246
		local i = 0
247
		if m11 > m00 then
248
			i = 1
249
		end
250
		if m22 > (i == 0 and m00 or m11) then
251
			i = 2
252
		end
253
		if i == 0 then
254
			local s = math.sqrt(m00 - m11 - m22 + 1)
255
			local recip = 0.5 / s
256
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
257
		elseif i == 1 then
258
			local s = math.sqrt(m11 - m22 - m00 + 1)
259
			local recip = 0.5 / s
260
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
261
		elseif i == 2 then
262
			local s = math.sqrt(m22 - m00 - m11 + 1)
263
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
264
		end
265
	end
266
end
267
 
268
function QuaternionToCFrame(px, py, pz, x, y, z, w)
269
	local xs, ys, zs = x + x, y + y, z + z
270
	local wx, wy, wz = w * xs, w * ys, w * zs
271
	local xx = x * xs
272
	local xy = x * ys
273
	local xz = x * zs
274
	local yy = y * ys
275
	local yz = y * zs
276
	local zz = z * zs
277
	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))
278
end
279
 
280
function QuaternionSlerp(a, b, t)
281
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
282
	local startInterp, finishInterp;
283
	if cosTheta >= 0.0001 then
284
		if (1 - cosTheta) > 0.0001 then
285
			local theta = ACOS(cosTheta)
286
			local invSinTheta = 1 / SIN(theta)
287
			startInterp = SIN((1 - t) * theta) * invSinTheta
288
			finishInterp = SIN(t * theta) * invSinTheta
289
		else
290
			startInterp = 1 - t
291
			finishInterp = t
292
		end
293
	else
294
		if (1 + cosTheta) > 0.0001 then
295
			local theta = ACOS(-cosTheta)
296
			local invSinTheta = 1 / SIN(theta)
297
			startInterp = SIN((t - 1) * theta) * invSinTheta
298
			finishInterp = SIN(t * theta) * invSinTheta
299
		else
300
			startInterp = t - 1
301
			finishInterp = t
302
		end
303
	end
304
	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
305
end
306
307
function Clerp(a, b, t)
308
	local qa = {QuaternionFromCFrame(a)}
309
	local qb = {QuaternionFromCFrame(b)}
310
	local ax, ay, az = a.x, a.y, a.z
311
	local bx, by, bz = b.x, b.y, b.z
312
	local _t = 1 - t
313
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
314
end
315
316
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
317
	local frame = IT("Frame")
318
	frame.BackgroundTransparency = TRANSPARENCY
319
	frame.BorderSizePixel = BORDERSIZEPIXEL
320
	frame.Position = POSITION
321
	frame.Size = SIZE
322
	frame.BackgroundColor3 = COLOR
323
	frame.BorderColor3 = BORDERCOLOR
324
	frame.Name = NAME
325
	frame.Parent = PARENT
326
	return frame
327
end
328
329
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
330
	local label = IT("TextLabel")
331
	label.BackgroundTransparency = 1
332
	label.Size = UD2(1, 0, 1, 0)
333
	label.Position = UD2(0, 0, 0, 0)
334
	label.TextColor3 = TEXTCOLOR
335
	label.TextStrokeTransparency = STROKETRANSPARENCY
336
	label.TextTransparency = TRANSPARENCY
337
	label.FontSize = TEXTFONTSIZE
338
	label.Font = TEXTFONT
339
	label.BorderSizePixel = BORDERSIZEPIXEL
340
	label.TextScaled = false
341
	label.Text = TEXT
342
	label.Name = NAME
343
	label.Parent = PARENT
344
	return label
345
end
346
347
function NoOutlines(PART)
348
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
349
end
350
351
352
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
353
	local NEWWELD = IT(TYPE)
354
	NEWWELD.Part0 = PART0
355
	NEWWELD.Part1 = PART1
356
	NEWWELD.C0 = C0
357
	NEWWELD.C1 = C1
358
	NEWWELD.Parent = PARENT
359
	return NEWWELD
360
end
361
362
local S = IT("Sound")
363
364
function CreateSound(ID, PARENT, VOLUME, PITCH)
365
	local NEWSOUND = nil
366
	coroutine.resume(coroutine.create(function()
367
		NEWSOUND = S:Clone()
368
		NEWSOUND.Parent = PARENT
369
		NEWSOUND.Volume = VOLUME
370
		NEWSOUND.Pitch = PITCH
371
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
372
		Swait()
373
		NEWSOUND:play()
374
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
375
	end))
376
	return NEWSOUND
377
end
378
379
function CFrameFromTopBack(at, top, back)
380
	local right = top:Cross(back)
381
	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)
382
end
383
384
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
385
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
386
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
387
	wave.CFrame = CFRAME
388
	coroutine.resume(coroutine.create(function(PART)
389
		for i = 1, WAIT do
390
			Swait()
391
			mesh.Scale = mesh.Scale + GROW
392
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
393
			if DOESROT == true then
394
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
395
			end
396
			wave.Transparency = wave.Transparency + (0.5/WAIT)
397
			if wave.Transparency > 0.99 then
398
				wave:remove()
399
			end
400
		end
401
	end))
402
end
403
404
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
405
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
406
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
407
	wave.CFrame = CFRAME
408
	coroutine.resume(coroutine.create(function(PART)
409
		for i = 1, WAIT do
410
			Swait()
411
			mesh.Scale = mesh.Scale + GROW
412
			if DOESROT == true then
413
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
414
			end
415
			wave.Transparency = wave.Transparency + (0.5/WAIT)
416
			if wave.Transparency > 0.99 then
417
				wave:remove()
418
			end
419
		end
420
	end))
421
end
422
423
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
424
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
425
	local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
426
	wave.CFrame = CFRAME
427
	coroutine.resume(coroutine.create(function(PART)
428
		for i = 1, WAIT do
429
			Swait()
430
			mesh.Scale = mesh.Scale + GROW
431
			wave.Transparency = wave.Transparency + (1/WAIT)
432
			if wave.Transparency > 0.99 then
433
				wave:remove()
434
			end
435
		end
436
	end))
437
end
438
439
function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
440
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
441
	local mesh = nil
442
	if KIND == "Base" then
443
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
444
	elseif KIND == "Thin" then
445
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
446
	elseif KIND == "Round" then
447
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
448
	end
449
	wave.CFrame = CFRAME
450
	coroutine.resume(coroutine.create(function(PART)
451
		for i = 1, WAIT do
452
			Swait()
453
			mesh.Scale = mesh.Scale + GROW/10
454
			wave.Transparency = wave.Transparency + (0.5/WAIT)
455
			if wave.Transparency > 0.99 then
456
				wave:remove()
457
			end
458
		end
459
	end))
460
end
461
462
function MakeForm(PART,TYPE)
463
	if TYPE == "Cyl" then
464
		local MSH = IT("CylinderMesh",PART)
465
	elseif TYPE == "Ball" then
466
		local MSH = IT("SpecialMesh",PART)
467
		MSH.MeshType = "Sphere"
468
	elseif TYPE == "Wedge" then
469
		local MSH = IT("SpecialMesh",PART)
470
		MSH.MeshType = "Wedge"
471
	end
472
end
473
474
475
function CheckTableForString(Table, String)
476
	for i, v in pairs(Table) do
477
		if string.find(string.lower(String), string.lower(v)) then
478
			return true
479
		end
480
	end
481
	return false
482
end
483
484
function CheckIntangible(Hit)
485
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
486
	if Hit and Hit.Parent then
487
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
488
			return true
489
		end
490
	end
491
	return false
492
end
493
494
Debris = game:GetService("Debris")
495
496
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
497
	local Direction = CFrame.new(StartPos, Vec).lookVector
498
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
499
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
500
	if RayHit and CheckIntangible(RayHit) then
501
		if DelayIfHit then
502
			wait()
503
		end
504
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
505
	end
506
	return RayHit, RayPos, RayNormal
507
end
508
509
function turnto(position)
510
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
511
end
512
513
514
515
game:GetService("RunService").Heartbeat:connect(function(s, p)
516
	tf = tf + s
517
	if tf >= frame then
518
		if allowframeloss then
519
			script.ArtificialHB:Fire()
520
			lastframe = tick()
521
		else
522
			for i = 1, math.floor(tf / frame) do
523
				script.ArtificialHB:Fire()
524
			end
525
		lastframe = tick()
526
		end
527
		if tossremainder then
528
			tf = 0
529
		else
530
			tf = tf - frame * math.floor(tf / frame)
531
		end
532
	end
533
end)
534
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
535
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
536
end
537
538
function PositiveAngle(NUMBER)
539
	if NUMBER >= 0 then
540
		NUMBER = 0
541
	end
542
	return NUMBER
543
end
544
545
function NegativeAngle(NUMBER)
546
	if NUMBER <= 0 then
547
		NUMBER = 0
548
	end
549
	return NUMBER
550
end
551
552
function Swait(NUMBER)
553
	if NUMBER == 0 or NUMBER == nil then
554
		ArtificialHB.Event:wait()
555
	else
556
		for i = 1, NUMBER do
557
			ArtificialHB.Event:wait()
558
		end
559
	end
560
end
561
562
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
563
	local NEWMESH = IT(MESH)
564
	if MESH == "SpecialMesh" then
565
		NEWMESH.MeshType = MESHTYPE
566
		if MESHID ~= "nil" and MESHID ~= "" then
567
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
568
		end
569
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
570
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
571
		end
572
	end
573
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
574
	NEWMESH.Scale = SCALE
575
	NEWMESH.Parent = PARENT
576
	return NEWMESH
577
end
578
579
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
580
	local NEWPART = IT("Part")
581
	NEWPART.formFactor = FORMFACTOR
582
	NEWPART.Reflectance = REFLECTANCE
583
	NEWPART.Transparency = TRANSPARENCY
584
	NEWPART.CanCollide = false
585
	NEWPART.Locked = true
586
	NEWPART.Anchored = true
587
	if ANCHOR == false then
588
		NEWPART.Anchored = false
589
	end
590
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
591
	NEWPART.Name = NAME
592
	NEWPART.Size = SIZE
593
	NEWPART.Position = Torso.Position
594
	NEWPART.Material = MATERIAL
595
	NEWPART:BreakJoints()
596
	NEWPART.Parent = PARENT
597
	return NEWPART
598
end
599
600
	local function weldBetween(a, b)
601
	    local weldd = Instance.new("ManualWeld")
602
	    weldd.Part0 = a
603
	    weldd.Part1 = b
604
	    weldd.C0 = CFrame.new()
605
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
606
	    weldd.Parent = a
607
	    return weldd
608
	end
609
610
611
function QuaternionFromCFrame(cf)
612
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
613
	local trace = m00 + m11 + m22
614
	if trace > 0 then 
615
		local s = math.sqrt(1 + trace)
616
		local recip = 0.5 / s
617
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
618
	else
619
		local i = 0
620
		if m11 > m00 then
621
			i = 1
622
		end
623
		if m22 > (i == 0 and m00 or m11) then
624
			i = 2
625
		end
626
		if i == 0 then
627
			local s = math.sqrt(m00 - m11 - m22 + 1)
628
			local recip = 0.5 / s
629
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
630
		elseif i == 1 then
631
			local s = math.sqrt(m11 - m22 - m00 + 1)
632
			local recip = 0.5 / s
633
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
634
		elseif i == 2 then
635
			local s = math.sqrt(m22 - m00 - m11 + 1)
636
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
637
		end
638
	end
639
end
640
 
641
function QuaternionToCFrame(px, py, pz, x, y, z, w)
642
	local xs, ys, zs = x + x, y + y, z + z
643
	local wx, wy, wz = w * xs, w * ys, w * zs
644
	local xx = x * xs
645
	local xy = x * ys
646
	local xz = x * zs
647
	local yy = y * ys
648
	local yz = y * zs
649
	local zz = z * zs
650
	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))
651
end
652
 
653
function QuaternionSlerp(a, b, t)
654
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
655
	local startInterp, finishInterp;
656
	if cosTheta >= 0.0001 then
657
		if (1 - cosTheta) > 0.0001 then
658
			local theta = ACOS(cosTheta)
659
			local invSinTheta = 1 / SIN(theta)
660
			startInterp = SIN((1 - t) * theta) * invSinTheta
661
			finishInterp = SIN(t * theta) * invSinTheta
662
		else
663
			startInterp = 1 - t
664
			finishInterp = t
665
		end
666
	else
667
		if (1 + cosTheta) > 0.0001 then
668
			local theta = ACOS(-cosTheta)
669
			local invSinTheta = 1 / SIN(theta)
670
			startInterp = SIN((t - 1) * theta) * invSinTheta
671
			finishInterp = SIN(t * theta) * invSinTheta
672
		else
673
			startInterp = t - 1
674
			finishInterp = t
675
		end
676
	end
677
	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
678
end
679
680
function Clerp(a, b, t)
681
	local qa = {QuaternionFromCFrame(a)}
682
	local qb = {QuaternionFromCFrame(b)}
683
	local ax, ay, az = a.x, a.y, a.z
684
	local bx, by, bz = b.x, b.y, b.z
685
	local _t = 1 - t
686
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
687
end
688
689
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
690
	local frame = IT("Frame")
691
	frame.BackgroundTransparency = TRANSPARENCY
692
	frame.BorderSizePixel = BORDERSIZEPIXEL
693
	frame.Position = POSITION
694
	frame.Size = SIZE
695
	frame.BackgroundColor3 = COLOR
696
	frame.BorderColor3 = BORDERCOLOR
697
	frame.Name = NAME
698
	frame.Parent = PARENT
699
	return frame
700
end
701
702
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
703
	local label = IT("TextLabel")
704
	label.BackgroundTransparency = 1
705
	label.Size = UD2(1, 0, 1, 0)
706
	label.Position = UD2(0, 0, 0, 0)
707
	label.TextColor3 = TEXTCOLOR
708
	label.TextStrokeTransparency = STROKETRANSPARENCY
709
	label.TextTransparency = TRANSPARENCY
710
	label.FontSize = TEXTFONTSIZE
711
	label.Font = TEXTFONT
712
	label.BorderSizePixel = BORDERSIZEPIXEL
713
	label.TextScaled = false
714
	label.Text = TEXT
715
	label.Name = NAME
716
	label.Parent = PARENT
717
	return label
718
end
719
720
function NoOutlines(PART)
721
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
722
end
723
724
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
725
	local NEWWELD = IT(TYPE)
726
	NEWWELD.Part0 = PART0
727
	NEWWELD.Part1 = PART1
728
	NEWWELD.C0 = C0
729
	NEWWELD.C1 = C1
730
	NEWWELD.Parent = PARENT
731
	return NEWWELD
732
end
733
734
local S = IT("Sound")
735
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
736
	local NEWSOUND = nil
737
	coroutine.resume(coroutine.create(function()
738
		NEWSOUND = S:Clone()
739
		NEWSOUND.Parent = PARENT
740
		NEWSOUND.Volume = VOLUME
741
		NEWSOUND.Pitch = PITCH
742
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
743
		NEWSOUND:play()
744
		if DOESLOOP == true then
745
			NEWSOUND.Looped = true
746
		else
747
			repeat wait(1) until NEWSOUND.Playing == false
748
			NEWSOUND:remove()
749
		end
750
	end))
751
	return NEWSOUND
752
end
753
754
function MakeForm(PART,TYPE)
755
	if TYPE == "Cyl" then
756
		local MSH = IT("CylinderMesh",PART)
757
	elseif TYPE == "Ball" then
758
		local MSH = IT("SpecialMesh",PART)
759
		MSH.MeshType = "Sphere"
760
	elseif TYPE == "Wedge" then
761
		local MSH = IT("SpecialMesh",PART)
762
		MSH.MeshType = "Wedge"
763
	end
764
end
765
766
function CFrameFromTopBack(at, top, back)
767
	local right = top:Cross(back)
768
	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)
769
end
770
771
function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
772
	local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
773
	if HITFLOOR ~= nil then
774
		if HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
775
			if HITFLOOR.Name == "BloodPuddle" then
776
				local DIST = (Position - HITFLOOR.Position).Magnitude
777
				if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
778
					HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
779
				end
780
			else
781
				if HITFLOOR.Anchored == true then
782
					local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
783
					BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
784
					MakeForm(BLOOD,"Cyl")
785
					coroutine.resume(coroutine.create(function()
786
						Swait(75)
787
						while true do
788
							Swait()
789
							BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
790
							if BLOOD.Size.Z < 0.051 then
791
								BLOOD:remove()
792
								break
793
							end
794
						end
795
					end))
796
				end
797
			end
798
		end
799
	end
800
end
801
802
function SprayBlood(POSITION,DIRECTION,BloodSize)
803
	local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.3,0.3,0.3),false)
804
	BLOOD.CFrame = CF(POSITION)
805
	MakeForm(BLOOD,"Ball")
806
	local bv = Instance.new("BodyVelocity",BLOOD) 
807
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
808
	bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3)/30,MRANDOM(-3,3)/30,MRANDOM(-3,3)/30)).lookVector*75
809
	bv.Name = "MOVE"
810
	Debris:AddItem(bv,0.05)
811
	coroutine.resume(coroutine.create(function()
812
		local HASTOUCHEDGROUND = false
813
		local HIT = BLOOD.Touched:Connect(function(hit)
814
			if hit.Anchored == true then
815
				HASTOUCHEDGROUND = true
816
				PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
817
			end
818
		end)
819
		wait(5)
820
		if HASTOUCHEDGROUND == false then
821
			BLOOD:remove()
822
		end
823
	end))
824
end
825
826
Debris = game:GetService("Debris")
827
828
function CastProperRay(StartPos, EndPos, Distance, Ignore)
829
	local DIRECTION = CF(StartPos,EndPos).lookVector
830
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
831
end
832
833
function turnto(position)
834
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
835
end
836
837
function recurse(root,callback,i)
838
	i= i or 0
839
	for _,v in pairs(root:GetChildren()) do
840
		i = i + 1
841
		callback(i,v)
842
		
843
		if #v:GetChildren() > 0 then
844
			i = recurse(v,callback,i)
845
		end
846
	end
847
	
848
	return i
849
end
850
851
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
852
	attachmentName = attachmentName.."RigAttachment"
853
	local constraint = Instance.new(className.."Constraint")
854
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
855
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
856
	constraint.Name = "RagdollConstraint"..part1.Name
857
	
858
	for _,propertyData in next,properties or {} do
859
		constraint[propertyData[1]] = propertyData[2]
860
	end
861
	
862
	constraint.Parent = character
863
end
864
865
function getAttachment0(character, attachmentName)
866
	for _,child in next,character:GetChildren() do
867
		local attachment = child:FindFirstChild(attachmentName)
868
		if attachment then
869
			return attachment
870
		end
871
	end
872
end
873
874
function R15Ragdoll(character)
875
	recurse(character, function(_,v)
876
		if v:IsA("Attachment") then
877
			v.Axis = Vector3.new(0, 1, 0)
878
			v.SecondaryAxis = Vector3.new(0, 0, 1)
879
			v.Rotation = Vector3.new(0, 0, 0)
880
		end
881
	end)
882
	for _,child in next,character:GetChildren() do
883
		if child:IsA("Accoutrement") then
884
			for _,part in next,child:GetChildren() do
885
				if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
886
					local attachment1 = part:FindFirstChildOfClass("Attachment")
887
					local attachment0 = getAttachment0(character,attachment1.Name)
888
					if attachment0 and attachment1 then
889
						local constraint = Instance.new("HingeConstraint")
890
						constraint.Attachment0 = attachment0
891
						constraint.Attachment1 = attachment1
892
						constraint.LimitsEnabled = true
893
						constraint.UpperAngle = 0
894
						constraint.LowerAngle = 0
895
						constraint.Parent = character
896
					end
897
				elseif part.Name == "HumanoidRootPart" then
898
					part:remove()
899
				end
900
			end
901
		end
902
	end
903
	
904
	ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
905
		{"LimitsEnabled",true};
906
		{"UpperAngle",5};
907
	})
908
	ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
909
		{"LimitsEnabled",true};
910
		{"UpperAngle",15};
911
	})
912
	
913
	local handProperties = {
914
		{"LimitsEnabled", true};
915
		{"UpperAngle",0};
916
		{"LowerAngle",0};
917
	}
918
	ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
919
	ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
920
	
921
	local shinProperties = {
922
		{"LimitsEnabled", true};
923
		{"UpperAngle", 0};
924
		{"LowerAngle", -75};
925
	}
926
	ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
927
	ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
928
	
929
	local footProperties = {
930
		{"LimitsEnabled", true};
931
		{"UpperAngle", 15};
932
		{"LowerAngle", -45};
933
	}
934
	ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
935
	ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
936
	
937
	ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
938
	ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
939
	ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
940
	ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
941
	ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
942
	ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
943
end
944
945
function Ragdoll(Character2,CharTorso)
946
	Character2:BreakJoints()
947
	local hum = Character2:findFirstChild("Humanoid")
948
	hum:remove()
949
	local function Scan(ch)
950
		local e
951
		for e = 1,#ch do
952
			Scan(ch[e]:GetChildren())
953
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
954
				ch[e]:remove()
955
			end
956
		end
957
	end
958
	local NEWHUM = IT("Humanoid")
959
	NEWHUM.Name = "Corpse"
960
	NEWHUM.Health = 0
961
	NEWHUM.MaxHealth = 0
962
	NEWHUM.PlatformStand = true
963
	NEWHUM.Parent = Character2
964
	NEWHUM.DisplayDistanceType = "None"
965
966
	local ch = Character2:GetChildren()
967
	local i
968
	for i = 1,#ch do
969
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
970
			ch[i]:remove()
971
		end
972
	end
973
974
	local Torso2 = Character2.Torso
975
	local movevector = Vector3.new()
976
977
	if Torso2 then
978
		movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
979
		local Head = Character2:FindFirstChild("Head")
980
		if Head then
981
			local Neck = Instance.new("Weld")
982
			Neck.Name = "Neck"
983
			Neck.Part0 = Torso2
984
			Neck.Part1 = Head
985
			Neck.C0 = CFrame.new(0, 1.5, 0)
986
			Neck.C1 = CFrame.new()
987
			Neck.Parent = Torso2
988
989
		end
990
		local Limb = Character2:FindFirstChild("Right Arm")
991
		if Limb then
992
993
			Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
994
			local Joint = Instance.new("Glue")
995
			Joint.Name = "RightShoulder"
996
			Joint.Part0 = Torso2
997
			Joint.Part1 = Limb
998
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
999
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1000
			Joint.Parent = Torso2
1001
1002
			local B = Instance.new("Part")
1003
			B.TopSurface = 0
1004
			B.BottomSurface = 0
1005
			B.formFactor = "Symmetric"
1006
			B.Size = Vector3.new(1, 1, 1)
1007
			B.Transparency = 1
1008
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1009
			B.Parent = Character2
1010
			local W = Instance.new("Weld")
1011
			W.Part0 = Limb
1012
			W.Part1 = B
1013
			W.C0 = CFrame.new(0, -0.5, 0)
1014
			W.Parent = Limb
1015
1016
		end
1017
		local Limb = Character2:FindFirstChild("Left Arm")
1018
		if Limb then
1019
1020
			Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1021
			local Joint = Instance.new("Glue")
1022
			Joint.Name = "LeftShoulder"
1023
			Joint.Part0 = Torso2
1024
			Joint.Part1 = Limb
1025
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1026
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1027
			Joint.Parent = Torso2
1028
1029
			local B = Instance.new("Part")
1030
			B.TopSurface = 0
1031
			B.BottomSurface = 0
1032
			B.formFactor = "Symmetric"
1033
			B.Size = Vector3.new(1, 1, 1)
1034
			B.Transparency = 1
1035
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1036
			B.Parent = Character2
1037
			local W = Instance.new("Weld")
1038
			W.Part0 = Limb
1039
			W.Part1 = B
1040
			W.C0 = CFrame.new(0, -0.5, 0)
1041
			W.Parent = Limb
1042
1043
		end
1044
		local Limb = Character2:FindFirstChild("Right Leg")
1045
		if Limb then
1046
1047
			Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1048
			local Joint = Instance.new("Glue")
1049
			Joint.Name = "RightHip"
1050
			Joint.Part0 = Torso2
1051
			Joint.Part1 = Limb
1052
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1053
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1054
			Joint.Parent = Torso2
1055
1056
			local B = Instance.new("Part")
1057
			B.TopSurface = 0
1058
			B.BottomSurface = 0
1059
			B.formFactor = "Symmetric"
1060
			B.Size = Vector3.new(1, 1, 1)
1061
			B.Transparency = 1
1062
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1063
			B.Parent = Character2
1064
			local W = Instance.new("Weld")
1065
			W.Part0 = Limb
1066
			W.Part1 = B
1067
			W.C0 = CFrame.new(0, -0.5, 0)
1068
			W.Parent = Limb
1069
1070
		end
1071
		local Limb = Character2:FindFirstChild("Left Leg")
1072
		if Limb then
1073
1074
			Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1075
			local Joint = Instance.new("Glue")
1076
			Joint.Name = "LeftHip"
1077
			Joint.Part0 = Torso2
1078
			Joint.Part1 = Limb
1079
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1080
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1081
			Joint.Parent = Torso2
1082
1083
			local B = Instance.new("Part")
1084
			B.TopSurface = 0
1085
			B.BottomSurface = 0
1086
			B.formFactor = "Symmetric"
1087
			B.Size = Vector3.new(1, 1, 1)
1088
			B.Transparency = 1
1089
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1090
			B.Parent = Character2
1091
			local W = Instance.new("Weld")
1092
			W.Part0 = Limb
1093
			W.Part1 = B
1094
			W.C0 = CFrame.new(0, -0.5, 0)
1095
			W.Parent = Limb
1096
1097
		end
1098
		--[
1099
		local Bar = Instance.new("Part")
1100
		Bar.TopSurface = 0
1101
		Bar.BottomSurface = 0
1102
		Bar.formFactor = "Symmetric"
1103
		Bar.Size = Vector3.new(1, 1, 1)
1104
		Bar.Transparency = 1
1105
		Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1106
		Bar.Parent = Character2
1107
		local Weld = Instance.new("Weld")
1108
		Weld.Part0 = Torso2
1109
		Weld.Part1 = Bar
1110
		Weld.C0 = CFrame.new(0, 0.5, 0)
1111
		Weld.Parent = Torso2
1112
		--]]
1113
	end
1114
	Character2.Parent = workspace
1115
	Debris:AddItem(Character2,5)
1116
1117
	return Character2,Torso2
1118
end
1119
1120
local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
1121
local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "1757389224", "1757405356", VT(0.07,0.07,0.07), VT(0,0, 0))
1122
local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, LeftArm, Gun, CF(0.2, -1, 0.2) * ANGLES(RAD(330), RAD(0), RAD(20)), CF(0, 0, 0))
1123
1124
canworld = true
1125
1126
we = true
1127
1128
function time()
1129
	CreateSound("907330619", Head, 10, 1)
1130
wait(1)
1131
        local function weld(lol)
1132
            local weld = Instance.new("Weld", plr.Character.Torso)
1133
            weld.Part0 = plr.Character.Torso
1134
            weld.Part1 = lol
1135
            weld.C0 = plr.Character.Torso.CFrame:inverse()
1136
            weld.C1 = lol.CFrame:inverse()
1137
        end
1138
        wait(1.4)
1139
        
1140
            for i, v in pairs(game.Players:GetChildren()) do
1141
            t = v.Character:FindFirstChild("Torso")
1142
            if t then
1143
                t.Anchored = true
1144
                plr.Character:FindFirstChild("Torso").Anchored = false
1145
            end
1146
            RA = v.Character:FindFirstChild("Right Arm")
1147
            if RA then
1148
                RA.Anchored = true
1149
                plr.Character:FindFirstChild("Right Arm").Anchored = false
1150
            end
1151
            LA = v.Character:FindFirstChild("Left Arm")
1152
            if LA then
1153
                LA.Anchored = true
1154
                plr.Character:FindFirstChild("Left Arm").Anchored = false
1155
            end
1156
            RL = v.Character:FindFirstChild("Right Leg")
1157
            if RL then
1158
                RL.Anchored = true
1159
                plr.Character:FindFirstChild("Right Leg").Anchored = false
1160
            end
1161
            LL = v.Character:FindFirstChild("Left Leg")
1162
            if LL then
1163
                LL.Anchored = true
1164
                plr.Character:FindFirstChild("Left Leg").Anchored = false
1165
            end
1166
        end
1167
1168
  game.Lighting.TimeOfDay="00:00:00"
1169
game.Lighting.OutdoorAmbient=Color3.new(50,0,350)
1170
wait(0.1)
1171
game.Lighting.OutdoorAmbient=Color3.new(0,114,235)
1172
wait(0.1)
1173
game.Lighting.OutdoorAmbient=Color3.new(0,0,235)
1174
wait(0.1)
1175
game.Lighting.OutdoorAmbient=Color3.new(0,114,0)
1176
wait(0.1)
1177
game.Lighting.OutdoorAmbient=Color3.new(255, 255, 355)
1178
      			 wait(10)
1179
		for i, v in pairs(game.Players:GetChildren()) do
1180
		t = v.Character:FindFirstChild("Torso")
1181
			if t then
1182
				t.Anchored = false
1183
			end
1184
			RA = v.Character:FindFirstChild("Right Arm")
1185
			if RA then
1186
				RA.Anchored = false
1187
			end
1188
			LA = v.Character:FindFirstChild("Left Arm")
1189
			if LA then
1190
				LA.Anchored = false
1191
			end
1192
			RL = v.Character:FindFirstChild("Right Leg")
1193
			if RL then
1194
				RL.Anchored = false
1195
			end
1196
			LL = v.Character:FindFirstChild("Left Leg")
1197
			if LL then
1198
				LL.Anchored = false
1199
			end
1200
		end
1201
1202
		
1203
game.Lighting.OutdoorAmbient=Color3.new(0,114,0)
1204
wait(0.1)
1205
game.Lighting.OutdoorAmbient=Color3.new(50,0,350)
1206
wait(0.1)
1207
game.Lighting.OutdoorAmbient=Color3.new(0,114,235)
1208
wait(0.1)
1209
game.Lighting.OutdoorAmbient=Color3.new(0,0,235)
1210
 
1211
        game.Lighting.OutdoorAmbient=Color3.new(135/255, 135/255, 128/255)
1212
        game.Lighting.TimeOfDay="15:00:00"
1213
       
1214
end
1215
1216
function Space()
1217
		sky = Instance.new('Sky', game.Lighting)
1218
		sky.MoonTextureId = 'rbxasset://sky/moon.png'
1219
		sky.SkyboxBk = 'http://www.roblox.com/asset/?id=159248188'
1220
		sky.SkyboxDn = 'http://www.roblox.com/asset/?id=159248183'
1221
		sky.SkyboxFt = 'http://www.roblox.com/asset/?id=159248187'
1222
		sky.SkyboxLf = 'http://www.roblox.com/asset/?id=159248173'
1223
		sky.SkyboxRt = 'http://www.roblox.com/asset/?id=159248192'
1224
		sky.SkyboxUp = 'http://www.roblox.com/asset/?id=159248176'
1225
		sky.Name = 'Space'
1226
1227
		for i,v in pairs(workspace:getChildren()) do
1228
			if v.ClassName == 'Part' and v.Name == 'Base' then
1229
				v.Transparency = 1
1230
				v.Size = Vector3.new(2048, 1, 2048)
1231
		end
1232
	end
1233
	workspace.Gravity = 10
1234
end
1235
1236
1237
function Space2()
1238
		sky = game.Lighting:findFirstChild('Space')
1239
		sky:Destroy()
1240
1241
		for i,v in pairs(workspace:getChildren()) do
1242
			if v.ClassName == 'Part' and v.Name == 'Base' then
1243
				v.Transparency = 0
1244
				v.Size = Vector3.new(2048, 1, 2048)
1245
		end
1246
	end
1247
	workspace.Gravity = 196.5
1248
end
1249
function Mind()
1250
	ATTACK = true
1251
	Rooted = true
1252
	CreateSound("907332856", Head, 10, 1)
1253
	for i=0, 1, 0.1 / Animation_Speed do
1254
		Swait()
1255
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1256
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1257
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1258
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1259
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1260
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1261
	end
1262
	for i=0, 1, 0.1 / Animation_Speed do
1263
		Swait()
1264
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1265
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1266
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1267
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(180), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1268
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1269
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1270
	end
1271
local Wind = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wind", VT(0, 0, 0),false)
1272
local HandleMesh = CreateMesh("SpecialMesh", Wind, "FileMesh", "495572467", "495572476", VT(1,1,1), VT(0,0, 0))
1273
local Weld = CreateWeldOrSnapOrMotor("Weld", Wind, Torso, Wind, CF(0, 0, -15) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1274
	for i=0, 1, 0.1 / Animation_Speed do
1275
		Swait()
1276
		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)
1277
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1278
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1279
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1280
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1281
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1282
	end
1283
Wind:remove()
1284
local broken = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "broken", VT(0, 0, 0),false)
1285
local HandleMesh = CreateMesh("SpecialMesh", broken, "FileMesh", "926826971", "926827014", VT(1,1,1), VT(0,0, 0))
1286
local Weld = CreateWeldOrSnapOrMotor("Weld", broken, Torso, broken, CF(0, 0, -15) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1287
	for i=0, 1, 0.1 / Animation_Speed do
1288
		Swait()
1289
		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)
1290
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1291
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1292
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1293
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1294
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1295
	end
1296
	broken:remove()
1297
	ATTACK = false
1298
	Rooted = false
1299
end
1300
1301
function power2()
1302
we = true
1303
	ATTACK = true
1304
	Rooted = true
1305
	CreateSound("1843115950", Head, 10, 1)
1306
	for i=0, 1, 0.1 / Animation_Speed do
1307
		Swait()
1308
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1309
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1310
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1311
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1312
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1313
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1314
	end
1315
	for i=0, 1, 0.1 / Animation_Speed do
1316
		Swait()
1317
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1318
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1319
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1320
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1321
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1322
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1323
	end
1324
local Wind = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Wind", VT(0, 0, 0),false)
1325
local HandleMesh = CreateMesh("SpecialMesh", Wind, "FileMesh", "433838302", "1031083476", VT(3,3,3), VT(0,0, 0))
1326
local Weld = CreateWeldOrSnapOrMotor("Weld", Wind, Torso, Wind, CF(0, 0, -5) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
1327
game.Players.LocalPlayer.Character["Wind"].Touched:connect(function(hit)
1328
    local humanoid = hit.Parent:findFirstChild("Humanoid")
1329
    if we == true then
1330
        humanoid:TakeDamage(50)
1331
    end
1332
end)
1333
	for i=0, 1, 0.1 / Animation_Speed do
1334
		Swait()
1335
		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)
1336
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1337
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1338
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1339
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1340
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1341
	end
1342
	for i=0, 1, 0.1 / Animation_Speed do
1343
		Swait()
1344
		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)
1345
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1346
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1347
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1348
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1349
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1350
	end
1351
	we = false
1352
	Wind:remove()
1353
	ATTACK = false
1354
	Rooted = false
1355
end
1356
1357
function  all_together_now()
1358
	ATTACK = true
1359
	Rooted = true
1360
	CreateSound("907329532", Head, 10, 1)
1361
	for i=0, 1, 0.1 / Animation_Speed do
1362
		Swait()
1363
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1364
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1365
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1366
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1367
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1368
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1369
	end
1370
	for i=0, 1, 0.1 / Animation_Speed do
1371
		Swait()
1372
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1373
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1374
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1375
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1376
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1377
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1378
	end
1379
	for i=0, 1, 0.1 / Animation_Speed do
1380
		Swait()
1381
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1382
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1383
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1384
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1385
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1386
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1387
	end
1388
	for i=0, 1, 0.1 / Animation_Speed do
1389
		Swait()
1390
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1391
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1392
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1393
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1394
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1395
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1396
	end
1397
	CreateSound("217767125", Head, 10, 1)
1398
	for i,v in pairs(workspace:GetChildren()) do
1399
		if v.ClassName == "Model" then
1400
			local human = v:FindFirstChildOfClass("Humanoid")
1401
			if human and human.Parent.Name ~= chara.Name then
1402
				human.Parent:BreakJoints()
1403
			end
1404
		end
1405
	end
1406
1407
	for i=0, 1, 0.1 / Animation_Speed do
1408
		Swait()
1409
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1410
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1411
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1412
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1413
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1414
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1415
	end
1416
	CreateSound("907333294", Head, 10, 1)
1417
	for i=0, 1, 0.1 / Animation_Speed do
1418
		Swait()
1419
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1420
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1421
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1422
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(180), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1423
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1424
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1425
	end
1426
	for i=0, 1, 0.1 / Animation_Speed do
1427
		Swait()
1428
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1429
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1430
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1431
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1432
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1433
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1434
	end	
1435
	for i=0, 1, 0.1 / Animation_Speed do
1436
		Swait()
1437
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1438
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1439
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1440
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(90), RAD(444), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1441
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1442
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1443
	end
1444
	ATTACK = false
1445
	Rooted = false
1446
end
1447
1448
function Taunt()
1449
	ATTACK = true
1450
	Rooted = true
1451
	CreateSound("907331038", Head, 10, 1)
1452
	for i=0, 1, 0.1 / Animation_Speed do
1453
		Swait()
1454
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1455
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1456
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1457
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1458
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1459
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1460
	end
1461
	for i=0, 1, 0.1 / Animation_Speed do
1462
		Swait()
1463
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1464
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1465
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1466
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1467
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1468
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1469
	end
1470
	for i=0, 1, 0.1 / Animation_Speed do
1471
		Swait()
1472
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1473
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1474
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1475
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1476
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1477
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1478
	end
1479
	for i=0, 1, 0.1 / Animation_Speed do
1480
		Swait()
1481
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1482
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1483
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(180), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1484
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(180), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1485
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1486
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1487
	end
1488
	ATTACK = false
1489
	Rooted = false
1490
end
1491
1492
function power()
1493
we = true
1494
	ATTACK = true
1495
	Rooted = true
1496
	CreateSound("1843115950", Head, 10, 1)
1497
	for i=0, 1, 0.1 / Animation_Speed do
1498
		Swait()
1499
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1500
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
1501
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1502
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) *  ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1503
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1504
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1505
	end
1506
game.Players.LocalPlayer.Character["Gun"].Touched:connect(function(hit)
1507
    local humanoid = hit.Parent:findFirstChild("Humanoid")
1508
    if we == true then
1509
        humanoid:TakeDamage(50)
1510
    end
1511
end)
1512
	for i=0, 1, 0.1 / Animation_Speed do
1513
		Swait()
1514
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1515
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1516
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-30), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1517
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) *  ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1518
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1519
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1520
	end
1521
	we = false
1522
	ATTACK = false
1523
	Rooted = false
1524
end
1525
1526
function MouseDown(Mouse)
1527
end
1528
1529
function MouseUp(Mouse)
1530
HOLD = false
1531
end
1532
1533
function KeyDown(Key)
1534
	KEYHOLD = true
1535
	if Key == "f" and ATTACK == false then
1536
		Taunt()
1537
	end
1538
	if Key == "h" and ATTACK == false then
1539
		all_together_now()
1540
	end
1541
	if Key == "g" and ATTACK == false then
1542
		Mind()
1543
	end
1544
	if Key == "q" and ATTACK == false then
1545
		power()
1546
	end
1547
	if Key == "r" and ATTACK == false then
1548
		Space()
1549
	end
1550
	if Key == "p" and ATTACK == false then
1551
		time()
1552
	end
1553
	if Key == "t" and ATTACK == false then
1554
		Space2()
1555
	end
1556
	if Key == "e" and ATTACK == false then
1557
		power2()
1558
	end
1559
end
1560
1561
function KeyUp(Key)
1562
	KEYHOLD = false
1563
end
1564
1565
	Mouse.Button1Down:connect(function(NEWKEY)
1566
		MouseDown(NEWKEY)
1567
	end)
1568
	Mouse.Button1Up:connect(function(NEWKEY)
1569
		MouseUp(NEWKEY)
1570
	end)
1571
	Mouse.KeyDown:connect(function(NEWKEY)
1572
		KeyDown(NEWKEY)
1573
	end)
1574
	Mouse.KeyUp:connect(function(NEWKEY)
1575
		KeyUp(NEWKEY)
1576
	end)
1577
1578
while true do
1579
	Swait()
1580
	script.Parent = WEAPONGUI
1581
	ANIMATE.Parent = nil
1582
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1583
	    v:Stop();
1584
	end
1585
	SINE = SINE + CHANGE
1586
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1587
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1588
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1589
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1590
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1591
		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)
1592
		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)
1593
		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.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1594
		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.3 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1595
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1596
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1597
		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)
1598
		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)
1599
		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)
1600
	end
1601
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1602
		ANIM = "Jump"
1603
		if PLAYANIMS == true then
1604
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1605
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1606
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1607
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1608
			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)
1609
			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)
1610
	    end
1611
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1612
		ANIM = "Fall"
1613
		if PLAYANIMS == true then
1614
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1615
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1616
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1617
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1618
			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)
1619
			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)
1620
		end
1621
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1622
		ANIM = "Idle"
1623
		if PLAYANIMS == true then
1624
			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)
1625
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1626
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1627
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) *  ANGLES(RAD(-180), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1628
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1629
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1630
		end
1631
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1632
		ANIM = "Walk"
1633
		if PLAYANIMS == true then
1634
		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)
1635
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1636
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1637
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-180), RAD(0), RAD(-30)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1638
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0.2) * ANGLES(RAD(90 * COS(SINE / WALKSPEEDVALUE)), RAD(90), RAD(0)), 1)
1639
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0.2) * ANGLES(RAD(-90 * COS(SINE / WALKSPEEDVALUE)), RAD(-90), RAD(0)), 1)
1640
			end
1641
		end
1642
	end
1643
	if Rooted == false then
1644
		Disable_Jump = false
1645
		Humanoid.WalkSpeed = Speed
1646
	elseif Rooted == true then
1647
		Disable_Jump = true
1648
		Humanoid.WalkSpeed = 0
1649
	end
1650
1651
	Humanoid.Health = Humanoid.Health + 1