View difference between Paste ID: JSVdjUw7 and W4CSBN2b
SHOW: | | - or go back to the newest paste.
1-
for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
1+
for i, v in pairs(game.Players.ghostpunser202.Character:GetChildren()) do
2
	if v:IsA("BasePart") then
3
		Instance.new("Fire", v)
4
		v.BrickColor = BrickColor.new("Really black")
5
		v.Material = Enum.Material.Granite
6
	end
7
end
8
local Heads = {}
9
local hells = Instance.new("Sound", workspace)
10
hells.Looped = true
11
hells.Volume = 10
12
local TS = game:GetService("TweenService")
13-
local Mouse = game.Players.LocalPlayer:GetMouse()
13+
local Shoot = Instance.new("Tool", game.Players.ghostpunser202.Backpack)
14-
local Shoot = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
14+
15
local FireEnabled = false
16
hells.SoundId = "rbxassetid://718185960"
17
hells.TimePosition = 10
18
hells.Playing = true
19
Instance.new("ColorCorrectionEffect", game.Lighting).TintColor = Color3.new(1,0,0)
20
Instance.new("PointLight", game.Players.ghostpunser202.Character.Torso).Brightness = 234234
21-
Instance.new("PointLight", game.Players.LocalPlayer.Character.Torso).Brightness = 234234
21+
22
x.Intensity = 1
23
x.Threshold = 0.8
24
x.Size = 56
25
26
function CreateRay(Point_A, Point_B)
27
	local Ray = Ray.new(Point_A, (Point_B - Point_A).Unit * (2 ^ 31 - 1))
28
	local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.ghostpunser202.Character)
29-
	local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
29+
30
	local CFrame = CFrame.new(Point_A, Pos) * CFrame.new(0, 0, -Dist / 2)
31
	
32
	return CFrame, Dist, Part
33
end
34
35
game.Lighting.Brightness = 0
36
game.Lighting.GlobalShadows = false
37
game.Players.ghostpunser202.Character.Shirt:Remove()
38-
game.Players.LocalPlayer.Character.Shirt:Remove()
38+
game.Players.ghostpunser202.Character.Pants:Remove()
39-
game.Players.LocalPlayer.Character.Pants:Remove()
39+
local player = game:GetService("Players").ghostpunser202
40-
local player = game:GetService("Players").LocalPlayer
40+
41
  wait()
42
until player.Character
43
local char = player.Character
44
local torso = char:WaitForChild("Torso")
45
local mouse = player:GetMouse()
46
local color = BrickColor.new("Really black")
47
local material = "Neon"
48
local trans = 0.5
49
local debounce = false
50
for u,c in pairs(player.Character:GetChildren()) do
51
  if c.className == "Hat" and c.Name ~= "Hybrid Goggles" then
52
    c.Handle.BrickColor = BrickColor.new("Really black")
53
    c.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=0"
54
  end
55
end
56
blast = function()
57
  
58
  local b = Instance.new("Part", workspace)
59
  game.Debris:AddItem(b, 2)
60
  b.Size = Vector3.new(5, 5, 5)
61
  b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
62
  b.TopSurface = "Smooth"
63
  b.BottomSurface = "Smooth"
64
  b.CanCollide = false
65
  b.BrickColor = color
66
  b.Transparency = trans
67
  b.Material = material
68
  local v = Instance.new("BodyVelocity", b)
69
  v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
70
  v.Velocity = torso.CFrame.lookVector * 50
71
  r = Instance.new("BodyAngularVelocity", b)
72
  r.AngularVelocity = Vector3.new(25, 25, 25)
73
  b.Touched:connect(function(hit)
74
    
75
    p = hit.Parent
76
    if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
77
      b:Remove()
78
      p.Humanoid:TakeDamage(35)
79
    end
80
  end)
81
end
82
83
death = function()
84
  
85
  local b = Instance.new("Part", workspace)
86
  game.Debris:AddItem(b, 2)
87
  b.Size = Vector3.new(5, 5, 5)
88
  b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
89
  b.TopSurface = "Smooth"
90
  b.BottomSurface = "Smooth"
91
  b.CanCollide = false
92
  b.BrickColor = color
93
  b.Transparency = trans
94
  b.Material = material
95
  local v = Instance.new("BodyVelocity", b)
96
  v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
97
  v.Velocity = torso.CFrame.lookVector * 50
98
  r = Instance.new("BodyAngularVelocity", b)
99
  r.AngularVelocity = Vector3.new(25, 25, 25)
100
  b.Touched:connect(function(hit)
101
    
102
    p = hit
103
    if p and p.Name ~= "Base" and p.Name ~= player.Name then
104
      p:Remove()
105
    end
106
  end
107
)
108
end
109
110
wall = function()
111
  
112
  local b = Instance.new("Part", workspace)
113
  game.Debris:AddItem(b, 5)
114
  b.Size = Vector3.new(1, 1, 1)
115
  b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
116
  b.TopSurface = "Smooth"
117
  b.BottomSurface = "Smooth"
118
  b.CanCollide = false
119
  b.Anchored = true
120
  b.BrickColor = color
121
  b.Transparency = trans
122
  b.Material = material
123
  for i = 1, 50 do
124
    wait()
125
    b.CFrame = torso.CFrame * CFrame.new(0, 0, -5)
126
    b.Size = b.Size + Vector3.new(0.5, 0.5, 0)
127
  end
128
  b.CanCollide = true
129
  b.Touched:connect(function(hit)
130
    
131
    p = hit.Parent
132
    if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
133
      p.Humanoid:TakeDamage(5)
134
    end
135
  end
136
)
137
end
138
139
fade = function()
140
  
141
  for i,v in pairs(char:GetChildren()) do
142
    if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
143
      v.Transparency = 0.5
144
    end
145
  end
146
  for i,v in pairs(char:GetChildren()) do
147
    if v.className == "Hat" then
148
      v.Handle.Transparency = 0.5
149
    end
150
  end
151
end
152
153
unfade = function()
154
  
155
  for i,v in pairs(char:GetChildren()) do
156
    if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
157
      v.Transparency = 0
158
    end
159
  end
160
  for i,v in pairs(char:GetChildren()) do
161
    if v.className == "Hat" then
162
      v.Handle.Transparency = 0
163
    end
164
  end
165
end
166
167
dash = function(x)
168
  
169
  b = Instance.new("Part", workspace)
170
  game.Debris:AddItem(b, 0.7)
171
  b.Size = Vector3.new(3, 3, 3)
172
  b.BrickColor = color
173
  b.Material = material
174
  b.CanCollide = false
175
  b.CFrame = torso.CFrame * x
176
  t = Instance.new("BodyVelocity", b)
177
  r = Instance.new("BodyAngularVelocity", b)
178
  r.AngularVelocity = Vector3.new(15, 15, 15)
179
  for i = 1, 5 do
180
    wait()
181
    b.Transparency = b.Transparency + 0.1
182
    torso.CFrame = torso.CFrame * CFrame.new(0, 0, -1)
183
  end
184
end
185
186
mouse.KeyDown:connect(function(key)
187
  
188
  if key == "v" then
189
    holding = true
190
    fade()
191
    while holding and wait(0.01) do
192
      dash(CFrame.new(2, 1, 0))
193
      dash(CFrame.new(-2, -1, 1))
194
      dash(CFrame.new(0, 1, 3))
195
    end
196
  end
197
end
198
)
199
mouse.KeyUp:connect(function(key)
200
  
201
  if key == "v" then
202
    unfade()
203
    holding = false
204
  end
205
end
206
)
207
mouse.KeyDown:connect(function(key)
208
  
209
  if key == "e" and debounce == false then
210
    debounce = true
211
    blast()
212
    wait(0.5)
213
    debounce = false
214
  end
215
end
216
)
217
mouse.KeyDown:connect(function(key)
218
  
219
  if key == "q" and debounce == false then
220
    debounce = true
221
    wall()
222
    wait(0.5)
223
    debounce = false
224
  end
225
end
226
)
227
mouse.KeyDown:connect(function(key)
228
  
229
  if key == "t" and debounce == false then
230
    debounce = true
231
    death()
232
    wait(0.5)
233
    debounce = false
234
  end
235
end
236
)
237
238
local player = game.Players.ghostpunser202 
239-
local player = game.Players.LocalPlayer 
239+
240
local rs = game:GetService("RunService").Stepped 
241-
local rs = game:GetService("RunService").RenderStepped 
241+
242
local HRP = char.HumanoidRootPart 
243
local Head = char.Head 
244
local tents = {} 
245
function getValue(p, x) 
246
        return p[2] + 0.5 * x*(p[3] - p[1] + x*(2.0*p[1] - 5.0*p[2] + 4.0*p[3] - p[4] + x*(3.0*(p[2] - p[3]) + p[4] - p[1]))) 
247
end 
248
function getV3Cubic(tabl,perc) 
249
        local x,y,z = {},{},{} 
250
        if perc >= 2 then 
251
                perc = perc %1 
252
                for i = 3, 6 do 
253
                        table.insert(x,tabl[i].x) 
254
                        table.insert(y,tabl[i].y) 
255
                        table.insert(z,tabl[i].z) 
256
                end 
257
        elseif perc >= 1 then 
258
                perc = perc %1 
259
                for i = 2, 5 do 
260
                        table.insert(x,tabl[i].x) 
261
                        table.insert(y,tabl[i].y) 
262
                        table.insert(z,tabl[i].z) 
263
                end 
264
        else 
265
                for i = 1, 4 do 
266
                        table.insert(x,tabl[i].x) 
267
                        table.insert(y,tabl[i].y) 
268
                        table.insert(z,tabl[i].z) 
269
                end 
270
        end 
271
        local X,Y,Z = getValue(x,perc),getValue(y,perc),getValue(z,perc) 
272
        return Vector3.new(X,Y,Z) 
273
end 
274
local rainbow = {"Really red","Really red","Really red","Really red","Really red","Really red","Really red","Really red","Really red"}
275
local rainbowCount = 1 
276
local isRainbow = true 
277
for i = 0, 8 do 
278
        local m = Instance.new("Model",char) 
279
        m.Name = "Tentac00l" 
280
        local parts = {} 
281
       local lastpart = Head
282
        local defC0 
283
        rainbowCount = 1 
284
        for j = 0, 8 do 
285
                local sizex = 0.25 - 0.2 * (j/8) 
286
                local sizey = (15/8) - (9/8) * (j/8) 
287
                local p = Instance.new("Part") 
288
                p.Size = Vector3.new(0.2,0.2,0.2) 
289
                p.BrickColor = BrickColor.new("Really black") 
290
                p.TopSurface = 0 
291
p.Locked = true
292
                p.BottomSurface = 0 
293
                p.CanCollide = false 
294
                p.Material = "SmoothPlastic" 
295
                p.TopSurface = 0 
296
                p.BottomSurface = 0 
297
                local mesh = Instance.new("CylinderMesh",p)
298
                mesh.Name = "CyMesh" 
299
                mesh.Scale = Vector3.new(sizex,sizey,sizex) *5
300
                p.Parent = m 
301
                local p2 = p:Clone() 
302
                p2.Parent = m 
303
                p2.CyMesh.Scale = p2.CyMesh.Scale + Vector3.new(0.075,0.001,0.075) * 5 
304
                p2.Material = "Neon"
305
p2.Locked = true
306
                if isRainbow then 
307
                        p2.BrickColor = BrickColor.new(tostring(rainbow[rainbowCount])) 
308
                else 
309
                        p2.BrickColor = BrickColor.new(j%2 == 1 and "Toothpaste" or "Electric blue") 
310
                end 
311
                rainbowCount = rainbowCount + 1 
312
                p2.Transparency = 0.35 
313
                local w2 = Instance.new("Weld",p) 
314
                w2.Parent = p2 
315
                w2.Part0 = p 
316
                w2.Part1 = p2 
317
                local w = Instance.new("Weld",p) 
318
                w.Parent = p 
319
                w.Part0 = lastpart 
320
                w.Part1 = p 
321
                if j == 0 then 
322
                        w.C0 = CFrame.Angles(0,math.rad(-10 + 200 * i/4),math.rad(-30 + (i%2==0 and 96 or 70))) * CFrame.new(0,0.6,0) 
323
                        w.C1 = CFrame.new(0,-0.125,0) 
324
                        defC0 = w.C0 
325
                else 
326
                        w.C0 = CFrame.new(0,lastpart.CyMesh.Scale.y/10,0) 
327
                        w.C1 = CFrame.new(0,-sizey/2,0)
328
if mesh.Scale == Vector3.new(0.25, 3.75, 0.25) then
329
	mesh:Remove()
330
	local mesh2 = Instance.new("SpecialMesh",p2)
331
	mesh2.Scale = Vector3.new(1,1,1)
332
	mesh2.MeshType = Enum.MeshType.FileMesh
333
	mesh2.MeshId = "rbxassetid://36869983"
334
	p2.Name = "Last"
335
	table.insert(Heads, p2)
336
end
337
                end 
338
                table.insert(parts,{p,w,p2}) 
339
                lastpart = p 
340
                rs:wait() 
341
        end 
342
        local randoms = {Vector3.new(0,0,0),
343
                Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
344
                Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
345
                Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
346
                Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
347
                Vector3.new(math.random(-35,35)/100,math.random(-35,35)/100,math.random(-35,35)/100),
348
        }
349
        table.insert(tents,{0,randoms,parts,defC0}) 
350
end 
351
player.Chatted:connect(function(msg) 
352
        if string.sub(msg:lower(),1,4) == "col/" then 
353
                for i, v in pairs(tents) do 
354
                        for j, o in pairs(v[3]) do 
355
                                o[3].BrickColor = BrickColor.new(string.sub(msg,5)) 
356
                        end 
357
                end 
358
        elseif string.sub(msg:lower(),1,7) == "/e col/" then 
359
                for i, v in pairs(tents) do 
360
                        for j, o in pairs(v[3]) do 
361
                                o[3].BrickColor = BrickColor.new(string.sub(msg,8)) 
362
                        end 
363
                end 
364
        end 
365
end) 
366
rs:connect(function() 
367
        for i, v in pairs(tents) do 
368
                v[1] = v[1] %200 + 1 
369
                if v[1] == 1 then 
370
                        v[2][1] = v[2][2] 
371
                        v[2][2] = v[2][3] 
372
                        v[2][3] = v[2][4] 
373
                        v[2][4] = v[2][5] 
374
                        v[2][5] = v[2][6] 
375
                        v[2][6] = Vector3.new(math.random(-28,28)/100,math.random(-42,42)/100,math.random(-28,28)/100); 
376
                end 
377
                local p0 = v[2][1] 
378
                local p1 = v[2][2] 
379
                local p2 = v[2][3] 
380
                local p3 = v[2][4] 
381
                local p4 = v[2][5] 
382
                local p5 = v[2][6] 
383
                local arr = {p0,p1,p2,p3,p4,p5} 
384
                local dir = i%2 == 0 and 1 or -1 
385
                for j, V in pairs(v[3]) do 
386
                        local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100)) 
387
                        local off = getV3Cubic(arr,(v[1] + 340*(j/#v[3]))/200) 
388
                        V[3].Transparency = 0.12 + val * 0.65 
389
                        if j == 1 then 
390
                                V[2].C0 = v[4] * CFrame.Angles(off.x*2,off.y*2,off.z*2) 
391
                        else 
392
                                V[2].C0 = CFrame.new(0,V[2].C0.y,0) * CFrame.Angles(off.x*2 * (1 + 0.75 * (j/#v[3])),off.y*2 * (1 + 0.75 * (j/#v[3])),off.z*2 * (1 + 0.75 * (j/#v[3]))) 
393
                        end 
394
                end 
395
        end 
396
end) 
397
398
-- params : ...
399
400
Model = Instance.new("Model", game.Workspace)
401
Model.Name = "ShadowFigs"
402
Model.ChildAdded:connect(function(Child)
403
  
404
  wait(0.2)
405
  if Child.Name == "ShadowClone" and Child.Name ~= "HoverBlocks" then
406
    local Light = Instance.new("PointLight", workspace)
407
    Light.Color = Color3.new(1, 1, 1)
408
    Light.Range = 10
409
    Light.Brightness = 2
410
    Light.Shadows = true
411
Light:Remove()
412
    for t = 1, 5 do
413
      wait(0.1)
414
      for i = 1, #Child:GetChildren() do
415
        Child:GetChildren()[i].Transparency = t / 10 + 0.5
416
      end
417
    end
418
    Child:remove()
419
  end
420
end
421
)
422
Parts = {"Head", "Torso", "Left Arm", "Left Leg", "Right Arm", "Right Leg"}
423
repeat
424
  wait()
425
until game.Players.ghostpunser202
426-
until game.Players.LocalPlayer
426+
Plr = game.Players.ghostpunser202
427-
Plr = game.Players.LocalPlayer
427+
428
Plr.Character.Humanoid.WalkSpeed = 16
429
for i = 1, #PlrChildren do
430
  print(PlrChildren[i])
431
end
432
433
Mouse.Button1Down:Connect(function()
434
	FireEnabled = true
435
end)
436
437
Mouse.Button1Up:Connect(function()
438
	FireEnabled = false
439
end)
440
441
while wait() do
442
	if FireEnabled == true then
443
		for i, v in pairs(Heads) do
444
			rs:wait()
445
			coroutine.resume(coroutine.create(function()
446
				local CF, D, Hit = CreateRay(v.CFrame.p, Mouse.Hit.p)
447
				if Hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
448
					Hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
449
				end
450
				local Fire = Instance.new("Part", workspace)
451
				local Laser = Instance.new("Part", workspace)
452
				Laser.Anchored = true
453
				Laser.CanCollide = false
454
				Laser.Locked = true
455
				Instance.new("PointLight", Laser).Brightness = 23423
456
				Laser.BrickColor = BrickColor.new("Really red")
457
				Laser.Material = "Neon"
458
				Laser.Size = Vector3.new(0.2, 0.2, D)
459
				Laser.CFrame = CF
460
				wait()
461
				Laser:Remove()
462
			end))
463
			coroutine.resume(coroutine.create(function()
464
				local Fire = Instance.new("Part", workspace)
465
				Fire.Size = Vector3.new(0.05, 0.05, 0.05)
466
				Fire.Transparency = 0
467
				Fire.Anchored = true
468
				Fire.CanCollide = false
469
				Fire.CFrame = Mouse.Hit
470
				Instance.new("PointLight", Fire)
471
				Instance.new("Fire", Fire)
472
				wait(1)
473
				Fire:Remove()
474
			end))
475
		end
476
	end
477
end
478
479
do
480
  while 1 do
481
    Posit = Plr.Character.HumanoidRootPart.Position
482
    wait(0.1)
483
    if Plr.Character.HumanoidRootPart.Position == Posit or Plr.Character.Humanoid.WalkSpeed == 32 then
484
      Set = Instance.new("Model", game.Workspace.ShadowFigs)
485
      Set.Name = "ShadowClone"
486
      for i = 1, #Parts do
487
        PartClone = Plr.Character[Parts[i]]:Clone()
488
        RotationX = math.rad(Plr.Character[Parts[i]].Rotation.X)
489
        RotationY = math.rad(Plr.Character[Parts[i]].Rotation.Y)
490
        RotationZ = math.rad(Plr.Character[Parts[i]].Rotation.Z)
491
        PartClone.CFrame = CFrame.new(Plr.Character[Parts[i]].Position) * CFrame.Angles(RotationX, RotationY, RotationZ)
492
        PartClone.Parent = Set
493
		PartClone.Size = Vector3.new(PartClone.Size.X - 0.2,PartClone.Size.Y - 0.2,PartClone.Size.Z - 0.2)
494
        PartClone.Anchored = true
495
        PartClone.CanCollide = false
496
        PartClone.Transparency = 0.7
497
        PartClone.Material = "Neon"
498
        PartClone.BrickColor = BrickColor.new("White")
499
		Delete = Instance.new("BlockMesh",PartClone)
500
		Delete.Scale = Vector3.new(0,0,0)
501
        if PartClone.Name == "Head" or PartClone.Name == "Torso" then
502
		PartClone:Remove()
503
          Children = PartClone:GetChildren()
504
          for i = 1, #Children do
505
            if Children[i].ClassName ~= "Mesh" and Children[i].ClassName ~= "SpecialMesh" then
506
              Children[i]:remove()
507
            end
508
          end
509
        end
510
      end
511
    end
512
  end
513
end