View difference between Paste ID: QX993KLn and bPZe1P56
SHOW: | | - or go back to the newest paste.
1
--[[
2
	Explosion God script made by EliteShadow @ V3rm aka Crimsonal @ Roblox	
3
--]]
4
5
local p = game.Players.LocalPlayer--300899323
6
local char = p.Character
7
local mouse = p:GetMouse()
8
local larm = char["Left Arm"]
9
local rarm = char["Right Arm"]
10
local lleg = char["Left Leg"]
11
local rleg = char["Right Leg"]
12
local hed = char.Head
13
local torso = char.Torso
14
local hum = char.Humanoid
15
local cam = game.Workspace.CurrentCamera
16
local root = char.HumanoidRootPart
17
local rj = root.RootJoint
18
local deb = false
19
local shot = 0
20
local stanceToggle = "Idle1"
21
local l = game:GetService("Lighting")
22
local rs = game:GetService("RunService").RenderStepped
23
local hb = game:GetService("RunService").Heartbeat
24
local Stepped = game:GetService("RunService").Stepped
25
math.randomseed(os.time())
26
local Transforming = true
27
hum.WalkSpeed = 0
28
local fx = Instance.new("Part",torso)
29
wit = Color3.new(0, 1, 1), Color3.new(0.5, 0, 1)
30
wit2 = Color3.new(0.5,0,1)
31
local glowz = Instance.new("ParticleEmitter",fx)
32
glowz.LightEmission = 1
33
glowz.Texture = "rbxassetid://280516525"
34
glowz.Color =  ColorSequence.new(Color3.new(0, 1, 1), Color3.new(0.5, 0, 1))
35
glowz.Size = NumberSequence.new(5)
36
glowz.Speed = NumberRange.new(25,50)
37
glowz.LockedToPart = false
38
glowz.Transparency = NumberSequence.new(0.75)
39
glowz.RotSpeed = NumberRange.new(-2000,2000)
40
glowz.Lifetime = NumberRange.new(1)
41
glowz.Rate = 5000
42
glowz.VelocitySpread = 9001
43
fx.Anchored = true
44
fx.Material = "Neon"
45
fx.CanCollide = false
46
fx.Locked = true
47
fx.Transparency = 1
48
fx.Material = "Neon"
49
fx.Size = Vector3.new(1,1,1)
50
fx.TopSurface = "SmoothNoOutlines"
51
fx.BottomSurface = "SmoothNoOutlines"
52
fx.BrickColor = BrickColor.new("Really black")
53
fxm = Instance.new("SpecialMesh",fx)
54
fxm.MeshType = "Sphere"
55
local sa2 = Instance.new("Sound",torso)
56
sa2.SoundId = "rbxassetid://93724183"
57
sa2.Pitch = 0.5
58
sa2.Volume = 5
59
sa2.Looped = false
60
sa2:Play()
61
local value = 1
62
fxm.Scale = Vector3.new(1,1,1)
63
for i = 1, 20 do rs:wait()
64
        value = value - 0.05
65
        fx.Transparency = fx.Transparency - (1/20)
66
        fx.CFrame = torso.CFrame
67
        fxm.Scale = fxm.Scale + Vector3.new(value,value,value)
68
        rs:wait()
69
end
70
----------------------------------------------------
71
GroundWave1 = function()
72
	local Transforming = true
73
hum.WalkSpeed = 0
74
local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
75
	local Colors = {"White", "Really black"}
76
		local wave = Instance.new("Part", torso)
77
		wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
78
		wave.Anchored = true
79
		wave.CanCollide = false
80
		wave.Locked = true
81
		wave.Size = Vector3.new(1, 1, 1)
82
		wave.TopSurface = "Smooth"
83
		wave.BottomSurface = "Smooth"
84
		wave.Transparency = 0.35
85
		wave.CFrame = HandCF
86
		wm = Instance.new("SpecialMesh", wave)
87
		wm.MeshId = "rbxassetid://3270017"
88
		coroutine.wrap(function()
89
		for i = 1, 30, 1 do
90
		wm.Scale = Vector3.new(50, 50, 1 + i*50)
91
		wave.Size = wm.Scale
92
		wave.CFrame = HandCF
93
		wave.Transparency = i/30
94
		wait()
95
		end
96
		wait()
97
		wave:Destroy()
98
	end)()
99
end
100
----------------------------------------------------
101
GroundWave = function()
102
        if Transforming == true then
103
                local value = 5
104
                local value2 = 10
105
                local value3 = 20
106
local sa2 = Instance.new("Sound",torso)
107
sa2.SoundId = "rbxassetid://413682983"
108
sa2.Pitch = 1
109
sa2.Volume = 10
110
sa2.Looped = false
111
sa2:Play()
112
                local wave = Instance.new("Part", torso)
113
local glowz = Instance.new("ParticleEmitter",wave)
114
glowz.LightEmission = 1
115
glowz.Texture = "0"
116
glowz.Color =  ColorSequence.new(Color3.new(0, 1, 1), Color3.new(0.5, 0, 1))
117
glowz.Size = NumberSequence.new(30)
118
glowz.Speed = NumberRange.new(25,100)
119
glowz.LockedToPart = false
120
glowz.Transparency = NumberSequence.new(0.75)
121
glowz.RotSpeed = NumberRange.new(-2000,2000)
122
glowz.Lifetime = NumberRange.new(1)
123
glowz.Rate = 5000
124
glowz.VelocitySpread = 9001
125
126
                wave.BrickColor = BrickColor.new("Toothpaste")
127
                wave.Anchored = true
128
                wave.CanCollide = false
129
                wave.Locked = true
130
                wave.Size = Vector3.new(1, 1, 1)
131
                wave.TopSurface = "Smooth"
132
                wave.BottomSurface = "Smooth"
133
                wave.Transparency = 0.35
134
                wave.CFrame = fx.CFrame
135
                wave.Material = "Neon"
136
                wm = Instance.new("SpecialMesh", wave)
137
                wm.MeshType = "Sphere"
138
                wm.Scale = Vector3.new(1,1,1)
139
                local wave2 = Instance.new("Part", torso)
140
                wave2.BrickColor = BrickColor.new("Toothpaste")
141
                wave2.Anchored = true
142
                wave2.CanCollide = false
143
                wave2.Locked = true
144
                wave2.Size = Vector3.new(1, 1, 1)
145
                wave2.TopSurface = "Smooth"
146
                wave2.BottomSurface = "Smooth"
147
                wave2.Transparency = 0.35
148
                wave2.CFrame = fx.CFrame
149
                wave2.Material = "Neon"
150
                wm2 = Instance.new("SpecialMesh", wave2)
151
                wm2.MeshType = "FileMesh"
152
                wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
153
                wm2.Scale = Vector3.new(1,1,1)
154
                local wave3 = Instance.new("Part", torso)
155
                wave3.BrickColor = BrickColor.new("Really black")
156
                wave3.Anchored = true
157
                wave3.CanCollide = false
158
                wave3.Locked = true
159
                wave3.Size = Vector3.new(1, 1, 1)
160
                wave3.TopSurface = "Smooth"
161
                wave3.BottomSurface = "Smooth"
162
                wave3.Transparency = 0.35
163
                wave3.CFrame = fx.CFrame
164
                wave3.Material = "Neon"
165
                wm3 = Instance.new("SpecialMesh", wave3)
166
                wm3.MeshType = "FileMesh"
167
                wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
168
                wm3.Scale = Vector3.new(1,1,1)
169
                coroutine.wrap(function()
170
                for i = 1, 18, 1 do
171
                value = value - 0.5
172
                value2 = value2 - 0.75*1.5
173
                value3 = value3 - 0.475*1.5
174
                wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5)
175
                wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5)
176
                wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25)
177
                --wave.Size = wm.Scale
178
                wave.CFrame = fx.CFrame
179
                wave.Transparency = i/14
180
                --wave2.Size = wm2.Scale
181
                wave2.CFrame = fx.CFrame
182
                wave2.Rotation = Vector3.new(90, 0, 0)
183
                wave2.Transparency = i/14
184
                --wave3.Size = wm3.Scale
185
                wave3.CFrame = fx.CFrame
186
                wave3.Rotation = Vector3.new(90, 0, 0)
187
                wave3.Transparency = i/14
188
                wait()
189
                glowz.Rate = 0
190
                
191
                end
192
                wait()
193
                wave:Destroy()
194
                wave2:Destroy()
195
                wave3:Destroy()
196
        end)()
197
        elseif Transforming == false then
198
        wait()
199
        end
200
end
201
202
for i = 1, 100 do rs:wait()
203
        fx.CFrame = torso.CFrame
204
end
205
206
Spawn(function()
207
	while wait(1) do
208
		GroundWave()
209
	end
210
end)
211
212
wait(4)
213
214
Transforming = false
215
216
local value2 = 1
217
for i = 1, 20 do rs:wait()
218
        value2 = value2 - 0.05
219
        glowz.Rate = 0
220
     
221
        fx.Transparency = fx.Transparency + (1/20)
222
        fx.CFrame = torso.CFrame
223
        fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2)
224
        rs:wait()
225
end
226
glowz:Destroy()
227
228
229
local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
230
        local valuer = 5
231
        local valuer2 = 10
232
        local valuer3 = 15
233
local sa2 = Instance.new("Sound",torso)
234
sa2.SoundId = "rbxassetid://130972023"
235
sa2.Pitch = 1
236
sa2.Volume = 5
237
sa2.Looped = false
238
sa2:Play()
239
local sar2 = Instance.new("Sound",torso)
240
sar2.SoundId = "rbxassetid://153274423"
241
sar2.Pitch = 1
242
sar2.Volume = 5
243
sar2.Looped = false
244
sar2:Play()
245
        local wave = Instance.new("Part", torso)
246
        wave.BrickColor = BrickColor.new("Toothpaste")
247
        wave.Anchored = true
248
        wave.CanCollide = false
249
        wave.Locked = true
250
        wave.Size = Vector3.new(1, 1, 1)
251
        wave.TopSurface = "Smooth"
252
        wave.BottomSurface = "Smooth"
253
        wave.Transparency = 0.35
254
        wave.CFrame = HandCF
255
        wm = Instance.new("SpecialMesh", wave)
256
        wm.MeshId = "rbxassetid://3270017"
257
        local wave2 = Instance.new("Part", torso)
258
        wave2.BrickColor = BrickColor.new("Really black")
259
        wave2.Anchored = true
260
        wave2.CanCollide = false
261
        wave2.Locked = true
262
        wave2.Size = Vector3.new(1, 1, 1)
263
        wave2.TopSurface = "Smooth"
264
        wave2.BottomSurface = "Smooth"
265
        wave2.Transparency = 0.35
266
        wave2.CFrame = HandCF
267
        wm2 = Instance.new("SpecialMesh", wave2)
268
        wm2.MeshId = "rbxassetid://3270017"
269
        local wave3 = Instance.new("Part", torso)
270
        wave3.BrickColor = BrickColor.new("Toothpaste")
271
        wave3.Anchored = true
272
        wave3.CanCollide = false
273
        wave3.Locked = true
274
        wave3.Size = Vector3.new(1, 1, 1)
275
        wave3.TopSurface = "Smooth"
276
        wave3.BottomSurface = "Smooth"
277
        wave3.Transparency = 0.35
278
        wave3.CFrame = HandCF
279
        wm3 = Instance.new("SpecialMesh", wave3)
280
        wm3.MeshId = "rbxassetid://3270017"
281
        coroutine.wrap(function()
282
        for i = 1, 14, 1 do
283
        valuer = valuer - 0.35
284
        valuer2 = valuer - 0.45
285
        valuer3 = valuer3 - 0.475
286
        wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
287
        wave.Size = wm.Scale
288
        wave.CFrame = HandCF
289
        wave.Transparency = i/14
290
        wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
291
        wave2.Size = wm2.Scale
292
        wave2.CFrame = HandCF
293
        wave2.Transparency = i/14
294
        wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
295
        wave3.Size = wm2.Scale
296
        wave3.CFrame = HandCF
297
        wave3.Transparency = i/14
298
        wait()
299
        end
300
        wait()
301
        wave:Destroy()
302
        wave2:Destroy()
303
end)()
304
hum.WalkSpeed = 16
305
306
307
308
309
local Player = game.Players.LocalPlayer
310
local Mouse = Player:GetMouse()
311
repeat wait() until Player.Character
312
local Character = Player.Character
313
local Humanoid = Character.Humanoid
314
local Torso = Character.Torso
315
local Head = Character.Head
316
local RightArm = Character["Right Arm"]
317
local LeftArm = Character["Left Arm"]
318
local RightLeg = Character["Right Leg"]
319
local LeftLeg = Character["Left Leg"]
320
local Head = Character.Head
321
local RightShoulder = Torso["Right Shoulder"]
322
local LeftShoulder = Torso["Left Shoulder"]
323
local Neck = Torso["Neck"]
324
local RightHip = Torso["Right Hip"]
325
local LeftHip = Torso["Left Hip"]
326
wait(1)
327
Instance.new("ForceField", Character)
328
329
local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
330
local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
331
local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
332
local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
333
local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
334
local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
335
local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
336
local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
337
local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
338
local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
339
340
341
342
343
344
345
346
347
348
349
350
351
local Player = game.Players.LocalPlayer
352
local Character = Player.Character
353
local Humanoid = Character.Humanoid
354
local Torso = Character.Torso
355
local Head = Character.Head
356
local mouse = Player:GetMouse()
357
local Root = Character.HumanoidRootPart
358
local RunService = game:GetService("RunService").RenderStepped
359
local Lighting = game:GetService("Lighting")
360
361
362
Player:ClearCharacterAppearance()
363
wait(0.1)
364
Player.Character.Head.BrickColor = BrickColor.new("Really black")
365
Player.Character.Torso.BrickColor = BrickColor.new("Really black")
366
Player.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
367
Player.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
368
Player.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
369
Player.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
370
pcall(function() Player.Character.Torso.roblox:Destroy() end)
371
372
z = Instance.new("Sound", Character)
373
z.SoundId = "rbxassetid://823815836"--301463006
374
z.Looped = true
375
z.Pitch = 1
376
z.Volume = math.huge
377
wait(.1)
378
z:Play()
379
380
381
382
383
384
385
386
387
388
CV="Pastel blue"
389
	
390
local txt = Instance.new("BillboardGui", Character)
391
txt.Adornee = Character .Head
392
txt.Name = "_status"
393
txt.Size = UDim2.new(2, 0, 1.2, 0)
394
txt.StudsOffset = Vector3.new(-9, 8, 0)
395
local text = Instance.new("TextLabel", txt)
396
text.Size = UDim2.new(10, 0, 7, 0)
397
text.FontSize = "Size24"
398
text.TextScaled = true
399
text.TextTransparency = 0
400
text.BackgroundTransparency = 1 
401
text.TextTransparency = 0
402
text.TextStrokeTransparency = 0
403
text.Font = "Antique"
404
text.TextStrokeColor3 = Color3.new(255,85,0)
405
406
v=Instance.new("Part")
407
v.Name = "ColorBrick"
408
v.Parent=Player.Character
409
v.FormFactor="Symmetric"
410
v.Anchored=true
411
v.CanCollide=false
412
v.BottomSurface="Smooth"
413
v.TopSurface="Smooth"
414
v.Size=Vector3.new(10,5,3)
415
v.Transparency=1
416
v.CFrame=Character.Torso.CFrame
417
v.BrickColor=BrickColor.new(CV)
418
v.Transparency=1
419
text.TextColor3 = Color3.new(0,0,0)
420
v.Shape="Block"
421
text.Text = "Power Ranger God"
422
423
424
425
426
427
428
429
local selectionBoxOfTorso = Instance.new("SelectionBox",Torso)
430
selectionBoxOfTorso.Adornee = Torso
431
selectionBoxOfTorso.Color = BrickColor.new("1020")
432
selectionBoxOfTorso.LineThickness = 0.01
433
selectionBoxOfTorso.Transparency = 0
434
	
435
local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"])
436
selectionBoxOfRightArm.Adornee = Character["Right Arm"]
437
selectionBoxOfRightArm.Color = BrickColor.new("1020")
438
selectionBoxOfRightArm.LineThickness = 0.01
439
selectionBoxOfRightArm.Transparency = 0
440
	
441
local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"])
442
selectionBoxOfRightLeg.Adornee = Character["Right Leg"]
443
selectionBoxOfRightLeg.Color = BrickColor.new("1020")
444
selectionBoxOfRightLeg.LineThickness = 0.01
445
selectionBoxOfRightLeg.Transparency = 0
446
447
local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"])
448
selectionBoxOfLeftArm.Adornee = Character["Left Arm"]
449
selectionBoxOfLeftArm.Color = BrickColor.new("1020")
450
selectionBoxOfLeftArm.LineThickness = 0.01
451
selectionBoxOfLeftArm.Transparency = 0
452
453
local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"])
454
selectionBoxOfLeftLeg.Adornee = Character["Left Leg"]
455
selectionBoxOfLeftLeg.Color = BrickColor.new("1020")
456
selectionBoxOfLeftLeg.LineThickness = 0.01
457
selectionBoxOfLeftLeg.Transparency = 0
458
459
460
LightOnBody = Instance.new("PointLight", Head)
461
LightOnBody.Brightness = 3000
462
LightOnBody.Range = 20
463
LightOnBody.Color = Color3.new(255, 85, 0)
464
465
local HandCF = CFrame.new(Root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
466
        local wave = Instance.new("Part", Torso)
467
        wave.BrickColor = BrickColor.new("Maroon")
468
        wave.Anchored = true
469
        wave.CanCollide = false
470
        wave.Locked = true
471
        wave.Size = Vector3.new(1, 1, 1)
472
        wave.TopSurface = "Smooth"
473
        wave.BottomSurface = "Smooth"
474
        wave.Transparency = 0.35
475
        wave.CFrame = HandCF
476
        wm = Instance.new("SpecialMesh", wave)
477
        wm.MeshId = "rbxassetid://3270017"
478
        coroutine.wrap(function()
479
        for i = 1, 14, 1 do
480
        wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
481
        wave.Size = wm.Scale
482
        wave.CFrame = HandCF
483
        wave.Transparency = i/14
484
        wait()
485
        end
486
        wait()
487
        wave:Destroy()
488
end)()
489
490
	
491
local function RefreshWelds()
492
	Neck.C0 = NeckC0
493
	Neck.C1 = NeckC1
494
	RightShoulder.C0 = RightShoulderC0
495
	RightShoulder.C1 = RightShoulderC1
496
	LeftShoulder.C0 = LeftShoulderC0
497
	LeftShoulder.C1 = LeftShoulderC1
498
	RightHip.C0 = RightHipC0
499
	RightHip.C1 = RightHipC1
500
	LeftHip.C0 = LeftHipC0
501
	LeftHip.C1 = LeftHipC1
502
end
503
504
local LastArm = "Left"
505
local Active = false
506
game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
507
	if not Gpe then
508
		if Key.KeyCode == Enum.KeyCode.F and not Active then
509
			Active=true
510
			RefreshWelds()
511
			Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
512
			Torso.Anchored=true
513
			Humanoid.PlatformStand = true
514
			for i = 1,3 do
515
				RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,-0.2,0.55)
516
				LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0.2, -0.55)
517
			end
518
			local last1
519
			local last2
520
			local explosion = Instance.new("Sound", Character)
521
			explosion.Name="explosion"
522
			explosion.SoundId = "rbxassetid://2248511"
523
			explosion:Play()
524
			game.Debris:AddItem(explosion,10)
525
			spawn(function()
526
				for i = 1,15 do
527
					local p = Instance.new("Part", Character)
528
					p.Anchored=true
529
					p.CanCollide=false
530
					p.Transparency=1
531
					p.Size=Vector3.new(.1,.1,.1)
532
					p.Shape = "Ball"
533
					p.BrickColor = BrickColor.new("Really black")
534
					game.Debris:AddItem(p,1)
535
					if not last1 then
536
						p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0) * CFrame.new(0,0,-10)
537
						last1=p 
538
					else
539
						p.CFrame = last1.CFrame * CFrame.new(0, 0,-i*5)
540
						last1=p
541
					end
542
					local explo = Instance.new("Explosion", workspace)
543
					explo.Position=p.Position
544
					explo.BlastPressure = math.huge
545
					explo.BlastRadius= math.huge
546
					wait()
547
				end
548
			end)
549
			spawn(function()
550
				for i = 1,15 do
551
					local p = Instance.new("Part", Character)
552
					p.Anchored=true
553
					p.CanCollide=false
554
					p.Transparency=1
555
					p.Size=Vector3.new(.1,.1,.1)
556
					p.Shape = "Ball"
557
					p.BrickColor = BrickColor.new("Really black")
558
					game.Debris:AddItem(p,1)
559
					if not last2 then
560
						p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0) * CFrame.new(0,0,-10)
561
						last2=p 
562
					else
563
						p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
564
						last2=p
565
					end
566
					local explo = Instance.new("Explosion", workspace)
567
					explo.Position=p.Position
568
					explo.BlastPressure = math.huge
569
					explo.BlastRadius= math.huge
570
					wait()
571
				end
572
			end)
573
			wait(1)
574
			Torso.Anchored=false
575
			Humanoid.PlatformStand = false
576
			RefreshWelds()
577
			Active=false
578
		elseif Key.KeyCode == Enum.KeyCode.C and not Active then
579
			Active = true
580
			RefreshWelds()
581
			Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
582
			Torso.Anchored=true
583
			Humanoid.PlatformStand = true
584
			for i = 1,3 do
585
				RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
586
				LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, -0.5)
587
				wait()
588
			end
589
			local last1
590
			local last2
591
			local explosion = Instance.new("Sound", Character)
592
			explosion.Name="explosion"
593
			explosion.SoundId = "rbxassetid://2248511"
594
			explosion:Play()
595
			game.Debris:AddItem(explosion,10)
596
			spawn(function()
597
				for i = 1,15 do
598
					local p = Instance.new("Part", Character)
599
					p.Anchored=true
600
					p.CanCollide=false
601
					p.Transparency=1
602
					p.Size=Vector3.new(.1,.1,.1)
603
					p.Shape = "Ball"
604
					p.BrickColor = BrickColor.new("Really black")
605
					game.Debris:AddItem(p,1)
606
					if not last1 then
607
						p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
608
						last1=p 
609
					else
610
						p.CFrame = last1.CFrame * CFrame.new(0,0 ,-i*5)
611
						last1=p
612
					end
613
					local explo = Instance.new("Explosion", workspace)
614
					explo.Position=p.Position
615
					explo.BlastPressure = math.huge
616
					explo.BlastRadius= math.huge
617
					wait()
618
				end
619
			end)
620
			spawn(function()
621
				for i = 1,15 do
622
					local p = Instance.new("Part", Character)
623
					p.Anchored=true
624
					p.CanCollide=false
625
					p.Transparency=1
626
					p.Size=Vector3.new(.1,.1,.1)
627
					p.Shape = "Ball"
628
					p.BrickColor = BrickColor.new("Really black")
629
					game.Debris:AddItem(p,1)
630
					if not last2 then
631
						p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
632
						last2=p 
633
					else
634
						p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
635
						last2=p
636
					end
637
					local explo = Instance.new("Explosion", workspace)
638
					explo.Position=p.Position
639
					explo.BlastPressure = math.huge
640
					explo.BlastRadius= math.huge
641
					wait()
642
				end
643
			end)
644
			wait(1)
645
			for i = 1,3 do
646
				RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
647
				LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, 0.5)
648
				wait()
649
			end
650
			Torso.Anchored=false
651
			Humanoid.PlatformStand = false
652
			RefreshWelds()
653
			Active=false
654
		elseif Key.KeyCode == Enum.KeyCode.E and not Active
655
			then Active = true
656
			RefreshWelds()
657
			Torso.Anchored=true
658
			Humanoid.PlatformStand=true
659
			if LastArm == "Left" then
660
				LastArm="Right"
661
				Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
662
				for i = 1,3 do
663
					RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
664
					wait()
665
				end
666
				wait(0.5)
667
				RefreshWelds()
668
				for i = 1,3 do
669
					RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
670
				end
671
				Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
672
				local p = Instance.new("Part", Character)
673
				p.Anchored=true
674
				p.CanCollide=false
675
				p.Transparency=1
676
				p.Size=Vector3.new(.1,.1,.1)
677
				p.Shape = "Ball"
678
				p.BrickColor = BrickColor.new("Really black")
679
				p.CFrame = Torso.CFrame * CFrame.new(1.5, 0, -2)
680
				game.Debris:AddItem(p,3)
681
				local explosion = Instance.new("Sound", Character)
682
				explosion.Name="explosion"
683
				explosion.SoundId = "rbxassetid://2248511"
684
				explosion:Play()
685
				game.Debris:AddItem(explosion, 10)
686
				local explo = Instance.new("Explosion", workspace)
687
				explo.BlastPressure = math.huge
688
				explo.BlastRadius= math.huge
689
				explo.Position=p.Position
690
			elseif LastArm == "Right" then
691
				LastArm = "Left"
692
				Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
693
				for i = 1,3 do
694
					LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,0.5)
695
					wait()
696
				end
697
				wait(0.5)
698
				RefreshWelds()
699
				for i = 1,3 do
700
					LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,-0.5)
701
				end
702
				Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
703
				local p = Instance.new("Part", Character)
704
				p.Anchored=true
705
				p.CanCollide=false
706
				p.Transparency=1
707
				p.Size=Vector3.new(.1,.1,.1)
708
				p.Shape = "Ball"
709
				p.BrickColor = BrickColor.new("Really black")
710
				p.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, -2)
711
				game.Debris:AddItem(p,3)
712
				local explosion = Instance.new("Sound", Character)
713
				explosion.Name="explosion"
714
				explosion.SoundId = "rbxassetid://2248511"
715
				explosion:Play()
716
				game.Debris:AddItem(explosion, 10)
717
				local explo = Instance.new("Explosion", workspace)
718
				explo.BlastPressure = math.huge
719
				explo.BlastRadius= math.huge
720
				explo.Position=p.Position
721
			end
722
			wait(0.5)
723
			Active = false
724
			RefreshWelds()
725
			Torso.Anchored=false
726
			Humanoid.PlatformStand=false
727
		end
728
	end
729
end)
730
731
732
			local time = tick()
733
734
			local plr = game:GetService("Players").LocalPlayer
735
			local mouse,char = plr:GetMouse(),plr.Character
736
737
			local amountGhosts = 5
738
739
			for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
740
741
			local toggle,cd,mcd = false,false,false
742
			local ghosts = {}
743
			local temptab = {}
744
745
			char:WaitForChild("Animate"):Destroy()
746
			char.Humanoid:WaitForChild("Animator"):Destroy()
747
748
			local state = "idle"
749
750
			local gt = false
751
752
			local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
753
			gyro.MaxTorque = Vector3.new(0,0,0)
754
			gyro.D = 0
755
			gyro.P = 100000000
756
757
758
			local wCol = BrickColor.new("Really red")
759
			local wCol2 = BrickColor.new("Really black")
760
			local gCol = BrickColor.new("Toothpaste")
761
			local gCol2 = BrickColor.new("Institutional white")
762
763
			function searchAll(m,clear)
764
				if clear then
765
					if clear == true then
766
						for i,v in pairs(temptab) do
767
							table.remove(temptab,1)
768
						end
769
					end
770
				end
771
				for i,v in pairs(m:GetChildren()) do
772
					if v then
773
						local s = v:Clone()
774
						for _,b in pairs(s:GetChildren()) do
775
							b:Destroy()
776
						end
777
						if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
778
							if s.Name ~= "HumanoidRootPart" then
779
								s.Anchored = true
780
								s.CanCollide = false
781
								s.Transparency = 0.95
782
								s.TopSurface = "Smooth"
783
								s.BottomSurface = "Smooth"
784
								s.FrontSurface = "Smooth"
785
								s.RightSurface = "Smooth"
786
								s.BackSurface = "Smooth"
787
								s.LeftSurface = "Smooth"
788
								if s.Material ~= Enum.Material.Neon then
789
									if gt == true then
790
										s.BrickColor = wCol2
791
									else
792
										s.BrickColor = gCol2
793
									end
794
								else
795
									if gt == true then
796
										s.BrickColor = wCol
797
									else
798
										s.BrickColor = gCol
799
									end
800
								end
801
								for _,c in pairs(v:GetChildren()) do
802
									if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
803
										c:Clone().Parent = s
804
									end
805
								end
806
								local objValue = Instance.new("ObjectValue",s)
807
								objValue.Name = "Target"
808
								objValue.Value = v
809
								table.insert(temptab,s)
810
							end
811
						--elseif s:IsA("CharacterMesh") then
812
							--table.insert(temptab,s)
813
						end
814
						--searchAll(v)
815
					end
816
				end
817
				return temptab
818
			end
819
820
			function CreateGhost()
821
				local ghost = Instance.new("Model",game.Workspace)
822
				searchAll(char,true)
823
				ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
824
				--Instance.new("Humanoid",ghost)
825
				for i,v in pairs(temptab) do
826
					v:Clone().Parent = ghost
827
				end
828
				table.insert(ghosts,ghost)
829
			end
830
831
			function ClearGhosts()
832
				for i,v in pairs(ghosts) do
833
					v:Destroy()
834
				end
835
				for i,v in pairs(ghosts) do
836
					table.remove(ghosts,1)
837
				end
838
				for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
839
					if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
840
						v:Destroy()
841
					end
842
				end
843
			end
844
845
			Instance.new("ForceField",char).Visible = false
846
847
			local e1 = Instance.new("Part",char)
848
			e1.Size = Vector3.new(0.2,0.2,0.2)
849
			e1.TopSurface = "Smooth"
850
			e1.BottomSurface = "Smooth"
851
			e1.Material = "Neon"
852
			e1.Transparency = 1
853
			e1.Anchored = true
854
			e1.CanCollide = false
855
			e1.BrickColor = gCol
856
			e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
857
			local em1 = Instance.new("SpecialMesh",e1)
858
			em1.MeshType = "Sphere"
859
			local e2 = Instance.new("Part",char)
860
			e2.Size = Vector3.new(0.2,0.2,0.2)
861
			e2.TopSurface = "Smooth"
862
			e2.BottomSurface = "Smooth"
863
			e2.Transparency = 1
864
			e2.Material = "Neon"
865
			e2.Anchored = true
866
			e2.CanCollide = false
867
			e2.BrickColor = gCol
868
			e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
869
			local em2 = Instance.new("SpecialMesh",e2)
870
			em2.MeshType = "Sphere"
871
872
			toggle = true
873
			for i=1,amountGhosts do
874
				CreateGhost()
875
			end
876
			char.Parent = game:GetService("Workspace").CurrentCamera
877
			char:FindFirstChild("Head").Transparency = 1
878
			char:FindFirstChild("Torso").Transparency = 1
879
			char:FindFirstChild("Right Arm").Transparency = 1
880
			char:FindFirstChild("Left Arm").Transparency = 1
881
			char:FindFirstChild("Right Leg").Transparency = 1
882
			char:FindFirstChild("Left Leg").Transparency = 1
883
			for i,v in pairs(char:GetChildren()) do
884
				if v:IsA("Accessory") then
885
					v:FindFirstChild("Handle").Transparency = 1
886
				end
887
			end
888
			char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
889
890
			local p1 = Instance.new("Part",workspace)
891
			local m1 = Instance.new("SpecialMesh",p1)
892
			m1.MeshType = "Sphere"
893
			m1.Scale = Vector3.new(5,5,5)
894
			p1.Size = Vector3.new(1,1,1)
895
			p1.Anchored = true
896
			p1.CanCollide = false
897
			p1.TopSurface = "Smooth"
898
			p1.BottomSurface = "Smooth"
899
			p1.BrickColor = gCol
900
			p1.Material = "Neon"
901
			local p2 = Instance.new("Part",workspace)
902
			local m2 = Instance.new("SpecialMesh",p2)
903
			m2.MeshType = "Sphere"
904
			m2.Scale = Vector3.new(8,8,8)
905
			p2.Size = Vector3.new(1,1,1)
906
			p2.Anchored = true
907
			p2.CanCollide = false
908
			p2.TopSurface = "Smooth"
909
			p2.BottomSurface = "Smooth"
910
			p2.BrickColor = gCol2
911
			p2.Material = "Neon"
912
			local p3 = Instance.new("Part",workspace)
913
			local m3 = Instance.new("BlockMesh",p3)
914
			m3.Scale = Vector3.new(7,7,7)
915
			p3.Size = Vector3.new(1,1,1)
916
			p3.Transparency = 0.4
917
			p3.Anchored = true
918
			p3.CanCollide = false
919
			p3.TopSurface = "Smooth"
920
			p3.BottomSurface = "Smooth"
921
			p3.BrickColor = gCol
922
			p3.Material = "Neon"
923
			local p4 = Instance.new("Part",workspace)
924
			local m4 = Instance.new("BlockMesh",p4)
925
			m4.Scale = Vector3.new(10,10,10)
926
			p4.Size = Vector3.new(1,1,1)
927
			p4.Transparency = 0.4
928
			p4.Anchored = true
929
			p4.CanCollide = false
930
			p4.TopSurface = "Smooth"
931
			p4.BottomSurface = "Smooth"
932
			p4.BrickColor = gCol2
933
			p4.Material = "Neon"
934
			local currentframe = 0
935
			local frmR
936
937
			frmR = game:GetService("RunService").RenderStepped:connect(function()
938
				currentframe = currentframe + 1
939
				if currentframe < 1*60 then
940
					p1.CFrame = char:WaitForChild("Torso").CFrame
941
					p2.CFrame = char:WaitForChild("Torso").CFrame
942
					p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
943
					p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
944
					m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
945
					m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
946
					m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
947
					m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
948
					p1.Transparency = p1.Transparency + (1/(1*60))
949
					p2.Transparency = p2.Transparency + (1/(1*60))
950
					p3.Transparency = p3.Transparency + (1/(1*60))
951
					p4.Transparency = p4.Transparency + (1/(1*60))
952
				else
953
					p1:Destroy()
954
					p2:Destroy()
955
					p3:Destroy()
956
					p4:Destroy()
957
					frmR:disconnect()
958
				end
959
			end)
960
961
			char.Humanoid.MaxHealth = math.huge
962
			wait()
963
			char.Humanoid.Health = math.huge
964
965
			--[[mouse.KeyDown:connect(function(key)
966
				if key == "r" then
967
					print("R!")
968
					if cd == false then
969
						print("No cooldown!")
970
						cd = true
971
						if toggle == false then
972
							print("Entering godmode")
973
							toggle = true
974
							Instance.new("ForceField",char)
975
							for i=1,amountGhosts do
976
								CreateGhost()
977
							end
978
							char.Parent = game:GetService("Workspace").CurrentCamera
979
							char:FindFirstChild("Head").Transparency = 1
980
							char:FindFirstChild("Torso").Transparency = 1
981
							char:FindFirstChild("Right Arm").Transparency = 1
982
							char:FindFirstChild("Left Arm").Transparency = 1
983
							char:FindFirstChild("Right Leg").Transparency = 1
984
							char:FindFirstChild("Left Leg").Transparency = 1
985
							for i,v in pairs(char:GetChildren()) do
986
								if v:IsA("Accessory") then
987
									v:FindFirstChild("Handle").Transparency = 1
988
								end
989
							end
990
						else
991
							print("Exiting godmode")
992
							toggle = false
993
							for i,v in pairs(ghosts) do
994
								v:Destroy()
995
							end
996
							char.Parent = game:GetService("Workspace")
997
							char:FindFirstChild("ForceField"):Destroy()
998
							char:FindFirstChild("Head").Transparency = 0
999
							char:FindFirstChild("Torso").Transparency = 0
1000
							char:FindFirstChild("Right Arm").Transparency = 0
1001
							char:FindFirstChild("Left Arm").Transparency = 0
1002
							char:FindFirstChild("Right Leg").Transparency = 0
1003
							char:FindFirstChild("Left Leg").Transparency = 0
1004
							for i,v in pairs(char:GetChildren()) do
1005
								if v:IsA("Accessory") then
1006
									v:FindFirstChild("Handle").Transparency = 0
1007
								end
1008
							end
1009
						end
1010
						cd = false
1011
					end
1012
				end
1013
			end)]]
1014
1015
			mouse.KeyDown:connect(function(key)
1016
				spawn(function()
1017
					if key == "f" and toggle == true and mcd == false then
1018
						if #ghosts < amountGhosts then
1019
							print(#ghosts.."<")
1020
							mcd = true
1021
1022
							ClearGhosts()
1023
1024
							for i=1,amountGhosts do
1025
								CreateGhost()
1026
							end
1027
							local p1 = Instance.new("Part",workspace)
1028
							local m1 = Instance.new("SpecialMesh",p1)
1029
							m1.MeshType = "Sphere"
1030
							m1.Scale = Vector3.new(7,7,7)
1031
							p1.Size = Vector3.new(1,1,1)
1032
							p1.Anchored = true
1033
							p1.CanCollide = false
1034
							p1.TopSurface = "Smooth"
1035
							p1.BottomSurface = "Smooth"
1036
							if gt == false then
1037
								p1.BrickColor = gCol
1038
							else
1039
								p1.BrickColor = wCol
1040
							end
1041
							p1.Material = "Neon"
1042
							local p2 = Instance.new("Part",workspace)
1043
							local m2 = Instance.new("SpecialMesh",p2)
1044
							m2.MeshType = "Sphere"
1045
							m2.Scale = Vector3.new(9,9,9)
1046
							p2.Size = Vector3.new(1,1,1)
1047
							p2.Anchored = true
1048
							p2.CanCollide = false
1049
							p2.TopSurface = "Smooth"
1050
							p2.BottomSurface = "Smooth"
1051
							if gt == false then
1052
								p2.BrickColor = gCol2
1053
							else
1054
								p2.BrickColor = wCol2
1055
							end
1056
							p2.Material = "Neon"
1057
							local currentframe = 0
1058
							local frmR
1059
1060
							frmR = game:GetService("RunService").RenderStepped:connect(function()
1061
								currentframe = currentframe + 1
1062
								if currentframe < 0.25*60 then
1063
									p1.CFrame = char:WaitForChild("Torso").CFrame
1064
									p2.CFrame = char:WaitForChild("Torso").CFrame
1065
									p1.Transparency = p1.Transparency + (1/(0.25*60))
1066
									p2.Transparency = p2.Transparency + (1/(0.25*60))
1067
								else
1068
									p1:Destroy()
1069
									p2:Destroy()
1070
									mcd = false
1071
									frmR:disconnect()
1072
								end
1073
							end)
1074
						else
1075
							mcd = true
1076
1077
							ClearGhosts()
1078
1079
							local p1 = Instance.new("Part",workspace)
1080
							local m1 = Instance.new("SpecialMesh",p1)
1081
							m1.MeshType = "Sphere"
1082
							m1.Scale = Vector3.new(7,7,7)
1083
							p1.Size = Vector3.new(1,1,1)
1084
							p1.Anchored = true
1085
							p1.CanCollide = false
1086
							p1.TopSurface = "Smooth"
1087
							p1.BottomSurface = "Smooth"
1088
							if gt == false then
1089
								p1.BrickColor = gCol
1090
							else
1091
								p1.BrickColor = wCol
1092
							end
1093
							p1.Material = "Neon"
1094
							local p2 = Instance.new("Part",workspace)
1095
							local m2 = Instance.new("SpecialMesh",p2)
1096
							m2.MeshType = "Sphere"
1097
							m2.Scale = Vector3.new(9,9,9)
1098
							p2.Size = Vector3.new(1,1,1)
1099
							p2.Anchored = true
1100
							p2.CanCollide = false
1101
							p2.TopSurface = "Smooth"
1102
							p2.BottomSurface = "Smooth"
1103
							if gt == false then
1104
								p2.BrickColor = gCol2
1105
							else
1106
								p2.BrickColor = wCol2
1107
							end
1108
							p2.Material = "Neon"
1109
							local currentframe = 0
1110
							local frmR
1111
1112
							frmR = game:GetService("RunService").RenderStepped:connect(function()
1113
								currentframe = currentframe + 1
1114
								if currentframe < 0.25*60 then
1115
									p1.CFrame = char:WaitForChild("Torso").CFrame
1116
									p2.CFrame = char:WaitForChild("Torso").CFrame
1117
									p1.Transparency = p1.Transparency + (1/(0.25*60))
1118
									p2.Transparency = p2.Transparency + (1/(0.25*60))
1119
								else
1120
									p1:Destroy()
1121
									p2:Destroy()
1122
									mcd = false
1123
									frmR:disconnect()
1124
								end
1125
							end)
1126
						end
1127
					elseif key == "g" and toggle == true and mcd == false then
1128
						if gt == true then
1129
							gt = false
1130
							local p1 = Instance.new("Part",workspace)
1131
							local m1 = Instance.new("SpecialMesh",p1)
1132
							m1.MeshType = "Sphere"
1133
							m1.Scale = Vector3.new(5,5,5)
1134
							p1.Size = Vector3.new(1,1,1)
1135
							p1.Anchored = true
1136
							p1.CanCollide = false
1137
							p1.TopSurface = "Smooth"
1138
							p1.BottomSurface = "Smooth"
1139
							p1.BrickColor = gCol
1140
							p1.Material = "Neon"
1141
							local p2 = Instance.new("Part",workspace)
1142
							local m2 = Instance.new("SpecialMesh",p2)
1143
							m2.MeshType = "Sphere"
1144
							m2.Scale = Vector3.new(8,8,8)
1145
							p2.Size = Vector3.new(1,1,1)
1146
							p2.Anchored = true
1147
							p2.CanCollide = false
1148
							p2.TopSurface = "Smooth"
1149
							p2.BottomSurface = "Smooth"
1150
							p2.BrickColor = gCol2
1151
							p2.Material = "Neon"
1152
							local p3 = Instance.new("Part",workspace)
1153
							local m3 = Instance.new("BlockMesh",p3)
1154
							m3.Scale = Vector3.new(7,7,7)
1155
							p3.Size = Vector3.new(1,1,1)
1156
							p3.Transparency = 0.4
1157
							p3.Anchored = true
1158
							p3.CanCollide = false
1159
							p3.TopSurface = "Smooth"
1160
							p3.BottomSurface = "Smooth"
1161
							p3.BrickColor = gCol
1162
							p3.Material = "Neon"
1163
							local p4 = Instance.new("Part",workspace)
1164
							local m4 = Instance.new("BlockMesh",p4)
1165
							m4.Scale = Vector3.new(10,10,10)
1166
							p4.Size = Vector3.new(1,1,1)
1167
							p4.Transparency = 0.4
1168
							p4.Anchored = true
1169
							p4.CanCollide = false
1170
							p4.TopSurface = "Smooth"
1171
							p4.BottomSurface = "Smooth"
1172
							p4.BrickColor = gCol2
1173
							p4.Material = "Neon"
1174
1175
							ClearGhosts()
1176
1177
							for i=1,amountGhosts do
1178
								CreateGhost()
1179
							end
1180
1181
							local currentframe = 0
1182
							local frmR
1183
1184
							frmR = game:GetService("RunService").RenderStepped:connect(function()
1185
								currentframe = currentframe + 1
1186
								if currentframe < 1*60 then
1187
									p1.CFrame = char:WaitForChild("Torso").CFrame
1188
									p2.CFrame = char:WaitForChild("Torso").CFrame
1189
									p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1190
									p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1191
									m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
1192
									m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
1193
									m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
1194
									m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
1195
									p1.Transparency = p1.Transparency + (1/(1*60))
1196
									p2.Transparency = p2.Transparency + (1/(1*60))
1197
									p3.Transparency = p3.Transparency + (1/(1*60))
1198
									p4.Transparency = p4.Transparency + (1/(1*60))
1199
								else
1200
									p1:Destroy()
1201
									p2:Destroy()
1202
									p3:Destroy()
1203
									p4:Destroy()
1204
									frmR:disconnect()
1205
								end
1206
							end)
1207
						else
1208
							gt = true
1209
							local p1 = Instance.new("Part",workspace)
1210
							local m1 = Instance.new("SpecialMesh",p1)
1211
							m1.MeshType = "Sphere"
1212
							m1.Scale = Vector3.new(5,5,5)
1213
							p1.Size = Vector3.new(1,1,1)
1214
							p1.Anchored = true
1215
							p1.CanCollide = false
1216
							p1.TopSurface = "Smooth"
1217
							p1.BottomSurface = "Smooth"
1218
							p1.BrickColor = wCol
1219
							p1.Material = "Neon"
1220
							local p2 = Instance.new("Part",workspace)
1221
							local m2 = Instance.new("SpecialMesh",p2)
1222
							m2.MeshType = "Sphere"
1223
							m2.Scale = Vector3.new(8,8,8)
1224
							p2.Size = Vector3.new(1,1,1)
1225
							p2.Anchored = true
1226
							p2.CanCollide = false
1227
							p2.TopSurface = "Smooth"
1228
							p2.BottomSurface = "Smooth"
1229
							p2.BrickColor = wCol2
1230
							p2.Material = "Neon"
1231
							local p3 = Instance.new("Part",workspace)
1232
							local m3 = Instance.new("BlockMesh",p3)
1233
							m3.Scale = Vector3.new(7,7,7)
1234
							p3.Size = Vector3.new(1,1,1)
1235
							p3.Transparency = 0.4
1236
							p3.Anchored = true
1237
							p3.CanCollide = false
1238
							p3.TopSurface = "Smooth"
1239
							p3.BottomSurface = "Smooth"
1240
							p3.BrickColor = wCol
1241
							p3.Material = "Neon"
1242
							local p4 = Instance.new("Part",workspace)
1243
							local m4 = Instance.new("BlockMesh",p4)
1244
							m4.Scale = Vector3.new(10,10,10)
1245
							p4.Size = Vector3.new(1,1,1)
1246
							p4.Transparency = 0.4
1247
							p4.Anchored = true
1248
							p4.CanCollide = false
1249
							p4.TopSurface = "Smooth"
1250
							p4.BottomSurface = "Smooth"
1251
							p4.BrickColor = wCol2
1252
							p4.Material = "Neon"
1253
1254
							ClearGhosts()
1255
1256
							for i=1,amountGhosts do
1257
								CreateGhost()
1258
							end
1259
1260
							local currentframe = 0
1261
							local frmR
1262
1263
							frmR = game:GetService("RunService").RenderStepped:connect(function()
1264
								currentframe = currentframe + 1
1265
								if currentframe < 1*60 then
1266
									p1.CFrame = char:WaitForChild("Torso").CFrame
1267
									p2.CFrame = char:WaitForChild("Torso").CFrame
1268
									p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1269
									p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1270
									m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
1271
									m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
1272
									m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
1273
									m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
1274
									p1.Transparency = p1.Transparency + (1/(1*60))
1275
									p2.Transparency = p2.Transparency + (1/(1*60))
1276
									p3.Transparency = p3.Transparency + (1/(1*60))
1277
									p4.Transparency = p4.Transparency + (1/(1*60))
1278
								else
1279
									p1:Destroy()
1280
									p2:Destroy()
1281
									p3:Destroy()
1282
									p4:Destroy()
1283
									frmR:disconnect()
1284
								end
1285
							end)
1286
						end
1287
					end
1288
				end)
1289
			end)
1290
1291
			local frm = 0
1292
1293
			local toRemove = {}
1294
1295
			game:GetService("RunService").RenderStepped:connect(function()
1296
				frm = frm + 1
1297
				if char.Parent == game:GetService("Workspace").CurrentCamera then
1298
					
1299
					e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
1300
					e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
1301
1302
					local delay = 0.9
1303
1304
					for i,v in pairs(ghosts) do
1305
						for _,b in pairs(v:GetChildren()) do
1306
							if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
1307
								b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
1308
							end
1309
						end
1310
						delay = delay - (0.5/(#ghosts+1))
1311
					end
1312
1313
					--[[if math.floor(frm/8) == frm/8 then
1314
						local isub = 0
1315
						for i,v in pairs(ghosts) do
1316
							if #v:GetChildren() < 6 then
1317
								v:Destroy()
1318
								table.remove(ghosts,i - isub)
1319
								isub = isub + 1
1320
								CreateGhost()
1321
							end
1322
						end
1323
					end]]
1324
				end
1325
1326
				--Animation states
1327
1328
				local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
1329
				local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
1330
1331
				if state ~= "busy" then
1332
					if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
1333
						state = "idle"
1334
					elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
1335
						state = "running"
1336
					--[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
1337
						state = "falling"
1338
					elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
1339
						state = "jumping"]]
1340
					end
1341
					char.Humanoid.WalkSpeed = 32
1342
					char.Humanoid.JumpPower = 70
1343
				end
1344
1345
				--Actual animations
1346
1347
				if state == "idle" then
1348
					char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
1349
					char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
1350
					char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
1351
					char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
1352
					char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
1353
					char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
1354
				elseif state == "running" then
1355
					char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
1356
					char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
1357
					char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
1358
					char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
1359
					char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
1360
					char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
1361
				end
1362
			end)
1363
1364
			char.Humanoid.Died:connect(function()
1365
				toggle = false
1366
1367
				ClearGhosts()
1368
1369
				char.Parent = game.Workspace
1370
				char.Parent = game:GetService("Workspace")
1371
				char:FindFirstChild("ForceField"):Destroy()
1372
				char:FindFirstChild("Head").Transparency = 0
1373
				char:FindFirstChild("Torso").Transparency = 0
1374
				char:FindFirstChild("Right Arm").Transparency = 0
1375
				char:FindFirstChild("Left Arm").Transparency = 0
1376
				char:FindFirstChild("Right Leg").Transparency = 0
1377
				char:FindFirstChild("Left Leg").Transparency = 0
1378
				for i,v in pairs(char:GetChildren()) do
1379
					if v:IsA("Accessory") then
1380
						v:FindFirstChild("Handle").Transparency = 0
1381
					end
1382
				end
1383
				for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
1384
				plr:LoadCharacter()
1385
			end)
1386
1387
			local msgidGlob = 0
1388
			local state = true
1389
			local font = "Arcade"
1390
			local tcol = Color3.fromRGB(255,217,0)
1391
			local tscol = Color3.fromRGB(0,0,0)
1392
			local fsiz = 28
1393
			local tr = true
1394
			local tsr = false
1395
			local fade = 2
1396
1397
			local p = Instance.new("Part",game.Workspace)
1398
			p.Size = Vector3.new(0.2,0.2,0.2)
1399
			p.Transparency = 1
1400
			p.Anchored = true
1401
			p.CanCollide = false
1402
			p.Name = "Msg"
1403
			p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
1404
1405
			local r = 255
1406
			local b = 0
1407
			local g = 0
1408
1409
			plr.Chatted:connect(function(c)
1410
				msgidGlob = msgidGlob + 1
1411
				local curMsgId = msgidGlob
1412
				if string.lower(c) == "!disable" then
1413
					state = false
1414
				elseif string.lower(c) == "!enable" then
1415
					state = true
1416
				elseif string.lower(string.sub(c,1,6)) == "!font " then
1417
					local old = font
1418
					font = string.sub(c,7,#c) or old
1419
				elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
1420
					if string.lower(string.sub(c,9,#c)) == "rainbow" then
1421
						tr = true
1422
					else
1423
						tr = false
1424
						local old = tcol
1425
						tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
1426
					end
1427
				elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
1428
					if string.sub(c,10,#c) == "rainbow" then
1429
						tsr = true
1430
					else
1431
						tsr = false
1432
						local old = tscol
1433
						tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
1434
					end
1435
				elseif string.lower(string.sub(c,1,6)) == "!size " then
1436
					local old = fsiz
1437
					fsiz = string.sub(c,7,#c) or old
1438
				elseif string.lower(string.sub(c,1,6)) == "!fade " then
1439
					local old = fade
1440
					fade = string.sub(c,7,#c) or old
1441
				end
1442
				if plr.Character and state == true then
1443
					if plr.Character:FindFirstChild("Head") then
1444
						for i,v in pairs(p:GetChildren()) do
1445
							if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
1446
								v:Destroy()
1447
							end
1448
						end
1449
						local bbgui = Instance.new("BillboardGui",p)
1450
						bbgui.Name = "J2CMSG"
1451
						bbgui.AlwaysOnTop = true
1452
						bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
1453
						bbgui.Size = UDim2.new(0.2,0,0.14,0)
1454
						local tl = Instance.new("TextLabel",bbgui)
1455
						tl.BackgroundTransparency = 1
1456
						tl.BorderSizePixel = 0
1457
						tl.Size = UDim2.new(1,0,10,0)
1458
						tl.Position = UDim2.new(0,0,-5,0)
1459
						tl.Font = font or "SciFi"
1460
						tl.FontSize = "Size"..fsiz or "Size36"
1461
						tl.TextColor3 = tcol
1462
						tl.TextScaled = false
1463
						tl.TextWrapped = false
1464
						tl.TextStrokeColor3 = tscol
1465
						tl.TextStrokeTransparency = 0
1466
						
1467
						game:GetService("RunService").RenderStepped:connect(function()
1468
							if tr then
1469
								if tl.Parent ~= nil then
1470
									tl.TextColor3 = Color3.fromRGB(r,g,b)
1471
								end
1472
							end
1473
						end)
1474
1475
						for i=1,#c do
1476
							if msgidGlob == curMsgId then
1477
								tl.Text = string.sub(c,1,i)
1478
								if string.sub(c,i,i) ~= " " then
1479
									local s = Instance.new("Sound",p)
1480
									s.SoundId = "rbxassetid://418252437"
1481
									s.Volume = 1
1482
									s.Pitch = 1
1483
									s:Play()
1484
									game.Debris:AddItem(s,2)
1485
								end
1486
								wait()
1487
							end
1488
						end
1489
						wait(fade)
1490
						if msgidGlob == curMsgId then
1491
							for i=1,10 do
1492
								if msgidGlob == curMsgId then
1493
									tl.TextTransparency = tl.TextTransparency + 0.1
1494
									tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
1495
									tl.Position = tl.Position + UDim2.new(0,0,0,-3)
1496
									wait()
1497
								end
1498
							end
1499
							if msgidGlob == curMsgId then
1500
								bbgui:Destroy()
1501
							end
1502
						end
1503
					end
1504
				end
1505
			end)
1506
1507
			coroutine.resume(coroutine.create(function()
1508
				while wait() do
1509
					for i=0,255,10 do g = i wait() end
1510
					for i=255,0,-10 do r = i wait() end
1511
					for i=0,255,10 do b = i wait() end
1512
					for i=255,0,-10 do g = i wait() end
1513
					for i=0,255,10 do r = i wait() end
1514
					for i=255,0,-10 do b = i wait() end
1515
				end
1516
			end))
1517
1518
			game:GetService("RunService").RenderStepped:connect(function()
1519
				if p.Parent ~= nil then
1520
					p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
1521
				else
1522
					p = Instance.new("Part",game.Workspace)
1523
					p.Size = Vector3.new(0.2,0.2,0.2)
1524
					p.Transparency = 1
1525
					p.Anchored = true
1526
					p.CanCollide = false
1527
					p.Name = "Msg"
1528
					p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
1529
				end
1530
			end)
1531
1532
			print("Ghost loaded! Time elapsed: "..tick() - time)