View difference between Paste ID: Z4gMwYkX and 6TFtQwry
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,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
	print("FE Compatibility code by Mokiros")
6
	local rp = RealPlayer
7
	script.Parent = rp.Character
8
	
9
	--RemoteEvent for communicating
10
	local Event = Instance.new("RemoteEvent")
11
	Event.Name = "UserInput_Event"
12
13
	--Fake event to make stuff like Mouse.KeyDown work
14
	local function fakeEvent()
15
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
		t.connect = t.Connect
17
		return t
18
	end
19
20
	--Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
	end}
26
	--Merged 2 functions into one by checking amount of arguments
27
	CAS.UnbindAction = CAS.BindAction
28
29
	--This function will trigger the events that have been :Connect()'ed
30
	local function te(self,ev,...)
31
		local t = m[ev]
32
		if t and t._fakeEvent then
33
			for _,f in pairs(t.Functions) do
34
				f(...)
35
			end
36
		end
37
	end
38
	m.TrigEvent = te
39
	UIS.TrigEvent = te
40
41
	Event.OnServerEvent:Connect(function(plr,io)
42
	    if plr~=rp then return end
43
		m.Target = io.Target
44
		m.Hit = io.Hit
45
		if not io.isMouse then
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local Mouse = Player:GetMouse()
66
	local UIS = game:GetService("UserInputService")
67
	local input = function(io,a)
68
		if a then return end
69
		--Since InputObject is a client-side instance, we create and pass table instead
70
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
	end
72
	UIS.InputBegan:Connect(input)
73
	UIS.InputEnded:Connect(input)
74
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
85
	----Sandboxed game object that allows the usage of client-side methods and services
86
	--Real game object
87
	local _rg = game
88
89
	--Metatable for fake service
90
	local fsmt = {
91
		__index = function(self,k)
92
			local s = rawget(self,"_RealService")
93
			if s then return s[k] end
94
		end,
95
		__newindex = function(self,k,v)
96
			local s = rawget(self,"_RealService")
97
			if s then s[k]=v end
98
		end,
99
		__call = function(self,...)
100
			local s = rawget(self,"_RealService")
101
			if s then return s(...) end
102
		end
103
	}
104
	local function FakeService(t,RealService)
105
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
		return setmetatable(t,fsmt)
107
	end
108
109
	--Fake game object
110
	local g = {
111
		GetService = function(self,s)
112
			return self[s]
113
		end,
114
		Players = FakeService({
115
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
		},"Players"),
117
		UserInputService = FakeService(UIS,"UserInputService"),
118
		ContextActionService = FakeService(CAS,"ContextActionService"),
119
	}
120
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
	g.service = g.GetService
122
	
123
	g.RunService = FakeService({
124
		RenderStepped = _rg:GetService("RunService").Heartbeat,
125
		BindToRenderStep = function(self,name,_,fun)
126
127
		end,
128
		UnbindFromRenderStep = function(self,name)
129
			self._btrs[name]:Disconnect()
130
		end,
131
	},"RunService")
132
133
	setmetatable(g,{
134
		__index=function(self,s)
135
			return _rg:GetService(s) or typeof(_rg[s])=="function"
136
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
		end,
138
		__newindex = fsmt.__newindex,
139
		__call = fsmt.__call
140
	})
141
	--Changing owner to fake player object to support owner:GetMouse()
142
	game,owner = g,g.Players.LocalPlayer
143
end
144
145
--//=======================================================\\--
146
--|CREATED BY SHACKLUSTER AND EDITED BY SABA1520/KISSLARGE
147
--\\=======================================================//--
148
149
150
151
wait(0.2)
152
153
154
155
Player = owner
156
PlayerGui = Player.PlayerGui
157
Cam = workspace.CurrentCamera
158
Backpack = Player.Backpack
159
Character = Player.Character
160
Humanoid = Character.Humanoid
161
Mouse = Player:GetMouse()
162
RootPart = Character["HumanoidRootPart"]
163
Torso = Character["Torso"]
164
Head = Character["Head"]
165
RightArm = Character["Right Arm"]
166
LeftArm = Character["Left Arm"]
167
RightLeg = Character["Right Leg"]
168
LeftLeg = Character["Left Leg"]
169
RootJoint = RootPart["RootJoint"]
170
Neck = Torso["Neck"]
171
RightShoulder = Torso["Right Shoulder"]
172
LeftShoulder = Torso["Left Shoulder"]
173
RightHip = Torso["Right Hip"]
174
LeftHip = Torso["Left Hip"]
175
local sick = Instance.new("Sound",Character)
176-
sick.SoundId = "rbxassetid://673916774"
176+
sick.SoundId = "rbxassetid://541377118"
177
sick.Looped = true
178
sick.Pitch = 0.9
179
sick.Volume = 5
180
sick:Play()
181
Humanoid.DisplayDistanceType = "None"
182
183
local change = 1
184
185
print('Local User is '..Player.Name)
186
local char = Player.Character
187
local hum = char.Humanoid
188
local hed = char.Head
189
local root = char.HumanoidRootPart
190
local rootj = root.RootJoint
191
local tors = char.Torso
192
local ra = char["Right Arm"]
193
local la = char["Left Arm"]
194
local rl = char["Right Leg"]
195
local ll = char["Left Leg"]
196
local neck = tors["Neck"]
197
local mouse = Player:GetMouse()
198
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
199
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
200
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
201
local maincolor = BrickColor.new("Institutional white")
202
local sine = 0
203
204
205
local naeeym2 = Instance.new("BillboardGui",Character)
206
naeeym2.AlwaysOnTop = true
207
naeeym2.Size = UDim2.new(5,35,2,35)
208
naeeym2.StudsOffset = Vector3.new(0,1,0)
209
naeeym2.Adornee = Character.Head
210
naeeym2.Name = "Name"
211
local tecks2 = Instance.new("TextLabel",naeeym2)
212
tecks2.BackgroundTransparency = 1
213
tecks2.TextScaled = true
214
tecks2.BorderSizePixel = 0
215
tecks2.Text = "Madness Guest"
216
tecks2.Font = "Antique"
217
tecks2.TextSize = 30
218
tecks2.TextStrokeTransparency = 0.5
219
tecks2.TextColor3 = Color3.new(0,0,0)
220
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
221
tecks2.Size = UDim2.new(1,0,0.5,0)
222
tecks2.Parent = naeeym2
223
224
local Hair = Instance.new("Part", char)
225
Hair.Name = "Hair"
226
Hair.CanCollide = false
227
Hair.BrickColor = BrickColor.new("Institutional white")
228
Hair.Transparency = 0
229
Hair.Material = "Plastic"
230
Hair.Size = Vector3.new(1, 1, 2)
231
Hair.TopSurface = Enum.SurfaceType.Smooth
232
Hair.BottomSurface = Enum.SurfaceType.Smooth
233
 
234
local Weld = Instance.new("Weld", Hair)
235
Weld.Part0 = hed
236
Weld.Part1 = Hair
237
Weld.C1 = CFrame.new(0, -.5, 0)
238
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
239
 
240
local M2 = Instance.new("SpecialMesh")
241
M2.Parent = Hair
242
M2.MeshId = "http://www.roblox.com/asset/?id=0"
243
M2.TextureId = "http://www.roblox.com/asset/?id=0"
244
M2.Scale = Vector3.new(1, 1, 1)
245
246
IT = Instance.new
247
CF = CFrame.new
248
VT = Vector3.new
249
RAD = math.rad
250
C3 = Color3.new
251
UD2 = UDim2.new
252
BRICKC = BrickColor.new
253
ANGLES = CFrame.Angles
254
EULER = CFrame.fromEulerAnglesXYZ
255
COS = math.cos
256
ACOS = math.acos
257
SIN = math.sin
258
ASIN = math.asin
259
ABS = math.abs
260
MRANDOM = math.random
261
FLOOR = math.floor
262
263
local sound = IT("Sound")
264
265
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
266
	local NEWMESH = IT(MESH)
267
	if MESH == "SpecialMesh" then
268
		NEWMESH.MeshType = MESHTYPE
269
		if MESHID ~= "nil" and MESHID ~= "" then
270
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
271
		end
272
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
273
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
274
		end
275
	end
276
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
277
	NEWMESH.Scale = SCALE
278
	NEWMESH.Parent = PARENT
279
	return NEWMESH
280
end
281
282
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
283
	local NEWPART = IT("Part")
284
	NEWPART.formFactor = FORMFACTOR
285
	NEWPART.Reflectance = REFLECTANCE
286
	NEWPART.Transparency = TRANSPARENCY
287
	NEWPART.CanCollide = false
288
	NEWPART.Locked = true
289
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
290
	NEWPART.Name = NAME
291
	NEWPART.Size = SIZE
292
	NEWPART.Position = Torso.Position
293
	NEWPART.Material = MATERIAL
294
	NEWPART:BreakJoints()
295
	NEWPART.Parent = PARENT
296
	return NEWPART
297
end
298
299
local EyeSizes={
300
	NumberSequenceKeypoint.new(0,1,0),
301
	NumberSequenceKeypoint.new(1,0.2,0)
302
}
303
local EyeTrans={
304
	NumberSequenceKeypoint.new(0,0.8,0),
305
	NumberSequenceKeypoint.new(1,1,0)
306
}
307
local PE=Instance.new("ParticleEmitter")
308
PE.LightEmission=0
309
PE.Size=NumberSequence.new(EyeSizes)
310
PE.Transparency=NumberSequence.new(EyeTrans)
311
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
312
PE.Rotation=NumberRange.new(0,360)
313
PE.Rate=15
314
PE.Acceleration = Vector3.new(0,75,0)
315
PE.Drag = 5
316
PE.Enabled = false
317
PE.Speed = NumberRange.new(0,0,0)
318
PE.Texture="http://www.roblox.com/asset/?id=0"
319
PE.ZOffset = 0
320
PE.Name = "Inferno"
321
322
function particles(art)
323
local particle = PE:Clone()
324
particle.Parent = art
325
particle.Enabled = true
326
end
327
328
--//=================================\\
329
--||		  CUSTOMIZATION
330
--\\=================================//
331
332
Class_Name = "Madness Guest"
333
Weapon_Name = "Add-ons"
334
335
Custom_Colors = {
336
	Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
337
	Custom_Color_2 = BRICKC("Really black"); --2nd color for the weapon.
338
339
	Custom_Color_3 = BRICKC("Really black"); --Color for the abilities.
340
	Custom_Color_4 = BRICKC("Really black"); --Color for the secondary bar.
341
	Custom_Color_5 = BRICKC("Really black"); --Color for the mana bar.
342
	Custom_Color_6 = BRICKC("Really black"); --Color for the health bar.
343
	Custom_Color_7 = BRICKC("Really black"); --Color for the stun bar.
344
345
	Custom_Color_8 = BRICKC("Really black"); --Background for the mana bar.
346
	Custom_Color_9 = BRICKC("Really black"); --Background for the secondary mana bar.
347
	Custom_Color_10 = BRICKC("Really black"); --Background for the stun bar.
348
	Custom_Color_11 = BRICKC("Really black"); --Background for the health bar.
349
	Custom_Color_12 = BRICKC("Really black"); --Background for the abilities.
350
}
351
352
353
Player_Size = 1 --Size of the player.
354-
Animation_Speed = 3
354+
Animation_Speed = 5
355
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
356
357
local Speed = 16
358
local Effects2 = {}
359
360
--//=================================\\
361
--|| 	  END OF CUSTOMIZATION
362
--\\=================================//
363
364
	local function weldBetween(a, b)
365
	    local weldd = Instance.new("ManualWeld")
366
	    weldd.Part0 = a
367
	    weldd.Part1 = b
368
	    weldd.C0 = CFrame.new()
369
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
370
	    weldd.Parent = a
371
	    return weldd
372
	end
373
374
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
375
local acs = Instance.new("Part")
376
acs.CanCollide = false
377
acs.Anchored = false
378
acs.Size = Vector3.new(0,0,0)
379
acs.CFrame = attachmentpart.CFrame
380
acs.Parent = Character
381
acs.BrickColor = color
382
    local meshs = Instance.new("SpecialMesh")
383
    meshs.MeshId = mesh
384
    meshs.TextureId = texture
385
    meshs.Parent = acs
386
    meshs.Scale = scale
387
    meshs.Offset = offset
388
weldBetween(attachmentpart,acs)
389
end
390
391
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
392
if TYPE == "Gem" then
393
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
394
	acs.Anchored = false
395
    acs.CanCollide = false
396
	acs.CFrame = PART.CFrame
397
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
398
weldBetween(PART,acs)
399
elseif TYPE == "Skull" then
400
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
401
	acs.Anchored = false
402
    acs.CanCollide = false
403
	acs.CFrame = PART.CFrame
404
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
405
weldBetween(PART,acs)
406
elseif TYPE == "Eye" then
407
	local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
408
	acs.Anchored = false
409
    acs.CanCollide = false
410
	acs.CFrame = PART.CFrame
411
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
412
weldBetween(PART,acs)
413
end
414
end
415
416
--//=================================\\
417
--|| 	      USEFUL VALUES
418
--\\=================================//
419
420
for i,v in pairs(char:children()) do
421
if v:IsA("Shirt") and v:IsA("Pants") then
422
v:Remove()
423
end
424
end
425
shirt = Instance.new("Shirt", char)
426
shirt.Name = "Shirt"
427
pants = Instance.new("Pants", char)
428
pants.Name = "Pants"
429
char.Shirt.ShirtTemplate = "rbxassetid://8854587"
430
char.Pants.PantsTemplate = "rbxassetid://263287509"
431
432
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
433
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
434
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
435
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
436
local CO1 = 0
437
local CO2 = 0
438
local CO3 = 0
439
local CO4 = 0
440
local CHANGEDEFENSE = 0
441
local CHANGEDAMAGE = 0
442
local CHANGEMOVEMENT = 0
443
local ANIM = "Idle"
444
local ATTACK = false
445
local EQUIPPED = false
446
local HOLD = false
447
local COMBO = 1
448
local LASTPOINT = nil
449
local BLCF = nil
450
local SCFR = nil
451
local STAGGERHITANIM = false
452
local STAGGERANIM = false
453
local STUNANIM = false
454
local CRITCHANCENUMBER = 0
455
local IDLENUMBER = 0
456
local DONUMBER = 0
457
local HANDIDLE = false
458
local SINE = 0
459
local CHANGE = 2 / Animation_Speed
460
local WALKINGANIM = false
461
local WALK = 0
462
local DISABLEJUMPING = false
463
local HASBEENBLOCKED = false
464
local STUNDELAYNUMBER = 0
465
local MANADELAYNUMBER = 0
466
local OTHERWORLD = false
467
local SECONDARYMANADELAYNUMBER = 0
468
local ROBLOXIDLEANIMATION = IT("Animation")
469
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
470
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
471
--ROBLOXIDLEANIMATION.Parent = Humanoid
472
local WEAPONGUI = IT("ScreenGui", nil)
473
WEAPONGUI.Name = "Weapon GUI"
474
local WEAPONTOOL = IT("HopperBin", nil)
475
WEAPONTOOL.Name = Weapon_Name
476
local Weapon = IT("Model")
477
Weapon.Name = Weapon_Name
478
local Effects = IT("Folder", Weapon)
479
Effects.Name = "Effects"
480
local ANIMATOR = Humanoid.Animator
481
local ANIMATE = Character.Animate
482
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
483
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
484
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
485
local HITBLOCKSOUNDS = {"199148933", "199148947"}
486
local UNANCHOR = true
487
488
--//=================================\\
489
--\\=================================//
490
491
492
493
494
--//=================================\\
495
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
496
--\\=================================//
497
498
ArtificialHB = Instance.new("BindableEvent", script)
499
ArtificialHB.Name = "ArtificialHB"
500
501
script:WaitForChild("ArtificialHB")
502
503
frame = Frame_Speed
504
tf = 0
505
allowframeloss = false
506
tossremainder = false
507
lastframe = tick()
508
script.ArtificialHB:Fire()
509
510
game:GetService("RunService").Heartbeat:connect(function(s, p)
511
	tf = tf + s
512
	if tf >= frame then
513
		if allowframeloss then
514
			script.ArtificialHB:Fire()
515
			lastframe = tick()
516
		else
517
			for i = 1, math.floor(tf / frame) do
518
				script.ArtificialHB:Fire()
519
			end
520
		lastframe = tick()
521
		end
522
		if tossremainder then
523
			tf = 0
524
		else
525
			tf = tf - frame * math.floor(tf / frame)
526
		end
527
	end
528
end)
529
530
--//=================================\\
531
--\\=================================//
532
533
534
guigroup=Instance.new("BillboardGui")
535
guigroup.Parent=game.Players.LocalPlayer.Character.Head
536
guigroup.Adornee=game.Players.LocalPlayer.Character.Head
537
guigroup.Size = UDim2.new(1,0,1,0)
538
guigroup.StudsOffset=Vector3.new(0.5, 6, 0)
539
oooo1 = Instance.new("TextLabel")
540
Kills = Instance.new("IntValue")
541
Kills.Parent = game.Players.LocalPlayer.Character
542
Kills.Name = ""
543
oooo1.Text = ""
544
if
545
    game.Players.LocalPlayer.Name == ""
546
    then
547
    oooo1.Text = ""
548
end
549
oooo1.Size = UDim2.new(0,200,0,200)
550
oooo1.BackgroundColor3 = Color3.new(1, 1, 1)
551
oooo1.BackgroundTransparency = 1
552
oooo1.Parent = guigroup
553
oooo1.AnchorPoint = Vector2.new(0.5, 0.9)
554
oooo1.Size = UDim2.new(3.5,0,3.5,0)
555
oooo1.TextScaled = true
556
ko1 = Instance.new("TextLabel")
557
ko1.Name = ""
558
ko1.Parent = guigroup
559
ko1.BackgroundColor3 = Color3.new(1, 1, 1)
560
ko1.BackgroundTransparency = 1
561
ko1.TextColor3 = Color3.new(1, 0, 0)
562
ko1.TextScaled = false
563
ko1.TextWrapped = false
564
ko1.AnchorPoint = Vector2.new(0.5, 0.3)
565
game.Players.LocalPlayer.Character.Humanoid.NameOcclusion = "NoOcclusion"
566
game.Players.LocalPlayer.Character.Humanoid.HealthDisplayType = "AlwaysOff"
567
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
568
game.Players.LocalPlayer.Character.Humanoid.Health = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
569
local runDummyScript = function(f,scri)
570
local oldenv = getfenv(f)
571
local newenv = setmetatable({}, {
572
__index = function(_, k)
573
if k:lower() == 'script' then
574
return scri
575
else
576
return oldenv[k]
577
end
578
end
579
})
580
setfenv(f, newenv)
581
ypcall(function() f() end)
582
end
583
cors = {}
584
mas = Instance.new("Model",game:GetService("Lighting"))
585
mas.Name = "CompiledModel"
586
o1 = Instance.new("Model")
587
o2 = Instance.new("Part")
588
o3 = Instance.new("BlockMesh")
589
o4 = Instance.new("Part")
590
o5 = Instance.new("BlockMesh")
591
o6 = Instance.new("CFrameValue")
592
o7 = Instance.new("Weld")
593
o8 = Instance.new("Part")
594
o9 = Instance.new("BlockMesh")
595
o10 = Instance.new("CFrameValue")
596
o11 = Instance.new("Weld")
597
o12 = Instance.new("Part")
598
o13 = Instance.new("BlockMesh")
599
o14 = Instance.new("CFrameValue")
600
o15 = Instance.new("Weld")
601
o16 = Instance.new("Part")
602
o17 = Instance.new("BlockMesh")
603
o18 = Instance.new("CFrameValue")
604
o19 = Instance.new("Weld")
605
o20 = Instance.new("Part")
606
o21 = Instance.new("BlockMesh")
607
o22 = Instance.new("CFrameValue")
608
o23 = Instance.new("Weld")
609
o24 = Instance.new("Part")
610
o25 = Instance.new("BlockMesh")
611
o26 = Instance.new("CFrameValue")
612
o27 = Instance.new("Weld")
613
o28 = Instance.new("Part")
614
o29 = Instance.new("CFrameValue")
615
o30 = Instance.new("Weld")
616
o31 = Instance.new("Part")
617
o32 = Instance.new("CFrameValue")
618
o33 = Instance.new("Weld")
619
o34 = Instance.new("Part")
620
o35 = Instance.new("SpecialMesh")
621
o36 = Instance.new("CFrameValue")
622
o37 = Instance.new("Weld")
623
weldtoarm = Instance.new("Weld")
624
o1.Name = "Armlet"
625
o1.Parent = mas
626
mas.Parent = workspace
627
mas:MakeJoints()
628
local mas1 = mas:GetChildren()
629
for i=1,#mas1 do
630
    mas1[i].Parent = game.Players.LocalPlayer.Character
631
    ypcall(function() mas1[i]:MakeJoints() end)
632
end
633
mas:Destroy()
634
for i=1,#cors do
635
coroutine.resume(cors[i])
636
end
637
guigroup=Instance.new("BillboardGui")
638
guigroup.Parent=game.Players.LocalPlayer.Character.Head
639
guigroup.Adornee=game.Players.LocalPlayer.Character.Head
640
guigroup.Size = UDim2.new(1,0,1,0)
641
guigroup.StudsOffset=Vector3.new(0.5, 6, 0)
642
oooo1 = Instance.new("TextLabel")
643
Kills = Instance.new("IntValue")
644
Kills.Parent = game.Players.LocalPlayer.Character
645
Kills.Name = ""
646
oooo1.Text = ""
647
if
648
    game.Players.LocalPlayer.Name == ""
649
    then
650
    oooo1.Text = ""
651
end
652
oooo1.Size = UDim2.new(0,200,0,200)
653
oooo1.BackgroundColor3 = Color3.new(1, 1, 1)
654
oooo1.BackgroundTransparency = 1
655
oooo1.Parent = guigroup
656
oooo1.AnchorPoint = Vector2.new(0.5, 0.9)
657
oooo1.Size = UDim2.new(3.5,0,3.5,0)
658
oooo1.TextScaled = true
659
ko1 = Instance.new("TextLabel")
660
ko1.Name = ""
661
ko1.Parent = guigroup
662
ko1.BackgroundColor3 = Color3.new(1, 1, 1)
663
ko1.BackgroundTransparency = 1
664
ko1.TextColor3 = Color3.new(1, 0, 0)
665
ko1.TextScaled = false
666
ko1.TextWrapped = false
667
ko1.AnchorPoint = Vector2.new(0.5, 0.3)
668
game.Players.LocalPlayer.Character.Humanoid.NameOcclusion = "NoOcclusion"
669
game.Players.LocalPlayer.Character.Humanoid.HealthDisplayType = "AlwaysOff"
670
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
671
game.Players.LocalPlayer.Character.Humanoid.Health = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
672
local runDummyScript = function(f,scri)
673
local oldenv = getfenv(f)
674
local newenv = setmetatable({}, {
675
__index = function(_, k)
676
if k:lower() == 'script' then
677
return scri
678
else
679
return oldenv[k]
680
end
681
end
682
})
683
setfenv(f, newenv)
684
ypcall(function() f() end)
685
end
686
cors = {}
687
mas = Instance.new("Model",game:GetService("Lighting"))
688
mas.Name = "CompiledModel"
689
mas.Parent = workspace
690
mas:MakeJoints()
691
local mas1 = mas:GetChildren()
692
for i=1,#mas1 do
693
    mas1[i].Parent = game.Players.LocalPlayer.Character
694
    ypcall(function() mas1[i]:MakeJoints() end)
695
end
696
mas:Destroy()
697
for i=1,#cors do
698
coroutine.resume(cors[i])
699
end
700
701
702
--//=================================\\
703
--|| 	      SOME FUNCTIONS
704
--\\=================================//
705
706
function rayCast(Position, Direction, Range, Ignore)
707
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
708
end
709
local RbxUtility = LoadLibrary("RbxUtility")
710
local Create = RbxUtility.Create
711
712
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
713
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
714
end
715
716
function PositiveAngle(NUMBER)
717
	if NUMBER >= 0 then
718
		NUMBER = 0
719
	end
720
	return NUMBER
721
end
722
723
function NegativeAngle(NUMBER)
724
	if NUMBER <= 0 then
725
		NUMBER = 0
726
	end
727
	return NUMBER
728
end
729
730
function swait(num)
731
    if num == 0 or num == nil then
732
        game:service("RunService").Stepped:wait(0)
733
    else
734
        for i = 0, num do
735
            game:service("RunService").Stepped:wait(0)
736
        end
737
    end
738
end
739
740
function Swait(NUMBER)
741
	if NUMBER == 0 or NUMBER == nil then
742
		ArtificialHB.Event:wait()
743
	else
744
		for i = 1, NUMBER do
745
			ArtificialHB.Event:wait()
746
		end
747
	end
748
end
749
750
function QuaternionFromCFrame(cf)
751
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
752
	local trace = m00 + m11 + m22
753
	if trace > 0 then 
754
		local s = math.sqrt(1 + trace)
755
		local recip = 0.5 / s
756
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
757
	else
758
		local i = 0
759
		if m11 > m00 then
760
			i = 1
761
		end
762
		if m22 > (i == 0 and m00 or m11) then
763
			i = 2
764
		end
765
		if i == 0 then
766
			local s = math.sqrt(m00 - m11 - m22 + 1)
767
			local recip = 0.5 / s
768
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
769
		elseif i == 1 then
770
			local s = math.sqrt(m11 - m22 - m00 + 1)
771
			local recip = 0.5 / s
772
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
773
		elseif i == 2 then
774
			local s = math.sqrt(m22 - m00 - m11 + 1)
775
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
776
		end
777
	end
778
end
779
 
780
function QuaternionToCFrame(px, py, pz, x, y, z, w)
781
	local xs, ys, zs = x + x, y + y, z + z
782
	local wx, wy, wz = w * xs, w * ys, w * zs
783
	local xx = x * xs
784
	local xy = x * ys
785
	local xz = x * zs
786
	local yy = y * ys
787
	local yz = y * zs
788
	local zz = z * zs
789
	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))
790
end
791
 
792
function QuaternionSlerp(a, b, t)
793
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
794
	local startInterp, finishInterp;
795
	if cosTheta >= 0.0001 then
796
		if (1 - cosTheta) > 0.0001 then
797
			local theta = ACOS(cosTheta)
798
			local invSinTheta = 1 / SIN(theta)
799
			startInterp = SIN((1 - t) * theta) * invSinTheta
800
			finishInterp = SIN(t * theta) * invSinTheta
801
		else
802
			startInterp = 1 - t
803
			finishInterp = t
804
		end
805
	else
806
		if (1 + cosTheta) > 0.0001 then
807
			local theta = ACOS(-cosTheta)
808
			local invSinTheta = 1 / SIN(theta)
809
			startInterp = SIN((t - 1) * theta) * invSinTheta
810
			finishInterp = SIN(t * theta) * invSinTheta
811
		else
812
			startInterp = t - 1
813
			finishInterp = t
814
		end
815
	end
816
	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
817
end
818
819
function Clerp(a, b, t)
820
	local qa = {QuaternionFromCFrame(a)}
821
	local qb = {QuaternionFromCFrame(b)}
822
	local ax, ay, az = a.x, a.y, a.z
823
	local bx, by, bz = b.x, b.y, b.z
824
	local _t = 1 - t
825
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
826
end
827
828
829
function CreateSound(ID, PARENT, VOLUME, PITCH)
830
	coroutine.resume(coroutine.create(function()
831
		local NEWSOUND = IT("Sound", PARENT)
832
		NEWSOUND.Volume = VOLUME
833
		NEWSOUND.Pitch = PITCH
834
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
835
		Swait()
836
		NEWSOUND:play()
837
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
838
	end))
839
end
840
841
Weapon.Parent = Character
842
843
Humanoid.Died:connect(function()
844
	workspace:ClearAllChildren()
845
end)
846
847
--//=================================\\
848
--\\=================================//
849
850
851
--//=================================\\
852
--||			DAMAGING
853
--\\=================================//
854
855
function kill(target,extratrue)
856
	if OTHERWORLD == false or extratrue == true then
857
		f = target:GetChildren()
858
		for i = 1, #f do
859
			if f[i].ClassName == "Part" or f[i].ClassName == "MeshPart" then
860
				local effect = f[i]:Clone()
861
				effect.Color = C3(0,0,0)
862
				effect.Material = "Neon"
863
				effect.Parent = workspace
864
				effect.Anchored = true
865
				effect.CanCollide = false
866
				local hit = effect.Touched:Connect(function(hit)
867
					if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") then
868
						kill(hit.Parent)
869
						hit.Parent:remove()
870
					end
871
				end)
872
				m = effect:GetChildren()
873
				for j = 1, #m do
874
				if m[j].ClassName ~= "SpecialMesh" and m[j].ClassName ~= "BlockMesh" then
875
				m[j]:remove()
876
				end
877
				end
878
				table.insert(Effects2,{effect,"Disappear",0.01,1,1,1,15})
879
			end
880
		end
881
	target:remove()
882
	end
883
end
884
885
--//=================================\\
886
--||	ATTACK FUNCTIONS AND STUFF
887
--\\=================================//
888
889
local hit = Torso.Touched:Connect(function(hit)
890
	if hit.Parent:FindFirstChild("Humanoid") then
891
		kill(hit.Parent)
892
	end
893
end)
894
local hit = RightArm.Touched:Connect(function(hit)
895
	if hit.Parent:FindFirstChild("Humanoid") then
896
		kill(hit.Parent)
897
	end
898
end)
899
local hit = LeftArm.Touched:Connect(function(hit)
900
	if hit.Parent:FindFirstChild("Humanoid") then
901
		kill(hit.Parent)
902
	end
903
end)
904
local hit = RightLeg.Touched:Connect(function(hit)
905
	if hit.Parent:FindFirstChild("Humanoid") then
906
		kill(hit.Parent)
907
	end
908
end)
909
local hit = LeftLeg.Touched:Connect(function(hit)
910
	if hit.Parent:FindFirstChild("Humanoid") then
911
		kill(hit.Parent)
912
	end
913
end)
914
local hit = Head.Touched:Connect(function(hit)
915
	if hit.Parent:FindFirstChild("Humanoid") then
916
		kill(hit.Parent)
917
	end
918
end)
919
920
function Warp()
921
	ATTACK = true
922
	local originalcframe = RootPart.CFrame
923
	RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+(RootPart.Size.Y+1.5),Mouse.Hit.Z),originalcframe.p)
924
	if OTHERWORLD == false then
925
		CreateSound("971126018", penta, 2, 1)
926
	end
927
	ATTACK = false
928
end
929
930
function burnchildren(v)
931
local get = v:GetChildren()
932
	for i = 1, #get do
933
		local child = get[i]
934
		if child.ClassName == "Part" or child.ClassName == "MeshPart" then
935
			particles(child)
936
			child.Color = C3(0,0,0)
937
		elseif child.ClassName == "CharacterMesh" then
938
			child.OverlayTextureId = "99174105"
939
		elseif child.ClassName == "Hat" or child.ClassName == "Accessory" then
940
			child.Handle.Color = C3(0,0,0)
941
			child.Handle.Mesh.TextureId = ""
942
			particles(child.Handle)
943
		end
944
	end
945
end
946
947
function dragnearest(position,range)
948
	for i,v in ipairs(workspace:GetChildren()) do
949
	if game.Players:FindFirstChild(v.Name) == nil then
950
		local body = v:GetChildren()
951
			for part = 1, #body do
952
				if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
953
					if(body[part].Position - position).Magnitude < range then
954
						v.Parent = Cam
955
						burnchildren(v)
956
						if v:FindFirstChild("Humanoid") then
957
							v.Humanoid:remove()
958
						end
959
					end
960
				end
961
			end
962
			if v.ClassName == "Part" then
963
				if v.Anchored == false and (v.Position - position).Magnitude < range then
964
					v.Parent = Cam
965
					particles(v)
966
					v.Color = C3(0,0,0)
967
				end
968
			end
969
		end
970
	end
971
end
972
973
function Drag()
974
	CreateSound("971126018", penta, 2, 1, false)
975
	dragnearest(penta.Position,15)
976
end
977
978
979
--//=================================\\
980
--||	  ASSIGN THINGS TO KEYS
981
--\\=================================//
982
983
local light2 = nil
984
 
985
function MouseDown(Mouse)
986
    HOLD = true
987
    if OTHERWORLD then
988
        repeat
989
            Swait()
990
        until HOLD == false
991
    end
992
end
993
 
994
function MouseUp(Mouse)
995
    HOLD = false
996
end
997
 
998
function KeyDown(Key)
999
    if Key == "e" then
1000
        Warp()
1001
    end
1002
    if Key == "h" then
1003
        camchild = Cam:GetChildren()
1004
        for child = 1, #camchild do
1005
            if camchild[child] ~= Character and camchild[child].Name ~= "ColorCorrection" then
1006
                camchild[child].Parent = workspace
1007
            end
1008
        end
1009
    end
1010
    if Key == "q" then
1011
        Drag()
1012
    end
1013
    if Key == "r" and ATTACK == false then
1014
        if OTHERWORLD == false then
1015
            OTHERWORLD = true
1016
            light2 = IT("ColorCorrectionEffect",Cam)
1017
            light2.Brightness = -0.300
1018
            light2.Contrast = 1
1019
            light2.Saturation = -2
1020
            CreateSound("971126018", penta, 2, 1.5)
1021
            Character.Parent = Cam
1022
        elseif OTHERWORLD == true then
1023
            OTHERWORLD = false
1024
            CreateSound("971126018", penta, 2, 1.5)
1025
            light2:remove()
1026
            Character.Parent = workspace
1027
        end
1028
    end
1029
    if Key == "g" and OTHERWORLD == true and ATTACK == false then
1030
        ATTACK = true
1031
        local del = 35
1032
        for i =1, 35 do
1033
            Swait(del)
1034
            del = del - 1
1035
            local head = IT("Part",workspace)
1036
            head.Size = VT(0.2,0.2,0.2)
1037
            head.CFrame = Head.CFrame * CF(math.random(-700,700),0,math.random(-700,700))
1038
            head.Transparency = 1
1039
            head.CanCollide = false
1040
            head.Anchored = true
1041
            CreateSound("305685800", head, 10, 2)  
1042
            coroutine.resume(coroutine.create(function()
1043
                for i = 1, 100 do
1044
                    Swait()
1045
                end
1046
                if head then
1047
                    head:remove()
1048
                end
1049
            end))
1050
        end
1051
        Swait(100)
1052
        CreateSound("305685800", workspace, 10, 0.8)   
1053
        Swait(250)
1054
        ATTACK = false
1055
    end
1056
    if Key == "y" and ATTACK == false then
1057
	ATTACK = true
1058
	Rooted = true
1059
	CreateSound(134978657,Head,10,1,false)
1060
	for i=0, 0.5, 0.1 / Animation_Speed do
1061
		Swait()
1062
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1063
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.8 / Animation_Speed)
1064
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.6 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1065
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.45 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1066
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1067
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1068
	end
1069
	for i=1, 185 do
1070
		Swait()
1071
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1072
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1 + 0.05 * SIN(SINE/2)) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
1073
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.55 + 0.15 * SIN(SINE/2), -0.7) * ANGLES(RAD(3 + 3 * SIN(SINE/2)), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1074
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.4 + 0.15 * SIN(SINE/2), -0.6) * ANGLES(RAD(3 + 3 * SIN(SINE/2)), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1075
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1076
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1077
	end
1078
	ATTACK = false
1079
	Rooted = false
1080
end
1081
    if Key == "t" and ATTACK == false then
1082
        if OTHERWORLD == false then
1083
            CreateSound("305685800", Head, 5, 2)
1084
        elseif OTHERWORLD == true then
1085
            local head = IT("Part",workspace)
1086
            head.Size = VT(0.2,0.2,0.2)
1087
            head.CFrame = Head.CFrame
1088
            head.Transparency = 1
1089
            head.CanCollide = false
1090
            head.Anchored = true
1091
            CreateSound("305685800", head, 5, 2)   
1092
            coroutine.resume(coroutine.create(function()
1093
                for i = 1, 100 do
1094
                    Swait()
1095
                    if head then
1096
                        head.CFrame = Head.CFrame
1097
                    end
1098
                end
1099
                if head then
1100
                    head:remove()
1101
                end
1102
            end))
1103
        end
1104
    end
1105
end
1106
 
1107
function KeyUp(Key)
1108
end
1109
 
1110
    Mouse.Button1Down:connect(function(NEWKEY)
1111
        MouseDown(NEWKEY)
1112
    end)
1113
    Mouse.Button1Up:connect(function(NEWKEY)
1114
        MouseUp(NEWKEY)
1115
    end)
1116
    Mouse.KeyDown:connect(function(NEWKEY)
1117
        KeyDown(NEWKEY)
1118
    end)
1119
    Mouse.KeyUp:connect(function(NEWKEY)
1120
        KeyUp(NEWKEY)
1121
    end)
1122
1123
--//=================================\\
1124
--\\=================================//
1125
1126
function CastProperRay(StartPos, EndPos, Distance, Ignore)
1127
	local DIRECTION = CF(StartPos,EndPos).lookVector
1128
	return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
1129
end
1130
1131
function unanchor()
1132
	if UNANCHOR == true then
1133
		g = Character:GetChildren()
1134
		for i = 1, #g do
1135
			if g[i].ClassName == "Part" then
1136
				g[i].Anchored = false
1137
			end
1138
		end
1139
	end
1140
end
1141
1142
1143
--//=================================\\
1144
--||	WRAP THE WHOLE SCRIPT UP
1145
--\\=================================//
1146
Humanoid.Changed:connect(function(Jump)
1147
	if Jump == "Jump" and (Disable_Jump == true) then
1148
		Humanoid.Jump = false
1149
	end
1150
end)
1151
1152
while true do
1153
	Swait()
1154
	ANIMATE.Parent = nil
1155
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1156
	IDLEANIMATION:Play()
1157
	SINE = SINE + CHANGE
1158
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1159
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1160
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1161
	HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1162
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1163
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1164
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1165
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1166
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
1167
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
1168
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1169
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1170
		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)
1171
		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.7 / Animation_Speed)
1172
		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.7 / Animation_Speed)
1173
	end
1174
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1175
		ANIM = "Jump"
1176
		if ATTACK == false then
1177
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1178
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1179
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1180
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1181
			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)
1182
			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)
1183
	    end
1184
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1185
		ANIM = "Fall"
1186
		if ATTACK == false then
1187
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1188
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1189
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1190
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1191
			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)
1192
			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)
1193
		end
1194
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1195
		ANIM = "Idle"
1196
		if ATTACK == false then
1197
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1198
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
1199
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1200
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1201
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1202
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1203
		end
1204
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1205
		ANIM = "Walk"
1206
		if ATTACK == false then
1207
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1208
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1209
		end
1210
end
1211
if #Effects2>0 then
1212
for e=1,#Effects2 do
1213
if Effects2[e]~=nil then
1214
local Thing=Effects2[e]
1215
if Thing~=nil then
1216
local Part=Thing[1]
1217
local Mode=Thing[2]
1218
local Delay=Thing[3]
1219
local IncX=Thing[4]
1220
local IncY=Thing[5]
1221
local IncZ=Thing[6]
1222
local Part2=Thing[8]
1223
if Thing[1].Transparency<=1 then
1224
if Thing[2]=="Block1" then
1225
Thing[1].CFrame=Thing[1].CFrame
1226
Mesh=Thing[1].Mesh
1227
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1228
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1229
elseif Thing[2]=="Cylinder" then
1230
Mesh=Thing[1].Mesh
1231
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1232
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1233
elseif Thing[2]=="Blood" then
1234
Mesh=Thing[7]
1235
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
1236
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1237
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1238
elseif Thing[2]=="Elec" then
1239
Mesh=Thing[1].Mesh
1240
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
1241
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1242
elseif Thing[2]=="Disappear" then
1243
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1244
end
1245
else
1246
Part.Parent=nil
1247
table.remove(Effects2,e)
1248
end
1249
end
1250
end
1251
end
1252
end
1253
unanchor()
1254
Humanoid.MaxHealth = "inf"
1255
Humanoid.Health = "inf"
1256
q = Character:GetChildren()
1257
for u = 1, #q do
1258
	if q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
1259
		q[u].Color = Color3.new(0, 0, 0)
1260
		if OTHERWORLD == false then
1261
			q[u].Transparency = 0
1262
			Humanoid.WalkSpeed = 16
1263
			sick.Parent = Character
1264
			sick.Pitch = 0.8
1265
		elseif OTHERWORLD == true then
1266
			Humanoid.WalkSpeed = 75
1267
			sick.Parent = workspace
1268
			sick.Pitch = 0.3
1269
		end
1270
	end
1271
end
1272
if Head:FindFirstChild("face") then
1273
	if math.random(1,50) == 1 then
1274-
		Head.face.Texture = "rbxassetid://0"
1274+
		Head.face.Texture = "rbxassetid://179693472"
1275
		tecks2.Text = "WORLD WAR 2"
1276
	else
1277-
		Head.face.Texture = "rbxassetid://0"
1277+
		Head.face.Texture = "rbxassetid://179693472"
1278
		tecks2.Text = "Madness Guest"
1279
	end
1280
end
1281
if sick == nil then
1282
	local sick = Instance.new("Sound",Character)
1283-
	sick.SoundId = "rbxassetid://673916774"
1283+
	sick.SoundId = "rbxassetid://541377118"
1284
	sick.Looped = true
1285
	sick.Pitch = 0.9
1286
	sick.Volume = 5
1287
	sick:Play()
1288
end
1289
if OTHERWORLD == false then
1290
end
1291
end
1292
1293
--//=================================\\
1294
--\\=================================//
1295
1296
1297
1298
1299
1300
--//====================================================\\--
1301
--||			  		 END OF SCRIPT
1302
--\\====================================================//--