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