Advertisement
vevc3

Nightmare Sans Edit

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