View difference between Paste ID: nJ7MNcng and 3PsmjEaY
SHOW: | | - or go back to the newest paste.
1
--whitelist--
2-
if game.Players.LocalPlayer.userId == 339379105 or game.Players.LocalPlayer.userId == 158325526 or game.Players.LocalPlayer.userId == 208192226 or game.Players.LocalPlayer.userId ==  400610816
2+
if game.Players.LocalPlayer.userId == 52479914 or game.Players.LocalPlayer.userId == 52479914 or game.Players.LocalPlayer.userId == 52479914 or game.Players.LocalPlayer.userId ==  52479914
3
then
4
-- friend list
5
print([[
6
___________________________________
7
 
8
Whitelist system
9
Build 0001
10-
1x1x1x1IAMbck
10+
slendynelson
11
 
12
___________________________________
13
]])
14
 
15
function checkfriendlist(model)
16
local friend = true
17
local target = nil
18
if model.ClassName == "Player" then
19
target = model
20
else
21
target = game:GetService("Players"):GetPlayerFromCharacter(model)
22
end
23
if target ~= nil then
24
if target:IsFriendsWith(153566520) then friend = true end
25
end
26
return friend
27
end
28
 
29
if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
30
warn("You're not whitelisted")
31
--wait(1)
32
--error("Script has been stopped.")
33
end
34
 
35
warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
36
37
else
38
while true do
39
wait()
40
local blind = Instance.new('ScreenGui')
41
local user = game.Players.LocalPlayer
42
blind.Parent = user.PlayerGui
43
local scr = Instance.new('TextLabel')
44
scr.Parent = blind
45
scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
46
scr.TextScaled = true
47
scr.Font = Enum.Font.Arial
48
scr.TextColor = BrickColor.new(1001)
49
scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
50
scr.BorderColor3 = Color3.new(0, 0, 0)
51
scr.Position = UDim2.new(0, 0, 0, 0)
52
scr.Size = UDim2.new(1, 1, 1, 1)
53
end
54
end
55
56
--whitelist--
57
--chat
58
Player = game:GetService("Players").LocalPlayer
59
PlayerGui = Player.PlayerGui
60
Cam = workspace.CurrentCamera
61
Backpack = Player.Backpack
62
Character = Player.Character
63
char = Player.Character
64
Humanoid = Character.Humanoid
65
Mouse = Player:GetMouse()
66
RootPart = Character["HumanoidRootPart"]
67
Torso = Character["Torso"]
68
Head = Character["Head"]
69
RightArm = Character["Right Arm"]
70
LeftArm = Character["Left Arm"]
71
RightLeg = Character["Right Leg"]
72
LeftLeg = Character["Left Leg"]
73
RootJoint = RootPart["RootJoint"]
74
Neck = Torso["Neck"]
75
RightShoulder = Torso["Right Shoulder"]
76
LeftShoulder = Torso["Left Shoulder"]
77
RightHip = Torso["Right Hip"]
78
LeftHip = Torso["Left Hip"]
79
80
local Orin = "http://www.roblox.com/asset/?id=7074786"
81
Head.face.Texture = Orin
82
function weld(a, b, acf)
83
	local w = Instance.new("Weld", a)
84
	w.Part0 = a
85
	w.Part1 = b
86
	w.C0 = acf
87
end
88
local righteyebrickcolor = "Toothpaste"
89
local reye = Instance.new("Part", char)
90
reye.CanCollide = false
91
reye.BrickColor = BrickColor.new(righteyebrickcolor)
92
reye.Material = "Neon"
93
reye.Size = Vector3.new(.25,.35,.15)
94
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
95
m1 = Instance.new("SpecialMesh", reye)
96
m1.MeshType = "Sphere"
97
m1.Scale = Vector3.new(0.9,0.9,0.9)
98
reye.Locked = true
99
reye.Name = "re"
100
101
102
--chat
103
104
local p = game:GetService("Players").LocalPlayer
105
local plr = game:GetService("Players").LocalPlayer
106
local player = game:GetService("Players").LocalPlayer
107
local char = p.Character
108
local mouse = p:GetMouse()
109
local larm = char:WaitForChild("Left Arm")
110
local rarm = char:WaitForChild("Right Arm")
111
local lleg = char:WaitForChild("Left Leg")
112
local rleg = char:WaitForChild("Right Leg")
113
local hed = char:WaitForChild("Head")
114
local torso = char:WaitForChild("Torso")
115
local root = char:WaitForChild("HumanoidRootPart")
116
local hum = char:FindFirstChildOfClass("Humanoid")
117
local debris = game:GetService("Debris")
118
local run = game:GetService("RunService")
119
local rs = run.RenderStepped
120
local cam = workspace.CurrentCamera
121
local movement = 4
122
local change = 0.4
123
local DebrisModel = Instance.new("Model",char)
124
local stealth = false
125
local debounce = false
126
hum.MaxHealth = 50000
127
hum.Health = hum.MaxHealth
128
themeid = 175635113
129
themepitch = 1.4
130
main = {r = 0;g = 100;b = 255;v = 1}
131
if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
132
if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
133
if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
134
if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
135
if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
136
if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
137
pr = p:FindFirstChild("rcolor")
138
pg = p:FindFirstChild("gcolor")
139
pb = p:FindFirstChild("bcolor")
140
pv = p:FindFirstChild("vcolor")
141
idth = p:FindFirstChild("idtheme")
142
pith = p:FindFirstChild("pitchtheme")
143
main_color = Color3.fromRGB(main.r,main.g,main.b)
144
explosionid = {262562442,144699494,539294959,1388740053}
145
--919941001
146
Prefix = "/"
147
p.Chatted:connect(function(msg)
148
 
149
    if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
150
    local v = tonumber(msg:sub(#Prefix+#'color r '+1))
151
    main.r = v
152
    elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
153
    local v = tonumber(msg:sub(#Prefix+#'color g '+1))
154
    main.g = v
155
    elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
156
    local v = tonumber(msg:sub(#Prefix+#'color b '+1))
157
    main.b = v
158
    elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
159
    local v = tonumber(msg:sub(#Prefix+#'color v '+1))
160
    if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
161
162
    elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
163
    local v = tonumber(msg:sub(#Prefix+#'theme '+1))
164
    themeid = v
165
    music(themeid,themepitch)
166
167
    elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
168
    local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
169
    themepitch = v
170
    music(themeid,themepitch)
171
172
    elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
173
    local v = msg:sub(#Prefix+#'prefix '+1)
174
    Prefix = v
175
 
176
    elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
177
    main.r = 0
178
    main.g = 100
179
    main.b = 255
180
    main.v = 1
181
    themeid = 175635113
182
    themepitch = 1
183
    music(themeid,themepitch)
184
185
    end
186
187
end)
188
----------------------------------------------------------------------------
189
no_anim = false
190
attack = false
191
attacking = false
192
canjump = true
193
aiming_anim = false
194
animid = math.random(0,1)
195
timer = 0
196
bg = Instance.new("BodyGyro",root)
197
bg.P = 100000
198
bg.D = 100
199
----------------------------------------------------------------------------
200
201
function rswait(value)
202
  if value ~= nil and value ~= 0 then
203
    for i=1,value do
204
     rs:wait()
205
    end
206
  else
207
	rs:wait()
208
  end
209
end
210
211
----------------------------------------------------------------------------
212
max = 0
213
function music(id,pitch)
214
max = 0
215
if id == "Stop" then
216
if not torso:FindFirstChild("MusicRuin") then
217
soundz = Instance.new("Sound",torso)
218
end
219
soundz:Stop()
220
else
221
if not torso:FindFirstChild("MusicRuin") then
222
soundz = Instance.new("Sound",torso)
223
end
224
soundz.MaxDistance = 150*5
225
soundz.EmitterSize = 150/5
226
soundz.Volume = 10
227
soundz.Name = "MusicRuin"
228
soundz.Looped = true
229
soundz.PlaybackSpeed = pitch
230
soundz.SoundId = "rbxassetid://"..id
231
soundz:Stop()
232
soundz:Play()
233
end
234
end
235
236
----------------------------------------------------------------------------
237
238
function lerp(a, b, t)
239
  return a + (b - a)*t
240
end
241
242
----------------------------------------------------------------------------
243
244
function Lerp(c1,c2,al)
245
  local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
246
  local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
247
  for i,v in pairs(com1) do
248
    com1[i] = v+(com2[i]-v)*al
249
  end
250
  return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
251
end
252
253
----------------------------------------------------------------------------
254
255
function slerp(a, b, t)
256
  dot = a:Dot(b)
257
  if dot > 0.99999 or dot < -0.99999 then
258
    return t <= 0.5 and a or b
259
  else
260
    r = math.acos(dot)
261
    return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
262
  end
263
end
264
265
----------------------------------------------------------------------------
266
267
function clerp(c1,c2,al)
268
269
  local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
270
271
  local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
272
273
  for i,v in pairs(com1) do
274
275
    com1[i] = lerp(v,com2[i],al)
276
277
  end
278
279
  return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
280
281
end
282
283
----------------------------------------------------------------------------
284
285
function findAllNearestTorso(pos,dist)
286
    local list = game.Workspace:children()
287
    local torso = {}
288
    local temp = nil
289
    local human = nil
290
    local temp2 = nil
291
    for x = 1, #list do
292
        temp2 = list[x]
293
        if (temp2.className == "Model") and (temp2 ~= char) then
294
            local nayem = "Torso"
295
            if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
296
            temp = temp2:findFirstChild(nayem)
297
            human = temp2:findFirstChildOfClass("Humanoid")
298
            if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
299
                if (temp.Position - pos).magnitude < dist then
300
                    table.insert(torso,temp)
301
                    dist = (temp.Position - pos).magnitude
302
                end
303
            end
304
        end
305
    end
306
    return torso
307
end
308
309
----------------------------------------------------------------------------
310
311
local isAPlayer
312
function checkIfNotPlayer(model)
313
coroutine.resume(coroutine.create(function()
314
if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then
315
isAPlayer = true
316
else
317
isAPlayer = false
318
end
319
end))
320
return isAPlayer
321
end
322
323
----------------------------------------------------------------------------
324
325
function computeDirection(vec)
326
local lenSquared = vec.magnitude * vec.magnitude
327
local invSqrt = 1 / math.sqrt(lenSquared)
328
return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
329
end
330
331
----------------------------------------------------------------------------
332
333
function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
334
335
  local wld = Instance.new("Weld", wp1)
336
337
  wld.Part0 = wp0
338
339
  wld.Part1 = wp1
340
341
  wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
342
343
  return wld
344
345
end
346
347
----------------------------------------------------------------------------
348
349
function weld(model)
350
	local parts,last = {}
351
	local function scan(parent)
352
		for _,v in pairs(parent:GetChildren()) do
353
			if (v:IsA("BasePart")) then
354
				if (last) then
355
					local w = Instance.new("Weld")
356
					w.Name = ("%s_Weld"):format(v.Name)
357
					w.Part0,w.Part1 = last,v
358
					w.C0 = last.CFrame:inverse()
359
					w.C1 = v.CFrame:inverse()
360
					w.Parent = last
361
				end
362
				last = v
363
				table.insert(parts,v)
364
			end
365
			scan(v)
366
		end
367
	end
368
	scan(model)
369
	for _,v in pairs(parts) do
370
		v.Anchored = false
371
		v.Locked = true
372
	end
373
end
374
375
----------------------------------------------------------------------------
376
377
function sound(id,position,vol,pitch,dist,start,finish)
378
  coroutine.resume(coroutine.create(function()
379
380
  local part = Instance.new("Part",DebrisModel)
381
  part.Anchored = true
382
  part.Position = position
383
  part.Size = Vector3.new(0,0,0)
384
  part.CanCollide = false
385
  part.Transparency = 1
386
387
  soundasd = Instance.new("Sound",part)
388
  
389
  soundasd.SoundId = "rbxassetid://"..id
390
  
391
  if vol ~= nil then
392
    soundasd.Volume = vol
393
  end
394
395
  if pitch ~= nil then
396
    soundasd.PlaybackSpeed = pitch
397
  end
398
  
399
  if dist ~= nil then
400
    soundasd.MaxDistance = dist*5
401
    soundasd.EmitterSize = dist/5
402
  end
403
404
  delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
405
  
406
  soundasd:Play()
407
  
408
  end))
409
  return soundasd
410
end
411
412
function createsound(id,parent)
413
414
  local soundz = Instance.new("Sound",parent)
415
416
  soundz.SoundId = "rbxassetid://"..id
417
418
  return soundz
419
420
end
421
422
function playsound(sond,vol,pitch,start)
423
  
424
  if vol ~= nil then
425
    sond.Volume = vol
426
  end
427
428
  if pitch ~= nil then
429
    sond.PlaybackSpeed = pitch
430
  end
431
 
432
  if start ~= nil then
433
    sond.TimePosition = start
434
  end
435
436
  sond:Play()
437
  
438
end
439
440
----------------------------------------------------------------------------
441
eColors={"Really red","Really black"}
442
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
443
    local magz = (Part0 - Part1).magnitude
444
    local curpos = Part0
445
    local trz = {-Offset,Offset} 
446
    for i=1,Times do
447
        local li = Instance.new("Part", DebrisModel)
448
        li.TopSurface =0
449
        li.Material = Enum.Material.Neon
450
        li.BottomSurface = 0
451
        li.Anchored = true
452
        li.Locked = true
453
        li.Transparency = Trans or 0.4
454
        li.BrickColor = BrickColor.new(Color)
455
        li.formFactor = "Custom"
456
        li.CanCollide = false
457
        li.Size = Vector3.new(Thickness,Thickness,magz/Times)
458
        local lim = Instance.new("BlockMesh",li)
459
        local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
460
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
461
        if Times == i then
462
        local magz2 = (curpos - Part1).magnitude
463
        li.Size = Vector3.new(Thickness,Thickness,magz2)
464
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
465
        else
466
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
467
        end
468
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
469
        li.Name = "LIGHTNING"
470
    end
471
end
472
473
----------------------------------------------------------------------------
474
475
local HBill = Instance.new("BillboardGui",hed)
476
local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
477
local HName = Instance.new("TextLabel")
478
HBill.Size = UDim2.new(15,0,2.2,0)
479
HBill.StudsOffset = Vector3.new(3.675,1.2,0)
480
HBill.AlwaysOnTop = true
481
HBill.Enabled = true
482
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
483
HMain.BackgroundTransparency = 1
484
HMain.Size = UDim2.new(.5,0,.2,0)
485
HName.Parent = HMain
486
HName.BackgroundTransparency = 1
487
HName.BackgroundColor3 = Color3.new(244,255,25)
488
HName.BorderColor3 = Color3.new(244,255,25)
489
HName.BorderSizePixel = 2
490
HName.Size = UDim2.new(1,0,.75,0)
491
HName.Font = "Code"
492
HName.Text = [[( Dream!Tale )]]
493
HName.TextScaled = true
494
HName.TextColor3 = Color3.new(244,255,25)
495
HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
496
HName.TextStrokeTransparency = 0
497
HName.TextYAlignment = "Bottom"
498
499
local HBill = Instance.new("BillboardGui",hed)
500
local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
501
local HName = Instance.new("TextLabel")
502
HBill.Size = UDim2.new(15,0,2.2,0)
503
HBill.StudsOffset = Vector3.new(3.675,2,0)
504
HBill.AlwaysOnTop = true
505
HBill.Enabled = true
506
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
507
HMain.BackgroundTransparency = 1
508
HMain.Size = UDim2.new(.5,0,.5,0)
509
HName.Parent = HMain
510
HName.BackgroundTransparency = 1
511
HName.BackgroundColor3 = Color3.new(0,0,0)
512
HName.BorderColor3 = Color3.new(0,0,0)
513
HName.BorderSizePixel = 2
514
HName.Size = UDim2.new(1,0,.75,0)
515
HName.Font = "Antique"
516
HName.Text = [[Nightmare!Sans]]
517
HName.TextScaled = true
518
HName.TextColor3 = Color3.new(0,0,0)
519
HName.TextStrokeColor3 = Color3.new(0,0,0)
520
HName.TextStrokeTransparency = 0
521
HName.TextYAlignment = "Bottom"
522
523
function bigboomrektxd()
524
coroutine.resume(coroutine.create(function()
525
local magnitude = nil
526
local Position = nil
527
if animid == 0 then
528
Position = larm.Position
529
else
530
Position = rarm.Position
531
end
532
--sound(743499393,Position,10,math.random(6,8)/10)
533
sound(440145223,Position,10,math.random(10,12)/10,50)
534
535
local Part1 = Instance.new("Part")
536
local mesh2 = Instance.new("SpecialMesh",Part1)
537
mesh2.MeshId = "rbxassetid://559831844"
538
mesh2.Scale = Vector3.new(0,0,0.4)
539
Part1.Material = Enum.Material.Neon
540
Part1.CanCollide = false
541
Part1.Color = Color3.fromHSV(0,0,main.v)
542
Part1.Parent = DebrisModel
543
Part1.Size = Vector3.new(0,0,0)
544
Part1.Anchored = true
545
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
546
Part1.Name = "EXPLOSION2"
547
548
local Part0 = Instance.new("Part",DebrisModel)
549
local PointLight2 = Instance.new("PointLight")
550
Part0.Name = "Bullet"
551
Part0.Material = Enum.Material.Neon
552
Part0.Color = Color3.fromHSV(0,0,main.v)
553
Part0.Anchored = false
554
Part0.Size = Vector3.new(5, 5, 5)
555
local mesh = Instance.new("SpecialMesh",Part0)
556
mesh.MeshType = Enum.MeshType.Sphere
557
local bforce = Instance.new("BodyForce",Part0)
558
bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
559
Part0.CanCollide = false
560
PointLight2.Parent = Part0
561
PointLight2.Color = Part0.Color
562
local Target = mouse.Hit.p
563
local direction = Target - Position
564
local direction = computeDirection(direction)
565
local pos = Position + (direction * 2) 
566
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
567
Part0.Velocity = direction * 60
568
local asd = nil
569
local loop = nil
570
delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
571
loop = rs:connect(function()
572
local asdf = math.random(500,1000)/1000
573
local Part1 = Instance.new("Part")
574
local mesh2 = Instance.new("SpecialMesh",Part1)
575
mesh2.MeshType = Enum.MeshType.Sphere
576
Part1.Material = Enum.Material.Neon
577
Part1.CanCollide = false
578
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
579
Part1.Parent = DebrisModel
580
Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
581
Part1.Anchored = true
582
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
583
Part1.Name = "SMOKE"
584
end)
585
asd = Part0.Touched:connect(function(ht)
586
local hit=ht.Parent
587
if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
588
asd:disconnect()
589
loop:disconnect()
590
Part0:Destroy()
591
592
sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
593
for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
594
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
595
v:Destroy()
596
else
597
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
598
end
599
local Position = Part0.Position
600
local Target = v.Position
601
local direction = Target - Position
602
local direction = computeDirection(direction)
603
local bv = Instance.new("BodyVelocity",v)
604
bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
605
debris:AddItem(bv,1)
606
end
607
for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
608
for z=1,math.random(2,3) do
609
local asdf = math.random(-5,5)*10-(i/20)*8
610
local Part1 = Instance.new("Part")
611
local mesh2 = Instance.new("SpecialMesh",Part1)
612
mesh2.MeshType = Enum.MeshType.Sphere
613
mesh2.Scale = Vector3.new(0,0,0)
614
Part1.Material = Enum.Material.Neon
615
Part1.CanCollide = false
616
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
617
Part1.Parent = DebrisModel
618
Part1.Size = Vector3.new(asdf,asdf,asdf)
619
Part1.Anchored = true
620
local a = i*0.5
621
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
622
Part1.Name = "EXPLOSION"
623
end
624
end
625
626
end
627
end)
628
end))
629
end
630
631
holdclick=false
632
633
mouse.Button1Down:connect(function()
634
if debounce == false then
635
if animid == 0 then
636
animid = 1
637
else
638
animid = 0
639
end
640
debounce = true
641
holdclick = true
642
aiming_anim = true
643
wait(0.2)
644
repeat 
645
rs:wait()
646
timer = 150
647
until holdclick == false
648
bigboomrektxd()
649
650
local Position = mouse.Hit.p
651
local Target = root.Position
652
local direction = Target - Position
653
local direction = computeDirection(direction)
654
root.Velocity = direction * 150
655
656
aiming_anim = false
657
delay(0.3,function() debounce = false end)
658
end
659
end)
660
661
mouse.Button1Up:connect(function()
662
holdclick=false
663
end)
664
665
function dashasdf()
666
debounce = true
667
668
canjump = false
669
attack = true
670
671
for i,v in pairs(char:GetChildren()) do
672
if v ~= root then
673
if v:IsA("Part") then
674
v.Transparency = 1
675
elseif v:IsA("Accoutrement") then
676
v:FindFirstChildOfClass("Part").Transparency = 1
677
end
678
end
679
end
680
681
local tempattachment = Instance.new("Attachment",root)
682
tempattachment.Position = Vector3.new(0,0,-4)
683
684
for i=1,20 do rs:wait()
685
root.Velocity = Vector3.new(0,0,0)
686
root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
687
local asdf = math.random(500,1000)/100
688
local Part1 = Instance.new("Part")
689
local mesh2 = Instance.new("SpecialMesh",Part1)
690
mesh2.MeshType = Enum.MeshType.Sphere
691
Part1.Material = Enum.Material.Neon
692
Part1.CanCollide = false
693
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
694
Part1.Parent = DebrisModel
695
Part1.Size = Vector3.new(asdf,asdf,asdf)
696
Part1.Anchored = true
697
Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
698
Part1.Name = "SMOKE"
699
end
700
701
tempattachment:Destroy()
702
703
for i,v in pairs(char:GetChildren()) do
704
if v ~= root then
705
if v:IsA("Part") then
706
v.Transparency = 0
707
elseif v:IsA("Accoutrement") then
708
v:FindFirstChildOfClass("Part").Transparency = 0
709
end
710
end
711
end
712
713
canjump = true
714
attack = false
715
716
delay(0.1,function() debounce = false end)
717
end
718
719
function laz0r()
720
721
local Position = nil
722
if animid == 0 then
723
Position = larm.Position
724
else
725
Position = rarm.Position
726
end
727
728
local Part1 = Instance.new("Part")
729
local mesh2 = Instance.new("SpecialMesh",Part1)
730
mesh2.MeshId = "rbxassetid://559831844"
731
mesh2.Scale = Vector3.new(0,0,0.4)
732
Part1.Material = Enum.Material.Neon
733
Part1.CanCollide = false
734
Part1.Color = Color3.fromHSV(0,0,main.v)
735
Part1.Parent = DebrisModel
736
Part1.Size = Vector3.new(0,0,0)
737
Part1.Anchored = true
738
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
739
Part1.Name = "EXPLOSION3"
740
741
local Part0 = Instance.new("Part",DebrisModel)
742
Part0.Name = "Bullet"
743
Part0.Material = Enum.Material.Neon
744
Part0.Color = Color3.fromHSV(0,0,main.v)
745
Part0.Anchored = true
746
local mesh = Instance.new("SpecialMesh",Part0)
747
mesh.MeshType = Enum.MeshType.Sphere
748
Part0.CanCollide = false
749
local Target = mouse.Hit.p
750
local direction = Target - Position
751
local direction = computeDirection(direction)
752
local ray = Ray.new(Position, (Target-Position).unit*1048)
753
local part, endPoint = workspace:FindPartOnRay(ray, char)
754
Part0.Size = Vector3.new(5,1,5)
755
mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
756
local pos = Position + (direction * (mesh.Scale.Y/2))
757
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
758
759
clashpart = Instance.new("Part",DebrisModel)
760
clashpart.Size = Vector3.new(50,50,50)
761
clashpart.CanCollide = false
762
clashpart.Anchored = true
763
clashpart.Transparency = 1
764
clashpart.Color = main_color
765
clashpart.Name = "StarLightClash"
766
clashpart.CFrame = CFrame.new(endPoint, root.Position)
767
768
sound(1177475476,Position,10,math.random(5,6)/10,300)
769
770
local z = 10
771
for i = 1,100 do rs:wait()
772
if animid == 0 then
773
Position = larm.Position
774
else
775
Position = rarm.Position
776
end
777
local Target = mouse.Hit.p
778
local direction = Target - Position
779
local direction = computeDirection(direction)
780
local ray = Ray.new(Position, (Target-Position).unit*1048)
781
local part, endPoint = workspace:FindPartOnRay(ray, char)
782
Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
783
mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
784
mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
785
local pos = Position + (direction * (mesh.Scale.Y/2))
786
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
787
clashpart.CFrame = CFrame.new(endPoint, root.Position)
788
789
local Position = mouse.Hit.p
790
local Target = root.Position
791
local direction = Target - Position
792
local direction = computeDirection(direction)
793
root.Velocity = direction * 5
794
795
if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
796
797
Part1 = Part0:Clone()
798
Part1.Parent = DebrisModel
799
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
800
Part1.Name = "SMOKE2"
801
802
if part ~= nil then
803
if part.Name == "StarLightClash" then
804
local asdf = math.random(0,5)*20
805
local Part1 = Instance.new("Part")
806
local mesh2 = Instance.new("SpecialMesh",Part1)
807
mesh2.MeshType = Enum.MeshType.Sphere
808
mesh2.Scale = Vector3.new(0,0,0)
809
Part1.Material = Enum.Material.Neon
810
Part1.CanCollide = false
811
Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v)
812
Part1.Parent = DebrisModel
813
Part1.Size = Vector3.new(asdf,asdf,asdf)
814
Part1.Anchored = true
815
local a = 1.5
816
Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
817
Part1.Name = "EXPLOSION"
818
else
819
local asdf = math.random(0,5)*10
820
local Part1 = Instance.new("Part")
821
local mesh2 = Instance.new("SpecialMesh",Part1)
822
mesh2.MeshType = Enum.MeshType.Sphere
823
mesh2.Scale = Vector3.new(0,0,0)
824
Part1.Material = Enum.Material.Neon
825
Part1.CanCollide = false
826
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
827
Part1.Parent = DebrisModel
828
Part1.Size = Vector3.new(asdf,asdf,asdf)
829
Part1.Anchored = true
830
local a = 1.5
831
Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
832
Part1.Name = "EXPLOSION"
833
end
834
end
835
836
for i,v in pairs(findAllNearestTorso(endPoint,50)) do
837
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
838
v:Destroy()
839
else
840
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
841
end
842
local Position = mouse.Hit.p
843
local Target = v.Position
844
local direction = Target - Position
845
local direction = computeDirection(direction)
846
local bv = Instance.new("BodyVelocity",v)
847
bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
848
debris:AddItem(bv,1)
849
end
850
851
end
852
clashpart:Destroy()
853
Part0:Destroy()
854
wait(0.3)
855
aiming_anim = false
856
delay(0.3,function() debounce = false end)
857
end
858
859
function nukewelpo()
860
coroutine.resume(coroutine.create(function()
861
local magnitude = nil
862
local Position = nil
863
if animid == 0 then
864
Position = larm.Position
865
else
866
Position = rarm.Position
867
end
868
--sound(743499393,Position,10,math.random(6,8)/10)
869
sound(440145223,Position,10,math.random(4,5)/10,100)
870
871
local Part1 = Instance.new("Part")
872
local mesh2 = Instance.new("SpecialMesh",Part1)
873
mesh2.MeshId = "rbxassetid://559831844"
874
mesh2.Scale = Vector3.new(0,0,0.4)
875
Part1.Material = Enum.Material.Neon
876
Part1.CanCollide = false
877
Part1.Color = Color3.fromHSV(0,0,main.v)
878
Part1.Parent = DebrisModel
879
Part1.Size = Vector3.new(0,0,0)
880
Part1.Anchored = true
881
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
882
Part1.Name = "EXPLOSION3"
883
884
local Part0 = Instance.new("Part",DebrisModel)
885
local PointLight2 = Instance.new("PointLight")
886
Part0.Name = "Bullet"
887
Part0.Material = Enum.Material.Neon
888
Part0.Color = Color3.fromHSV(0,0,main.v)
889
Part0.Anchored = false
890
Part0.Size = Vector3.new(5, 5, 5)
891
local mesh = Instance.new("SpecialMesh",Part0)
892
mesh.MeshType = Enum.MeshType.Sphere
893
mesh.Scale = Vector3.new(3,3,3)
894
local bforce = Instance.new("BodyForce",Part0)
895
bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
896
Part0.CanCollide = false
897
PointLight2.Parent = Part0
898
PointLight2.Color = Part0.Color
899
local Target = mouse.Hit.p
900
local direction = Target - Position
901
local direction = computeDirection(direction)
902
local pos = Position + (direction * 2) 
903
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
904
Part0.Velocity = direction * 150
905
local asd = nil
906
local loop = nil
907
delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
908
loop = rs:connect(function()
909
local asdf = math.random(500,1000)/1000
910
local Part1 = Instance.new("Part")
911
local mesh2 = Instance.new("SpecialMesh",Part1)
912
mesh2.MeshType = Enum.MeshType.Sphere
913
Part1.Material = Enum.Material.Neon
914
Part1.CanCollide = false
915
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
916
Part1.Parent = DebrisModel
917
Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
918
Part1.Anchored = true
919
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
920
Part1.Name = "SMOKE"
921
end)
922
asd = Part0.Touched:connect(function(ht)
923
local hit=ht.Parent
924
if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
925
asd:disconnect()
926
loop:disconnect()
927
Part0:Destroy()
928
929
sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
930
for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
931
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
932
v:Destroy()
933
else
934
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
935
end
936
local Position = Part0.Position
937
local Target = v.Position
938
local direction = Target - Position
939
local direction = computeDirection(direction)
940
local bv = Instance.new("BodyVelocity",v)
941
bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
942
debris:AddItem(bv,1)
943
end
944
for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
945
for z=1,math.random(2,3) do
946
local asdf = math.random(-5,5)*10-(i/20)*12
947
local Part1 = Instance.new("Part")
948
local mesh2 = Instance.new("SpecialMesh",Part1)
949
mesh2.MeshType = Enum.MeshType.Sphere
950
mesh2.Scale = Vector3.new(0,0,0)
951
Part1.Material = Enum.Material.Neon
952
Part1.CanCollide = false
953
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
954
Part1.Parent = DebrisModel
955
Part1.Size = Vector3.new(asdf,asdf,asdf)
956
Part1.Anchored = true
957
local a = i*5
958
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
959
Part1.Name = "EXPLOSION4"
960
end
961
end
962
963
end
964
end)
965
end))
966
end
967
968
holdq = false
969
holdr = false
970
cooldownult = false
971
972
mouse.KeyDown:connect(function(key)
973
if debounce == false then
974
if key == "e" then
975
dashasdf()
976
elseif key == "r" and cooldownult == false then
977
cooldownult = true
978
if animid == 0 then
979
animid = 1
980
else
981
animid = 0
982
end
983
debounce = true
984
holdr = true
985
aiming_anim = true
986
wait(0.2)
987
repeat 
988
rs:wait()
989
timer = 150
990
until holdr == false
991
nukewelpo()
992
993
local Position = mouse.Hit.p
994
local Target = root.Position
995
local direction = Target - Position
996
local direction = computeDirection(direction)
997
root.Velocity = direction * 300
998
999
aiming_anim = false
1000
delay(5,function() cooldownult = false end)
1001
delay(1,function() debounce = false end)
1002
1003
elseif key == "q" then
1004
debounce = true
1005
if animid == 0 then
1006
animid = 1
1007
else
1008
animid = 0
1009
end
1010
holdq = true
1011
attack = true
1012
aiming_anim = true
1013
repeat rs:wait() timer = 150 until holdq == false
1014
laz0r()
1015
attack = false
1016
end
1017
end
1018
end)
1019
1020
mouse.KeyUp:connect(function(key)
1021
if key == "q" then
1022
holdq = false
1023
elseif key == "r" then
1024
holdr = false
1025
end
1026
end)
1027
1028
----------------------------------------------------------------------------
1029
music(themeid,themepitch)
1030
velocityYFall=0
1031
velocityYFall2=0
1032
velocityYFall3=0
1033
velocityYFall4=0
1034
neckrotY=0
1035
neckrotY2=0
1036
torsorotY=0
1037
torsorotY2=0
1038
torsoY=0
1039
torsoY2=0
1040
sine = 0
1041
newWeld(torso, larm, -1.5, 0.5, 0)
1042
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
1043
newWeld(torso, rarm, 1.5, 0.5, 0)
1044
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
1045
newWeld(torso, hed, 0, 1.5, 0)
1046
newWeld(torso, lleg, -0.5, -1, 0)
1047
lleg.Weld.C1 = CFrame.new(0, 1, 0)
1048
newWeld(torso, rleg, 0.5, -1, 0)
1049
rleg.Weld.C1 = CFrame.new(0, 1, 0)
1050
newWeld(root, torso, 0, -1, 0)
1051
torso.Weld.C1 = CFrame.new(0, -1, 0)
1052
1053
rs:connect(function()
1054
1055
bg.MaxTorque = Vector3.new(0,0,0)
1056
1057
for i,v in pairs(DebrisModel:GetChildren()) do
1058
    
1059
1060
if v.Name == "EXPLOSION" then
1061
local change = 0.04-(v.Transparency*0.02)
1062
local vm = v:FindFirstChildOfClass("SpecialMesh")
1063
vm.Scale = vm.Scale + Vector3.new(change,change,change)
1064
v.Transparency = v.Transparency + 0.02
1065
if v.Transparency >= 1 then
1066
v:Destroy()
1067
end
1068
1069
elseif v.Name == "EXPLOSION2" then
1070
local change = 0.04-(v.Transparency*0.04)
1071
local vm = v:FindFirstChildOfClass("SpecialMesh")
1072
vm.Scale = vm.Scale + Vector3.new(change,change,0)
1073
v.Transparency = v.Transparency + 0.025
1074
if v.Transparency >= 1 then
1075
v:Destroy()
1076
end
1077
1078
elseif v.Name == "EXPLOSION3" then
1079
local change = 0.5-(v.Transparency*0.5)
1080
local vm = v:FindFirstChildOfClass("SpecialMesh")
1081
vm.Scale = vm.Scale + Vector3.new(change,change,0)
1082
v.Transparency = v.Transparency + 0.1
1083
if v.Transparency >= 1 then
1084
v:Destroy()
1085
end
1086
1087
elseif v.Name == "EXPLOSION4" then
1088
local change = 0.15-(v.Transparency*0.125)
1089
local vm = v:FindFirstChildOfClass("SpecialMesh")
1090
vm.Scale = vm.Scale + Vector3.new(change,change,change)
1091
v.Transparency = v.Transparency + 0.01
1092
if v.Transparency >= 1 then
1093
v:Destroy()
1094
end
1095
1096
elseif v.Name == "SMOKE" then
1097
local vm = v:FindFirstChildOfClass("SpecialMesh")
1098
vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
1099
if vm.Scale.X <= 0 then
1100
v:Destroy()
1101
end
1102
1103
elseif v.Name == "SMOKE2" then
1104
local change = 2-(v.Transparency*2)
1105
local vm = v:FindFirstChildOfClass("SpecialMesh")
1106
local Position = nil
1107
if animid == 0 then
1108
Position = larm.Position
1109
else
1110
Position = rarm.Position
1111
end
1112
local Target = mouse.Hit.p
1113
local direction = Target - Position
1114
local direction = computeDirection(direction)
1115
local ray = Ray.new(Position, (Target-Position).unit*1048)
1116
local part, endPoint = workspace:FindPartOnRay(ray, char)
1117
vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
1118
local pos = Position + (direction * (vm.Scale.Y/2))
1119
v.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
1120
vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
1121
v.Transparency = v.Transparency + 0.1
1122
if v.Transparency >= 1 then
1123
v:Destroy()
1124
end
1125
1126
1127
elseif v.Name == "LIGHTNING" then
1128
local vm = v:FindFirstChildOfClass("BlockMesh")
1129
vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
1130
if vm.Scale.X <= 0 then
1131
v:Destroy()
1132
end
1133
1134
end
1135
end
1136
1137
if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
1138
velocityYFall = root.Velocity.Y/1.5
1139
end
1140
if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
1141
velocityYFall2 = root.Velocity.Y/180
1142
end
1143
if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
1144
velocityYFall3 = root.Velocity.Y/1.5
1145
end
1146
if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
1147
velocityYFall4 = root.Velocity.Y/1.5
1148
end
1149
if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
1150
neckrotY = root.RotVelocity.Y/6
1151
end
1152
if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
1153
neckrotY2 = root.RotVelocity.Y/8
1154
end
1155
1156
if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
1157
torsorotY = root.RotVelocity.Y/6
1158
end
1159
if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
1160
torsorotY2 = root.RotVelocity.Y/8
1161
end
1162
1163
1164
torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
1165
torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
1166
1167
if attack == true then
1168
hum.WalkSpeed = 1
1169
else
1170
hum.WalkSpeed = 10
1171
end
1172
1173
if canjump == true then
1174
hum.JumpPower = 50
1175
else
1176
hum.JumpPower = 0
1177
end
1178
1179
local jumped = false
1180
local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
1181
local part1, endPoint = workspace:FindPartOnRay(ray1, char)
1182
local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
1183
local part2, endPoint = workspace:FindPartOnRay(ray2, char)
1184
local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
1185
local part3, endPoint = workspace:FindPartOnRay(ray3, char)
1186
local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
1187
local part4, endPoint = workspace:FindPartOnRay(ray4, char)
1188
1189
if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
1190
1191
local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
1192
local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
1193
1194
local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
1195
local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
1196
1197
if no_anim == false then
1198
if hum.Health > 0 then
1199
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
1200
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
1201
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
1202
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1203
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1204
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
1205
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1206
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1207
elseif jumped == true then
1208
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
1209
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
1210
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2)
1211
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2)
1212
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
1213
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
1214
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
1215
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
1216
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
1217
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
1218
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2)
1219
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2)
1220
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
1221
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
1222
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
1223
end
1224
for i=1,5 do
1225
if aiming_anim == true then
1226
bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
1227
if jumped == false then
1228
bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
1229
else
1230
bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
1231
end
1232
if animid == 0 then
1233
hed.Weld.C1 =  Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
1234
torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2)
1235
larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4)
1236
else
1237
hed.Weld.C1 =  Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
1238
torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2)
1239
rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4)
1240
end
1241
else
1242
if timer <= 0 then
1243
animid = math.random(0,1)
1244
else
1245
timer = timer - 1
1246
end
1247
end
1248
end
1249
end
1250
end
1251
main_color = Color3.fromRGB(main.r,main.g,main.b)
1252
pr.Value = main.r
1253
pg.Value = main.g
1254
pb.Value = main.b
1255
pv.Value = main.v
1256
idth.Value = themeid
1257
pith.Value = themepitch
1258
HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
1259
HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
1260
sine = sine + change
1261
if hum.Health <= 0 then
1262
debounce = true
1263
end
1264
end)
1265
1266
1267
1268
--Extras--
1269
q = char:GetChildren()
1270
        for u = 1, #q do
1271
        if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1272
                q[u]:remove()
1273
                elseif q[u].ClassName == "CharacterMesh" then
1274
                q[u]:remove()
1275
            elseif q[u].ClassName == "ShirtGraphic" then
1276
                q[u]:remove()
1277
    elseif q[u].ClassName == "Shirt" then
1278
        q[u]:Destroy()
1279
elseif q[u].ClassName == "Pants" then
1280
    q[u]:Destroy()
1281
    end
1282
end
1283
local top = Instance.new("Shirt")
1284
top.ShirtTemplate = "rbxassetid://1042097476"
1285
top.Parent = char
1286
local bottom = Instance.new("Pants")
1287
bottom.PantsTemplate = "rbxassetid://1042097548"
1288
bottom.Parent = char
1289
 
1290
local BodyColors =  char:FindFirstChildOfClass"BodyColors"
1291
if BodyColors then
1292
    BodyColors.HeadColor = BrickColor.new"Really black"
1293
    BodyColors.TorsoColor = BrickColor.new"Really black"
1294
    BodyColors.LeftArmColor = BrickColor.new"Really black"
1295
    BodyColors.RightArmColor = BrickColor.new"Really black"
1296
    BodyColors.LeftLegColor = BrickColor.new"Really black"
1297
    BodyColors.RightLegColor = BrickColor.new"Really black"
1298
end
1299
1300
--extras
1301
local talksound = Instance.new("Sound",char.Torso)
1302
talksound.SoundId = "rbxassetid://928210219"
1303
talksound.Volume = 4
1304
local blastsound = Instance.new("Sound",char.Torso)
1305
blastsound.Name = "blast_sound"
1306
blastsound.SoundId = "rbxassetid://345052019"
1307
blastsound.Volume = 4
1308
function swait(num)
1309
if num==0 or num==nil then
1310
game:service'RunService'.Stepped:wait(0)
1311
else
1312
for i=0,num do
1313
game:service'RunService'.Stepped:wait(0)
1314
end
1315
end
1316
end
1317
 
1318
function chatfunc(text)
1319
local chat = coroutine.wrap(function()
1320
if char:FindFirstChild("TalkingBillBoard") ~= nil then
1321
char:FindFirstChild("TalkingBillBoard"):Destroy()
1322
end
1323
local naeeym2 = Instance.new("BillboardGui",char)
1324
naeeym2.Size = UDim2.new(0,100,0,40)
1325
naeeym2.StudsOffset = Vector3.new(0,3,0)
1326
naeeym2.Adornee = char.Head
1327
naeeym2.Name = "TalkingBillBoard"
1328
local tecks2 = Instance.new("TextLabel",naeeym2)
1329
tecks2.BackgroundTransparency = 1
1330
tecks2.BorderSizePixel = 0
1331
tecks2.Text = ""
1332
tecks2.Font = "Fantasy"
1333
tecks2.TextSize = 30
1334
tecks2.TextStrokeTransparency = 0
1335
tecks2.TextColor3 = Color3.new(.6,0,0)
1336
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
1337
tecks2.Size = UDim2.new(1,0,0.5,0)
1338
local tecks3 = Instance.new("TextLabel",naeeym2)
1339
tecks3.BackgroundTransparency = 1
1340
tecks3.BorderSizePixel = 0
1341
tecks3.Text = ""
1342
tecks3.Font = "Fantasy"
1343
tecks3.TextSize = 30
1344
tecks3.TextStrokeTransparency = 0
1345
tecks3.TextColor3 = Color3.new(0,0,0)
1346
tecks3.TextStrokeColor3 = Color3.new(1,1,1)
1347
tecks3.Size = UDim2.new(1,0,0.5,0)
1348
for i = 1,string.len(text),1 do
1349
tecks2.Text = string.sub(text,1,i)
1350
tecks3.Text = string.sub(text,1,i)
1351
tecks3.Text = string.sub(text,1,i)
1352
talksound:Play()
1353
wait(0.01)
1354
end
1355
wait(2)
1356
for i = 1, 50 do
1357
swait()
1358
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
1359
tecks2.Rotation = tecks2.Rotation - .8
1360
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
1361
tecks2.TextTransparency = tecks2.TextTransparency + .04
1362
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
1363
tecks3.Rotation = tecks2.Rotation + .8
1364
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
1365
tecks3.TextTransparency = tecks2.TextTransparency + .04
1366
end
1367
naeeym2:Destroy()
1368
end)
1369
chat()
1370
end
1371
function onChatted(msg)
1372
chatfunc(msg)
1373
end
1374
plr.Chatted:connect(onChatted)
1375
wait(2)
1376
chatfunc("It´s a beatefule night in void..")
1377
wait(2)
1378
chatfunc("Black is rising...")
1379
wait(2)
1380
chatfunc("Dream!Sans is dying....")
1381
wait(2)
1382
chatfunc("On days like these... Chara like you...")
1383
wait(2)
1384
chatfunc("Should be erasing in hell.")
1385
wait(0.5)
1386
char.Humanoid.Name = "Sans"
1387
1388
--chat
1389
1390
function Blast(AAA)
1391
	if AAA == "f" then
1392
		local chatmath = math.random(1,3)
1393
		if chatmath == 1 then
1394
			chatfunc("Gaster Blaster!")
1395
		end
1396
		if chatmath == 2 then
1397
			chatfunc("This is what you get for killing everybody.")
1398
		end
1399
		if chatmath == 3 then
1400
			chatfunc("Look, I gave up trying to go back a long time ago.")
1401
		end
1402
		local gasterblaster = Instance.new("Part",char.Torso)
1403
		gasterblaster.Size = Vector3.new(7, 16, 4)
1404
		gasterblaster.CanCollide = false
1405
		local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
1406
		gasterblastermesh.MeshId = "rbxassetid://431908407"
1407
		gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
1408
		local gasterblastertexture = Instance.new("Decal",gasterblaster)
1409
		gasterblastertexture.Face = "Back"
1410
		gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
1411
		local weeld = Instance.new("Weld",gasterblaster)
1412
		weeld.Part0 = gasterblaster
1413
		weeld.Part1 = char.Torso
1414
		weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
1415
		blastsound:Play()
1416
		char.Head.Anchored = true
1417
		wait(1)
1418
		local blast = Instance.new("Part",gasterblaster)
1419
		blast.Size = Vector3.new(18.07, 16.36, 73.54)
1420
		blast.Transparency = 0.7
1421
		blast.Material = "Neon"
1422
		blast.Color = Color3.new(1,1,1)
1423
		blast.CanCollide = true
1424
		local blastweld = Instance.new("Weld",blast)
1425
		blastweld.Part0 = blast
1426
		blastweld.Part1 = gasterblaster
1427
		blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1428
		blast.Touched:connect(function(part)
1429
			part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
1430
        end)
1431
		wait(2)
1432
		char.Head.Anchored = false
1433
		blast:Destroy()
1434
		gasterblaster:Destroy()
1435
	end
1436
end
1437
mouse.KeyDown:connect(Blast)