Advertisement
Hizemack

Bakugo edit

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