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