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