Advertisement
NightGolden

Untitled

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