Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 94.92 KB | None | 0 0
  1. --whitelist--
  2. if game.Players.LocalPlayer.userId = 389889326 or game.Players.LocalPlayer.userId == 389889326 or game.Players.LocalPlayer.userId == 389889326 or game.Players.LocalPlayer.userId == 389889326
  3. then
  4. -- friend list
  5. print([[
  6. ___________________________________
  7.  
  8. Whitelist system
  9. Build 0001
  10. 1x1x1x1IAMbck
  11.  
  12. ___________________________________
  13. ]])
  14.  
  15. function checkfriendlist(model)
  16. local friend = true
  17. local target = nil
  18. if model.ClassName == "Player" then
  19. target = model
  20. else
  21. target = game:GetService("Players"):GetPlayerFromCharacter(model)
  22. end
  23. if target ~= nil then
  24. if target:IsFriendsWith(153566520) then friend = true end
  25. end
  26. return friend
  27. end
  28.  
  29. if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
  30. warn("You're not whitelisted")
  31. --wait(1)
  32. --error("Script has been stopped.")
  33. end
  34.  
  35. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  36.  
  37. else
  38. while true do
  39. wait()
  40. local blind = Instance.new('ScreenGui')
  41. local user = game.Players.LocalPlayer
  42. blind.Parent = user.PlayerGui
  43. local scr = Instance.new('TextLabel')
  44. scr.Parent = blind
  45. scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
  46. scr.TextScaled = true
  47. scr.Font = Enum.Font.Arial
  48. scr.TextColor = BrickColor.new(1001)
  49. scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  50. scr.BorderColor3 = Color3.new(0, 0, 0)
  51. scr.Position = UDim2.new(0, 0, 0, 0)
  52. scr.Size = UDim2.new(1, 1, 1, 1)
  53. end
  54. end
  55.  
  56. --whitelist--
  57. --chat
  58. Player = game:GetService("Players").LocalPlayer
  59. PlayerGui = Player.PlayerGui
  60. Cam = workspace.CurrentCamera
  61. Backpack = Player.Backpack
  62. Character = Player.Character
  63. char = Player.Character
  64. Humanoid = Character.Humanoid
  65. Mouse = Player:GetMouse()
  66. RootPart = Character["HumanoidRootPart"]
  67. Torso = Character["Torso"]
  68. Head = Character["Head"]
  69. RightArm = Character["Right Arm"]
  70. LeftArm = Character["Left Arm"]
  71. RightLeg = Character["Right Leg"]
  72. LeftLeg = Character["Left Leg"]
  73. RootJoint = RootPart["RootJoint"]
  74. Neck = Torso["Neck"]
  75. RightShoulder = Torso["Right Shoulder"]
  76. LeftShoulder = Torso["Left Shoulder"]
  77. RightHip = Torso["Right Hip"]
  78. LeftHip = Torso["Left Hip"]
  79.  
  80. local Orin = "http://www.roblox.com/asset/?id=7074786"
  81. Head.face.Texture = Orin
  82. function weld(a, b, acf)
  83. local w = Instance.new("Weld", a)
  84. w.Part0 = a
  85. w.Part1 = b
  86. w.C0 = acf
  87. end
  88. local righteyebrickcolor = "Toothpaste"
  89. local reye = Instance.new("Part", char)
  90. reye.CanCollide = false
  91. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  92. reye.Material = "Neon"
  93. reye.Size = Vector3.new(.25,.35,.15)
  94. weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
  95. m1 = Instance.new("SpecialMesh", reye)
  96. m1.MeshType = "Sphere"
  97. m1.Scale = Vector3.new(0.9,0.9,0.9)
  98. reye.Locked = true
  99. reye.Name = "re"
  100.  
  101.  
  102. --chat
  103.  
  104. local p = game:GetService("Players").LocalPlayer
  105. local plr = game:GetService("Players").LocalPlayer
  106. local player = game:GetService("Players").LocalPlayer
  107. local char = p.Character
  108. local mouse = p:GetMouse()
  109. local larm = char:WaitForChild("Left Arm")
  110. local rarm = char:WaitForChild("Right Arm")
  111. local lleg = char:WaitForChild("Left Leg")
  112. local rleg = char:WaitForChild("Right Leg")
  113. local hed = char:WaitForChild("Head")
  114. local torso = char:WaitForChild("Torso")
  115. local root = char:WaitForChild("HumanoidRootPart")
  116. local hum = char:FindFirstChildOfClass("Humanoid")
  117. local debris = game:GetService("Debris")
  118. local run = game:GetService("RunService")
  119. local rs = run.RenderStepped
  120. local cam = workspace.CurrentCamera
  121. local movement = 4
  122. local change = 0.4
  123. local DebrisModel = Instance.new("Model",char)
  124. local stealth = false
  125. local debounce = false
  126. hum.MaxHealth = 50000
  127. hum.Health = hum.MaxHealth
  128. themeid = 175635113
  129. themepitch = 1.4
  130. main = {r = 0;g = 100;b = 255;v = 1}
  131. if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
  132. if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
  133. if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
  134. if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
  135. if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
  136. if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
  137. pr = p:FindFirstChild("rcolor")
  138. pg = p:FindFirstChild("gcolor")
  139. pb = p:FindFirstChild("bcolor")
  140. pv = p:FindFirstChild("vcolor")
  141. idth = p:FindFirstChild("idtheme")
  142. pith = p:FindFirstChild("pitchtheme")
  143. main_color = Color3.fromRGB(main.r,main.g,main.b)
  144. explosionid = {262562442,144699494,539294959,1388740053}
  145. --919941001
  146. Prefix = "/"
  147. p.Chatted:connect(function(msg)
  148.  
  149. if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
  150. local v = tonumber(msg:sub(#Prefix+#'color r '+1))
  151. main.r = v
  152. elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
  153. local v = tonumber(msg:sub(#Prefix+#'color g '+1))
  154. main.g = v
  155. elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
  156. local v = tonumber(msg:sub(#Prefix+#'color b '+1))
  157. main.b = v
  158. elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
  159. local v = tonumber(msg:sub(#Prefix+#'color v '+1))
  160. if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
  161.  
  162. elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
  163. local v = tonumber(msg:sub(#Prefix+#'theme '+1))
  164. themeid = v
  165. music(themeid,themepitch)
  166.  
  167. elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
  168. local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
  169. themepitch = v
  170. music(themeid,themepitch)
  171.  
  172. elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
  173. local v = msg:sub(#Prefix+#'prefix '+1)
  174. Prefix = v
  175.  
  176. elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
  177. main.r = 0
  178. main.g = 100
  179. main.b = 255
  180. main.v = 1
  181. themeid = 175635113
  182. themepitch = 1
  183. music(themeid,themepitch)
  184.  
  185. end
  186.  
  187. end)
  188. ----------------------------------------------------------------------------
  189. no_anim = false
  190. attack = false
  191. attacking = false
  192. canjump = true
  193. aiming_anim = false
  194. animid = math.random(0,1)
  195. timer = 0
  196. bg = Instance.new("BodyGyro",root)
  197. bg.P = 100000
  198. bg.D = 100
  199. ----------------------------------------------------------------------------
  200.  
  201. function rswait(value)
  202. if value ~= nil and value ~= 0 then
  203. for i=1,value do
  204. rs:wait()
  205. end
  206. else
  207. rs:wait()
  208. end
  209. end
  210.  
  211. ----------------------------------------------------------------------------
  212. max = 0
  213. function music(id,pitch)
  214. max = 0
  215. if id == "Stop" then
  216. if not torso:FindFirstChild("MusicRuin") then
  217. soundz = Instance.new("Sound",torso)
  218. end
  219. soundz:Stop()
  220. else
  221. if not torso:FindFirstChild("MusicRuin") then
  222. soundz = Instance.new("Sound",torso)
  223. end
  224. soundz.MaxDistance = 150*5
  225. soundz.EmitterSize = 150/5
  226. soundz.Volume = 10
  227. soundz.Name = "MusicRuin"
  228. soundz.Looped = true
  229. soundz.PlaybackSpeed = pitch
  230. soundz.SoundId = "rbxassetid://"..id
  231. soundz:Stop()
  232. soundz:Play()
  233. end
  234. end
  235.  
  236. ----------------------------------------------------------------------------
  237.  
  238. function lerp(a, b, t)
  239. return a + (b - a)*t
  240. end
  241.  
  242. ----------------------------------------------------------------------------
  243.  
  244. function Lerp(c1,c2,al)
  245. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  246. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  247. for i,v in pairs(com1) do
  248. com1[i] = v+(com2[i]-v)*al
  249. end
  250. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  251. end
  252.  
  253. ----------------------------------------------------------------------------
  254.  
  255. function slerp(a, b, t)
  256. dot = a:Dot(b)
  257. if dot > 0.99999 or dot < -0.99999 then
  258. return t <= 0.5 and a or b
  259. else
  260. r = math.acos(dot)
  261. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  262. end
  263. end
  264.  
  265. ----------------------------------------------------------------------------
  266.  
  267. function clerp(c1,c2,al)
  268.  
  269. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  270.  
  271. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  272.  
  273. for i,v in pairs(com1) do
  274.  
  275. com1[i] = lerp(v,com2[i],al)
  276.  
  277. end
  278.  
  279. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  280.  
  281. end
  282.  
  283. ----------------------------------------------------------------------------
  284.  
  285. function findAllNearestTorso(pos,dist)
  286. local list = game.Workspace:children()
  287. local torso = {}
  288. local temp = nil
  289. local human = nil
  290. local temp2 = nil
  291. for x = 1, #list do
  292. temp2 = list[x]
  293. if (temp2.className == "Model") and (temp2 ~= char) then
  294. local nayem = "Torso"
  295. if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
  296. temp = temp2:findFirstChild(nayem)
  297. human = temp2:findFirstChildOfClass("Humanoid")
  298. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  299. if (temp.Position - pos).magnitude < dist then
  300. table.insert(torso,temp)
  301. dist = (temp.Position - pos).magnitude
  302. end
  303. end
  304. end
  305. end
  306. return torso
  307. end
  308.  
  309. ----------------------------------------------------------------------------
  310.  
  311. local isAPlayer
  312. function checkIfNotPlayer(model)
  313. coroutine.resume(coroutine.create(function()
  314. 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
  315. isAPlayer = true
  316. else
  317. isAPlayer = false
  318. end
  319. end))
  320. return isAPlayer
  321. end
  322.  
  323. ----------------------------------------------------------------------------
  324.  
  325. function computeDirection(vec)
  326. local lenSquared = vec.magnitude * vec.magnitude
  327. local invSqrt = 1 / math.sqrt(lenSquared)
  328. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  329. end
  330.  
  331. ----------------------------------------------------------------------------
  332.  
  333. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  334.  
  335. local wld = Instance.new("Weld", wp1)
  336.  
  337. wld.Part0 = wp0
  338.  
  339. wld.Part1 = wp1
  340.  
  341. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  342.  
  343. return wld
  344.  
  345. end
  346.  
  347. ----------------------------------------------------------------------------
  348.  
  349. function weld(model)
  350. local parts,last = {}
  351. local function scan(parent)
  352. for _,v in pairs(parent:GetChildren()) do
  353. if (v:IsA("BasePart")) then
  354. if (last) then
  355. local w = Instance.new("Weld")
  356. w.Name = ("%s_Weld"):format(v.Name)
  357. w.Part0,w.Part1 = last,v
  358. w.C0 = last.CFrame:inverse()
  359. w.C1 = v.CFrame:inverse()
  360. w.Parent = last
  361. end
  362. last = v
  363. table.insert(parts,v)
  364. end
  365. scan(v)
  366. end
  367. end
  368. scan(model)
  369. for _,v in pairs(parts) do
  370. v.Anchored = false
  371. v.Locked = true
  372. end
  373. end
  374.  
  375. ----------------------------------------------------------------------------
  376.  
  377. function sound(id,position,vol,pitch,dist,start,finish)
  378. coroutine.resume(coroutine.create(function()
  379.  
  380. local part = Instance.new("Part",DebrisModel)
  381. part.Anchored = true
  382. part.Position = position
  383. part.Size = Vector3.new(0,0,0)
  384. part.CanCollide = false
  385. part.Transparency = 1
  386.  
  387. soundasd = Instance.new("Sound",part)
  388.  
  389. soundasd.SoundId = "rbxassetid://"..id
  390.  
  391. if vol ~= nil then
  392. soundasd.Volume = vol
  393. end
  394.  
  395. if pitch ~= nil then
  396. soundasd.PlaybackSpeed = pitch
  397. end
  398.  
  399. if dist ~= nil then
  400. soundasd.MaxDistance = dist*5
  401. soundasd.EmitterSize = dist/5
  402. end
  403.  
  404. delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
  405.  
  406. soundasd:Play()
  407.  
  408. end))
  409. return soundasd
  410. end
  411.  
  412. function createsound(id,parent)
  413.  
  414. local soundz = Instance.new("Sound",parent)
  415.  
  416. soundz.SoundId = "rbxassetid://"..id
  417.  
  418. return soundz
  419.  
  420. end
  421.  
  422. function playsound(sond,vol,pitch,start)
  423.  
  424. if vol ~= nil then
  425. sond.Volume = vol
  426. end
  427.  
  428. if pitch ~= nil then
  429. sond.PlaybackSpeed = pitch
  430. end
  431.  
  432. if start ~= nil then
  433. sond.TimePosition = start
  434. end
  435.  
  436. sond:Play()
  437.  
  438. end
  439.  
  440. ----------------------------------------------------------------------------
  441. eColors={"Really red","Really black"}
  442. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  443. local magz = (Part0 - Part1).magnitude
  444. local curpos = Part0
  445. local trz = {-Offset,Offset}
  446. for i=1,Times do
  447. local li = Instance.new("Part", DebrisModel)
  448. li.TopSurface =0
  449. li.Material = Enum.Material.Neon
  450. li.BottomSurface = 0
  451. li.Anchored = true
  452. li.Locked = true
  453. li.Transparency = Trans or 0.4
  454. li.BrickColor = BrickColor.new(Color)
  455. li.formFactor = "Custom"
  456. li.CanCollide = false
  457. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  458. local lim = Instance.new("BlockMesh",li)
  459. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  460. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  461. if Times == i then
  462. local magz2 = (curpos - Part1).magnitude
  463. li.Size = Vector3.new(Thickness,Thickness,magz2)
  464. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  465. else
  466. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  467. end
  468. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  469. li.Name = "LIGHTNING"
  470. end
  471. end
  472.  
  473. ----------------------------------------------------------------------------
  474.  
  475. local HBill = Instance.new("BillboardGui",hed)
  476. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  477. local HName = Instance.new("TextLabel")
  478. HBill.Size = UDim2.new(15,0,2.2,0)
  479. HBill.StudsOffset = Vector3.new(3.675,1.2,0)
  480. HBill.AlwaysOnTop = true
  481. HBill.Enabled = true
  482. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  483. HMain.BackgroundTransparency = 1
  484. HMain.Size = UDim2.new(.5,0,.2,0)
  485. HName.Parent = HMain
  486. HName.BackgroundTransparency = 1
  487. HName.BackgroundColor3 = Color3.new(244,255,25)
  488. HName.BorderColor3 = Color3.new(244,255,25)
  489. HName.BorderSizePixel = 2
  490. HName.Size = UDim2.new(1,0,.75,0)
  491. HName.Font = "Code"
  492. HName.Text = [[( Dream!Tale )]]
  493. HName.TextScaled = true
  494. HName.TextColor3 = Color3.new(244,255,25)
  495. HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
  496. HName.TextStrokeTransparency = 0
  497. HName.TextYAlignment = "Bottom"
  498.  
  499. local HBill = Instance.new("BillboardGui",hed)
  500. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  501. local HName = Instance.new("TextLabel")
  502. HBill.Size = UDim2.new(15,0,2.2,0)
  503. HBill.StudsOffset = Vector3.new(3.675,2,0)
  504. HBill.AlwaysOnTop = true
  505. HBill.Enabled = true
  506. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  507. HMain.BackgroundTransparency = 1
  508. HMain.Size = UDim2.new(.5,0,.5,0)
  509. HName.Parent = HMain
  510. HName.BackgroundTransparency = 1
  511. HName.BackgroundColor3 = Color3.new(0,0,0)
  512. HName.BorderColor3 = Color3.new(0,0,0)
  513. HName.BorderSizePixel = 2
  514. HName.Size = UDim2.new(1,0,.75,0)
  515. HName.Font = "Antique"
  516. HName.Text = [[Nightmare!Sans]]
  517. HName.TextScaled = true
  518. HName.TextColor3 = Color3.new(0,0,0)
  519. HName.TextStrokeColor3 = Color3.new(0,0,0)
  520. HName.TextStrokeTransparency = 0
  521. HName.TextYAlignment = "Bottom"
  522.  
  523. function bigboomrektxd()
  524. coroutine.resume(coroutine.create(function()
  525. local magnitude = nil
  526. local Position = nil
  527. if animid == 0 then
  528. Position = larm.Position
  529. else
  530. Position = rarm.Position
  531. end
  532. --sound(743499393,Position,10,math.random(6,8)/10)
  533. sound(440145223,Position,10,math.random(10,12)/10,50)
  534.  
  535. local Part1 = Instance.new("Part")
  536. local mesh2 = Instance.new("SpecialMesh",Part1)
  537. mesh2.MeshId = "rbxassetid://559831844"
  538. mesh2.Scale = Vector3.new(0,0,0.4)
  539. Part1.Material = Enum.Material.Neon
  540. Part1.CanCollide = false
  541. Part1.Color = Color3.fromHSV(0,0,main.v)
  542. Part1.Parent = DebrisModel
  543. Part1.Size = Vector3.new(0,0,0)
  544. Part1.Anchored = true
  545. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  546. Part1.Name = "EXPLOSION2"
  547.  
  548. local Part0 = Instance.new("Part",DebrisModel)
  549. local PointLight2 = Instance.new("PointLight")
  550. Part0.Name = "Bullet"
  551. Part0.Material = Enum.Material.Neon
  552. Part0.Color = Color3.fromHSV(0,0,main.v)
  553. Part0.Anchored = false
  554. Part0.Size = Vector3.new(5, 5, 5)
  555. local mesh = Instance.new("SpecialMesh",Part0)
  556. mesh.MeshType = Enum.MeshType.Sphere
  557. local bforce = Instance.new("BodyForce",Part0)
  558. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  559. Part0.CanCollide = false
  560. PointLight2.Parent = Part0
  561. PointLight2.Color = Part0.Color
  562. local Target = mouse.Hit.p
  563. local direction = Target - Position
  564. local direction = computeDirection(direction)
  565. local pos = Position + (direction * 2)
  566. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  567. Part0.Velocity = direction * 60
  568. local asd = nil
  569. local loop = nil
  570. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  571. loop = rs:connect(function()
  572. local asdf = math.random(500,1000)/1000
  573. local Part1 = Instance.new("Part")
  574. local mesh2 = Instance.new("SpecialMesh",Part1)
  575. mesh2.MeshType = Enum.MeshType.Sphere
  576. Part1.Material = Enum.Material.Neon
  577. Part1.CanCollide = false
  578. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  579. Part1.Parent = DebrisModel
  580. Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
  581. Part1.Anchored = true
  582. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
  583. Part1.Name = "SMOKE"
  584. end)
  585. asd = Part0.Touched:connect(function(ht)
  586. local hit=ht.Parent
  587. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  588. asd:disconnect()
  589. loop:disconnect()
  590. Part0:Destroy()
  591.  
  592. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
  593. for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
  594. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  595. v:Destroy()
  596. else
  597. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
  598. end
  599. local Position = Part0.Position
  600. local Target = v.Position
  601. local direction = Target - Position
  602. local direction = computeDirection(direction)
  603. local bv = Instance.new("BodyVelocity",v)
  604. bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
  605. debris:AddItem(bv,1)
  606. end
  607. for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
  608. for z=1,math.random(2,3) do
  609. local asdf = math.random(-5,5)*10-(i/20)*8
  610. local Part1 = Instance.new("Part")
  611. local mesh2 = Instance.new("SpecialMesh",Part1)
  612. mesh2.MeshType = Enum.MeshType.Sphere
  613. mesh2.Scale = Vector3.new(0,0,0)
  614. Part1.Material = Enum.Material.Neon
  615. Part1.CanCollide = false
  616. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  617. Part1.Parent = DebrisModel
  618. Part1.Size = Vector3.new(asdf,asdf,asdf)
  619. Part1.Anchored = true
  620. local a = i*0.5
  621. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
  622. Part1.Name = "EXPLOSION"
  623. end
  624. end
  625.  
  626. end
  627. end)
  628. end))
  629. end
  630.  
  631. holdclick=false
  632.  
  633. mouse.Button1Down:connect(function()
  634. if debounce == false then
  635. if animid == 0 then
  636. animid = 1
  637. else
  638. animid = 0
  639. end
  640. debounce = true
  641. holdclick = true
  642. aiming_anim = true
  643. wait(0.2)
  644. repeat
  645. rs:wait()
  646. timer = 150
  647. until holdclick == false
  648. bigboomrektxd()
  649.  
  650. local Position = mouse.Hit.p
  651. local Target = root.Position
  652. local direction = Target - Position
  653. local direction = computeDirection(direction)
  654. root.Velocity = direction * 150
  655.  
  656. aiming_anim = false
  657. delay(0.3,function() debounce = false end)
  658. end
  659. end)
  660.  
  661. mouse.Button1Up:connect(function()
  662. holdclick=false
  663. end)
  664.  
  665. function dashasdf()
  666. debounce = true
  667.  
  668. canjump = false
  669. attack = true
  670.  
  671. for i,v in pairs(char:GetChildren()) do
  672. if v ~= root then
  673. if v:IsA("Part") then
  674. v.Transparency = 1
  675. elseif v:IsA("Accoutrement") then
  676. v:FindFirstChildOfClass("Part").Transparency = 1
  677. end
  678. end
  679. end
  680.  
  681. local tempattachment = Instance.new("Attachment",root)
  682. tempattachment.Position = Vector3.new(0,0,-4)
  683.  
  684. for i=1,20 do rs:wait()
  685. root.Velocity = Vector3.new(0,0,0)
  686. root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
  687. local asdf = math.random(500,1000)/100
  688. local Part1 = Instance.new("Part")
  689. local mesh2 = Instance.new("SpecialMesh",Part1)
  690. mesh2.MeshType = Enum.MeshType.Sphere
  691. Part1.Material = Enum.Material.Neon
  692. Part1.CanCollide = false
  693. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  694. Part1.Parent = DebrisModel
  695. Part1.Size = Vector3.new(asdf,asdf,asdf)
  696. Part1.Anchored = true
  697. Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
  698. Part1.Name = "SMOKE"
  699. end
  700.  
  701. tempattachment:Destroy()
  702.  
  703. for i,v in pairs(char:GetChildren()) do
  704. if v ~= root then
  705. if v:IsA("Part") then
  706. v.Transparency = 0
  707. elseif v:IsA("Accoutrement") then
  708. v:FindFirstChildOfClass("Part").Transparency = 0
  709. end
  710. end
  711. end
  712.  
  713. canjump = true
  714. attack = false
  715.  
  716. delay(0.1,function() debounce = false end)
  717. end
  718.  
  719. function laz0r()
  720.  
  721. local Position = nil
  722. if animid == 0 then
  723. Position = larm.Position
  724. else
  725. Position = rarm.Position
  726. end
  727.  
  728. local Part1 = Instance.new("Part")
  729. local mesh2 = Instance.new("SpecialMesh",Part1)
  730. mesh2.MeshId = "rbxassetid://559831844"
  731. mesh2.Scale = Vector3.new(0,0,0.4)
  732. Part1.Material = Enum.Material.Neon
  733. Part1.CanCollide = false
  734. Part1.Color = Color3.fromHSV(0,0,main.v)
  735. Part1.Parent = DebrisModel
  736. Part1.Size = Vector3.new(0,0,0)
  737. Part1.Anchored = true
  738. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  739. Part1.Name = "EXPLOSION3"
  740.  
  741. local Part0 = Instance.new("Part",DebrisModel)
  742. Part0.Name = "Bullet"
  743. Part0.Material = Enum.Material.Neon
  744. Part0.Color = Color3.fromHSV(0,0,main.v)
  745. Part0.Anchored = true
  746. local mesh = Instance.new("SpecialMesh",Part0)
  747. mesh.MeshType = Enum.MeshType.Sphere
  748. Part0.CanCollide = false
  749. local Target = mouse.Hit.p
  750. local direction = Target - Position
  751. local direction = computeDirection(direction)
  752. local ray = Ray.new(Position, (Target-Position).unit*1048)
  753. local part, endPoint = workspace:FindPartOnRay(ray, char)
  754. Part0.Size = Vector3.new(5,1,5)
  755. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  756. local pos = Position + (direction * (mesh.Scale.Y/2))
  757. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  758.  
  759. clashpart = Instance.new("Part",DebrisModel)
  760. clashpart.Size = Vector3.new(50,50,50)
  761. clashpart.CanCollide = false
  762. clashpart.Anchored = true
  763. clashpart.Transparency = 1
  764. clashpart.Color = main_color
  765. clashpart.Name = "StarLightClash"
  766. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  767.  
  768. sound(1177475476,Position,10,math.random(5,6)/10,300)
  769.  
  770. local z = 10
  771. for i = 1,100 do rs:wait()
  772. if animid == 0 then
  773. Position = larm.Position
  774. else
  775. Position = rarm.Position
  776. end
  777. local Target = mouse.Hit.p
  778. local direction = Target - Position
  779. local direction = computeDirection(direction)
  780. local ray = Ray.new(Position, (Target-Position).unit*1048)
  781. local part, endPoint = workspace:FindPartOnRay(ray, char)
  782. Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
  783. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  784. mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
  785. local pos = Position + (direction * (mesh.Scale.Y/2))
  786. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  787. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  788.  
  789. local Position = mouse.Hit.p
  790. local Target = root.Position
  791. local direction = Target - Position
  792. local direction = computeDirection(direction)
  793. root.Velocity = direction * 5
  794.  
  795. if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
  796.  
  797. Part1 = Part0:Clone()
  798. Part1.Parent = DebrisModel
  799. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  800. Part1.Name = "SMOKE2"
  801.  
  802. if part ~= nil then
  803. if part.Name == "StarLightClash" then
  804. local asdf = math.random(0,5)*20
  805. local Part1 = Instance.new("Part")
  806. local mesh2 = Instance.new("SpecialMesh",Part1)
  807. mesh2.MeshType = Enum.MeshType.Sphere
  808. mesh2.Scale = Vector3.new(0,0,0)
  809. Part1.Material = Enum.Material.Neon
  810. Part1.CanCollide = false
  811. 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)
  812. Part1.Parent = DebrisModel
  813. Part1.Size = Vector3.new(asdf,asdf,asdf)
  814. Part1.Anchored = true
  815. local a = 1.5
  816. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  817. Part1.Name = "EXPLOSION"
  818. else
  819. local asdf = math.random(0,5)*10
  820. local Part1 = Instance.new("Part")
  821. local mesh2 = Instance.new("SpecialMesh",Part1)
  822. mesh2.MeshType = Enum.MeshType.Sphere
  823. mesh2.Scale = Vector3.new(0,0,0)
  824. Part1.Material = Enum.Material.Neon
  825. Part1.CanCollide = false
  826. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  827. Part1.Parent = DebrisModel
  828. Part1.Size = Vector3.new(asdf,asdf,asdf)
  829. Part1.Anchored = true
  830. local a = 1.5
  831. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  832. Part1.Name = "EXPLOSION"
  833. end
  834. end
  835.  
  836. for i,v in pairs(findAllNearestTorso(endPoint,50)) do
  837. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  838. v:Destroy()
  839. else
  840. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
  841. end
  842. local Position = mouse.Hit.p
  843. local Target = v.Position
  844. local direction = Target - Position
  845. local direction = computeDirection(direction)
  846. local bv = Instance.new("BodyVelocity",v)
  847. bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
  848. debris:AddItem(bv,1)
  849. end
  850.  
  851. end
  852. clashpart:Destroy()
  853. Part0:Destroy()
  854. wait(0.3)
  855. aiming_anim = false
  856. delay(0.3,function() debounce = false end)
  857. end
  858.  
  859. function nukewelpo()
  860. coroutine.resume(coroutine.create(function()
  861. local magnitude = nil
  862. local Position = nil
  863. if animid == 0 then
  864. Position = larm.Position
  865. else
  866. Position = rarm.Position
  867. end
  868. --sound(743499393,Position,10,math.random(6,8)/10)
  869. sound(440145223,Position,10,math.random(4,5)/10,100)
  870.  
  871. local Part1 = Instance.new("Part")
  872. local mesh2 = Instance.new("SpecialMesh",Part1)
  873. mesh2.MeshId = "rbxassetid://559831844"
  874. mesh2.Scale = Vector3.new(0,0,0.4)
  875. Part1.Material = Enum.Material.Neon
  876. Part1.CanCollide = false
  877. Part1.Color = Color3.fromHSV(0,0,main.v)
  878. Part1.Parent = DebrisModel
  879. Part1.Size = Vector3.new(0,0,0)
  880. Part1.Anchored = true
  881. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  882. Part1.Name = "EXPLOSION3"
  883.  
  884. local Part0 = Instance.new("Part",DebrisModel)
  885. local PointLight2 = Instance.new("PointLight")
  886. Part0.Name = "Bullet"
  887. Part0.Material = Enum.Material.Neon
  888. Part0.Color = Color3.fromHSV(0,0,main.v)
  889. Part0.Anchored = false
  890. Part0.Size = Vector3.new(5, 5, 5)
  891. local mesh = Instance.new("SpecialMesh",Part0)
  892. mesh.MeshType = Enum.MeshType.Sphere
  893. mesh.Scale = Vector3.new(3,3,3)
  894. local bforce = Instance.new("BodyForce",Part0)
  895. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  896. Part0.CanCollide = false
  897. PointLight2.Parent = Part0
  898. PointLight2.Color = Part0.Color
  899. local Target = mouse.Hit.p
  900. local direction = Target - Position
  901. local direction = computeDirection(direction)
  902. local pos = Position + (direction * 2)
  903. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  904. Part0.Velocity = direction * 150
  905. local asd = nil
  906. local loop = nil
  907. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  908. loop = rs:connect(function()
  909. local asdf = math.random(500,1000)/1000
  910. local Part1 = Instance.new("Part")
  911. local mesh2 = Instance.new("SpecialMesh",Part1)
  912. mesh2.MeshType = Enum.MeshType.Sphere
  913. Part1.Material = Enum.Material.Neon
  914. Part1.CanCollide = false
  915. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  916. Part1.Parent = DebrisModel
  917. Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
  918. Part1.Anchored = true
  919. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
  920. Part1.Name = "SMOKE"
  921. end)
  922. asd = Part0.Touched:connect(function(ht)
  923. local hit=ht.Parent
  924. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  925. asd:disconnect()
  926. loop:disconnect()
  927. Part0:Destroy()
  928.  
  929. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
  930. for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
  931. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  932. v:Destroy()
  933. else
  934. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
  935. end
  936. local Position = Part0.Position
  937. local Target = v.Position
  938. local direction = Target - Position
  939. local direction = computeDirection(direction)
  940. local bv = Instance.new("BodyVelocity",v)
  941. bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
  942. debris:AddItem(bv,1)
  943. end
  944. for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
  945. for z=1,math.random(2,3) do
  946. local asdf = math.random(-5,5)*10-(i/20)*12
  947. local Part1 = Instance.new("Part")
  948. local mesh2 = Instance.new("SpecialMesh",Part1)
  949. mesh2.MeshType = Enum.MeshType.Sphere
  950. mesh2.Scale = Vector3.new(0,0,0)
  951. Part1.Material = Enum.Material.Neon
  952. Part1.CanCollide = false
  953. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  954. Part1.Parent = DebrisModel
  955. Part1.Size = Vector3.new(asdf,asdf,asdf)
  956. Part1.Anchored = true
  957. local a = i*5
  958. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
  959. Part1.Name = "EXPLOSION4"
  960. end
  961. end
  962.  
  963. end
  964. end)
  965. end))
  966. end
  967.  
  968. holdq = false
  969. holdr = false
  970. cooldownult = false
  971.  
  972. mouse.KeyDown:connect(function(key)
  973. if debounce == false then
  974. if key == "e" then
  975. dashasdf()
  976. elseif key == "r" and cooldownult == false then
  977. cooldownult = true
  978. if animid == 0 then
  979. animid = 1
  980. else
  981. animid = 0
  982. end
  983. debounce = true
  984. holdr = true
  985. aiming_anim = true
  986. wait(0.2)
  987. repeat
  988. rs:wait()
  989. timer = 150
  990. until holdr == false
  991. nukewelpo()
  992.  
  993. local Position = mouse.Hit.p
  994. local Target = root.Position
  995. local direction = Target - Position
  996. local direction = computeDirection(direction)
  997. root.Velocity = direction * 300
  998.  
  999. aiming_anim = false
  1000. delay(5,function() cooldownult = false end)
  1001. delay(1,function() debounce = false end)
  1002.  
  1003. elseif key == "q" then
  1004. debounce = true
  1005. if animid == 0 then
  1006. animid = 1
  1007. else
  1008. animid = 0
  1009. end
  1010. holdq = true
  1011. attack = true
  1012. aiming_anim = true
  1013. repeat rs:wait() timer = 150 until holdq == false
  1014. laz0r()
  1015. attack = false
  1016. end
  1017. end
  1018. end)
  1019.  
  1020. mouse.KeyUp:connect(function(key)
  1021. if key == "q" then
  1022. holdq = false
  1023. elseif key == "r" then
  1024. holdr = false
  1025. end
  1026. end)
  1027.  
  1028. ----------------------------------------------------------------------------
  1029. music(themeid,themepitch)
  1030. velocityYFall=0
  1031. velocityYFall2=0
  1032. velocityYFall3=0
  1033. velocityYFall4=0
  1034. neckrotY=0
  1035. neckrotY2=0
  1036. torsorotY=0
  1037. torsorotY2=0
  1038. torsoY=0
  1039. torsoY2=0
  1040. sine = 0
  1041. newWeld(torso, larm, -1.5, 0.5, 0)
  1042. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1043. newWeld(torso, rarm, 1.5, 0.5, 0)
  1044. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1045. newWeld(torso, hed, 0, 1.5, 0)
  1046. newWeld(torso, lleg, -0.5, -1, 0)
  1047. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1048. newWeld(torso, rleg, 0.5, -1, 0)
  1049. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1050. newWeld(root, torso, 0, -1, 0)
  1051. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1052.  
  1053. rs:connect(function()
  1054.  
  1055. bg.MaxTorque = Vector3.new(0,0,0)
  1056.  
  1057. for i,v in pairs(DebrisModel:GetChildren()) do
  1058.  
  1059.  
  1060. if v.Name == "EXPLOSION" then
  1061. local change = 0.04-(v.Transparency*0.02)
  1062. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1063. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1064. v.Transparency = v.Transparency + 0.02
  1065. if v.Transparency >= 1 then
  1066. v:Destroy()
  1067. end
  1068.  
  1069. elseif v.Name == "EXPLOSION2" then
  1070. local change = 0.04-(v.Transparency*0.04)
  1071. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1072. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1073. v.Transparency = v.Transparency + 0.025
  1074. if v.Transparency >= 1 then
  1075. v:Destroy()
  1076. end
  1077.  
  1078. elseif v.Name == "EXPLOSION3" then
  1079. local change = 0.5-(v.Transparency*0.5)
  1080. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1081. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1082. v.Transparency = v.Transparency + 0.1
  1083. if v.Transparency >= 1 then
  1084. v:Destroy()
  1085. end
  1086.  
  1087. elseif v.Name == "EXPLOSION4" then
  1088. local change = 0.15-(v.Transparency*0.125)
  1089. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1090. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1091. v.Transparency = v.Transparency + 0.01
  1092. if v.Transparency >= 1 then
  1093. v:Destroy()
  1094. end
  1095.  
  1096. elseif v.Name == "SMOKE" then
  1097. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1098. vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
  1099. if vm.Scale.X <= 0 then
  1100. v:Destroy()
  1101. end
  1102.  
  1103. elseif v.Name == "SMOKE2" then
  1104. local change = 2-(v.Transparency*2)
  1105. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1106. local Position = nil
  1107. if animid == 0 then
  1108. Position = larm.Position
  1109. else
  1110. Position = rarm.Position
  1111. end
  1112. local Target = mouse.Hit.p
  1113. local direction = Target - Position
  1114. local direction = computeDirection(direction)
  1115. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1116. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1117. vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
  1118. local pos = Position + (direction * (vm.Scale.Y/2))
  1119. v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1120. vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
  1121. v.Transparency = v.Transparency + 0.1
  1122. if v.Transparency >= 1 then
  1123. v:Destroy()
  1124. end
  1125.  
  1126.  
  1127. elseif v.Name == "LIGHTNING" then
  1128. local vm = v:FindFirstChildOfClass("BlockMesh")
  1129. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  1130. if vm.Scale.X <= 0 then
  1131. v:Destroy()
  1132. end
  1133.  
  1134. end
  1135. end
  1136.  
  1137. if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
  1138. velocityYFall = root.Velocity.Y/1.5
  1139. end
  1140. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1141. velocityYFall2 = root.Velocity.Y/180
  1142. end
  1143. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1144. velocityYFall3 = root.Velocity.Y/1.5
  1145. end
  1146. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1147. velocityYFall4 = root.Velocity.Y/1.5
  1148. end
  1149. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1150. neckrotY = root.RotVelocity.Y/6
  1151. end
  1152. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1153. neckrotY2 = root.RotVelocity.Y/8
  1154. end
  1155.  
  1156. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1157. torsorotY = root.RotVelocity.Y/6
  1158. end
  1159. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1160. torsorotY2 = root.RotVelocity.Y/8
  1161. end
  1162.  
  1163.  
  1164. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1165. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1166.  
  1167. if attack == true then
  1168. hum.WalkSpeed = 1
  1169. else
  1170. hum.WalkSpeed = 10
  1171. end
  1172.  
  1173. if canjump == true then
  1174. hum.JumpPower = 50
  1175. else
  1176. hum.JumpPower = 0
  1177. end
  1178.  
  1179. local jumped = false
  1180. local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1181. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1182. local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1183. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1184. local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1185. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1186. local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1187. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1188.  
  1189. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1190.  
  1191. local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1192. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1193.  
  1194. local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1195. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1196.  
  1197. if no_anim == false then
  1198. if hum.Health > 0 then
  1199. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1200. 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)
  1201. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
  1202. 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)
  1203. 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)
  1204. 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)
  1205. 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)
  1206. 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)
  1207. elseif jumped == true then
  1208. 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)
  1209. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
  1210. 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)
  1211. 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)
  1212. 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)
  1213. 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)
  1214. 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)
  1215. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  1216. 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)
  1217. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
  1218. 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)
  1219. 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)
  1220. 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)
  1221. 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)
  1222. 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)
  1223. end
  1224. for i=1,5 do
  1225. if aiming_anim == true then
  1226. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1227. if jumped == false then
  1228. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1229. else
  1230. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1231. end
  1232. if animid == 0 then
  1233. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
  1234. 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)
  1235. 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)
  1236. else
  1237. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
  1238. 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)
  1239. 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)
  1240. end
  1241. else
  1242. if timer <= 0 then
  1243. animid = math.random(0,1)
  1244. else
  1245. timer = timer - 1
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251. main_color = Color3.fromRGB(main.r,main.g,main.b)
  1252. pr.Value = main.r
  1253. pg.Value = main.g
  1254. pb.Value = main.b
  1255. pv.Value = main.v
  1256. idth.Value = themeid
  1257. pith.Value = themepitch
  1258. HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
  1259. HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
  1260. sine = sine + change
  1261. if hum.Health <= 0 then
  1262. debounce = true
  1263. end
  1264. end)
  1265.  
  1266.  
  1267.  
  1268. --Extras--
  1269. q = char:GetChildren()
  1270. for u = 1, #q do
  1271. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1272. q[u]:remove()
  1273. elseif q[u].ClassName == "CharacterMesh" then
  1274. q[u]:remove()
  1275. elseif q[u].ClassName == "ShirtGraphic" then
  1276. q[u]:remove()
  1277. elseif q[u].ClassName == "Shirt" then
  1278. q[u]:Destroy()
  1279. elseif q[u].ClassName == "Pants" then
  1280. q[u]:Destroy()
  1281. end
  1282. end
  1283. local top = Instance.new("Shirt")
  1284. top.ShirtTemplate = "rbxassetid://1042097476"
  1285. top.Parent = char
  1286. local bottom = Instance.new("Pants")
  1287. bottom.PantsTemplate = "rbxassetid://1042097548"
  1288. bottom.Parent = char
  1289.  
  1290. local BodyColors = char:FindFirstChildOfClass"BodyColors"
  1291. if BodyColors then
  1292. BodyColors.HeadColor = BrickColor.new"Really black"
  1293. BodyColors.TorsoColor = BrickColor.new"Really black"
  1294. BodyColors.LeftArmColor = BrickColor.new"Really black"
  1295. BodyColors.RightArmColor = BrickColor.new"Really black"
  1296. BodyColors.LeftLegColor = BrickColor.new"Really black"
  1297. BodyColors.RightLegColor = BrickColor.new"Really black"
  1298. end
  1299.  
  1300. --extras
  1301. local talksound = Instance.new("Sound",char.Torso)
  1302. talksound.SoundId = "rbxassetid://928210219"
  1303. talksound.Volume = 4
  1304. local blastsound = Instance.new("Sound",char.Torso)
  1305. blastsound.Name = "blast_sound"
  1306. blastsound.SoundId = "rbxassetid://345052019"
  1307. blastsound.Volume = 4
  1308. function swait(num)
  1309. if num==0 or num==nil then
  1310. game:service'RunService'.Stepped:wait(0)
  1311. else
  1312. for i=0,num do
  1313. game:service'RunService'.Stepped:wait(0)
  1314. end
  1315. end
  1316. end
  1317.  
  1318. function chatfunc(text)
  1319. local chat = coroutine.wrap(function()
  1320. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1321. char:FindFirstChild("TalkingBillBoard"):Destroy()
  1322. end
  1323. local naeeym2 = Instance.new("BillboardGui",char)
  1324. naeeym2.Size = UDim2.new(0,100,0,40)
  1325. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1326. naeeym2.Adornee = char.Head
  1327. naeeym2.Name = "TalkingBillBoard"
  1328. local tecks2 = Instance.new("TextLabel",naeeym2)
  1329. tecks2.BackgroundTransparency = 1
  1330. tecks2.BorderSizePixel = 0
  1331. tecks2.Text = ""
  1332. tecks2.Font = "Fantasy"
  1333. tecks2.TextSize = 30
  1334. tecks2.TextStrokeTransparency = 0
  1335. tecks2.TextColor3 = Color3.new(.6,0,0)
  1336. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1337. tecks2.Size = UDim2.new(1,0,0.5,0)
  1338. local tecks3 = Instance.new("TextLabel",naeeym2)
  1339. tecks3.BackgroundTransparency = 1
  1340. tecks3.BorderSizePixel = 0
  1341. tecks3.Text = ""
  1342. tecks3.Font = "Fantasy"
  1343. tecks3.TextSize = 30
  1344. tecks3.TextStrokeTransparency = 0
  1345. tecks3.TextColor3 = Color3.new(0,0,0)
  1346. tecks3.TextStrokeColor3 = Color3.new(1,1,1)
  1347. tecks3.Size = UDim2.new(1,0,0.5,0)
  1348. for i = 1,string.len(text),1 do
  1349. tecks2.Text = string.sub(text,1,i)
  1350. tecks3.Text = string.sub(text,1,i)
  1351. tecks3.Text = string.sub(text,1,i)
  1352. talksound:Play()
  1353. wait(0.01)
  1354. end
  1355. wait(2)
  1356. for i = 1, 50 do
  1357. swait()
  1358. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1359. tecks2.Rotation = tecks2.Rotation - .8
  1360. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1361. tecks2.TextTransparency = tecks2.TextTransparency + .04
  1362. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1363. tecks3.Rotation = tecks2.Rotation + .8
  1364. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1365. tecks3.TextTransparency = tecks2.TextTransparency + .04
  1366. end
  1367. naeeym2:Destroy()
  1368. end)
  1369. chat()
  1370. end
  1371. function onChatted(msg)
  1372. chatfunc(msg)
  1373. end
  1374. plr.Chatted:connect(onChatted)
  1375. wait(2)
  1376. chatfunc("ItΒ΄s a beatefule night in void..")
  1377. wait(2)
  1378. chatfunc("Black is rising...")
  1379. wait(2)
  1380. chatfunc("Dream!Sans is dying....")
  1381. wait(2)
  1382. chatfunc("On days like these... Chara like you...")
  1383. wait(2)
  1384. chatfunc("Should be erasing in hell.")
  1385. wait(0.5)
  1386. char.Humanoid.Name = "Sans"
  1387.  
  1388. --chat
  1389.  
  1390. function Blast(AAA)
  1391. if AAA == "f" then
  1392. local chatmath = math.random(1,3)
  1393. if chatmath == 1 then
  1394. chatfunc("Gaster Blaster!")
  1395. end
  1396. if chatmath == 2 then
  1397. chatfunc("This is what you get for killing everybody.")
  1398. end
  1399. if chatmath == 3 then
  1400. chatfunc("Look, I gave up trying to go back a long time ago.")
  1401. end
  1402. local gasterblaster = Instance.new("Part",char.Torso)
  1403. gasterblaster.Size = Vector3.new(7, 16, 4)
  1404. gasterblaster.CanCollide = false
  1405. local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
  1406. gasterblastermesh.MeshId = "rbxassetid://431908407"
  1407. gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
  1408. local gasterblastertexture = Instance.new("Decal",gasterblaster)
  1409. gasterblastertexture.Face = "Back"
  1410. gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
  1411. local weeld = Instance.new("Weld",gasterblaster)
  1412. weeld.Part0 = gasterblaster
  1413. weeld.Part1 = char.Torso
  1414. weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
  1415. blastsound:Play()
  1416. char.Head.Anchored = true
  1417. wait(1)
  1418. local blast = Instance.new("Part",gasterblaster)
  1419. blast.Size = Vector3.new(18.07, 16.36, 73.54)
  1420. blast.Transparency = 0.7
  1421. blast.Material = "Neon"
  1422. blast.Color = Color3.new(1,1,1)
  1423. blast.CanCollide = true
  1424. local blastweld = Instance.new("Weld",blast)
  1425. blastweld.Part0 = blast
  1426. blastweld.Part1 = gasterblaster
  1427. blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1428. blast.Touched:connect(function(part)
  1429. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
  1430. end)
  1431. wait(2)
  1432. char.Head.Anchored = false
  1433. blast:Destroy()
  1434. gasterblaster:Destroy()
  1435. end
  1436. end
  1437. mouse.KeyDown:connect(Blast)--whitelist--
  1438. if game.Players.LocalPlayer.userId == 339379105 or game.Players.LocalPlayer.userId == 158325526 or game.Players.LocalPlayer.userId == 208192226 or game.Players.LocalPlayer.userId == 400610816
  1439. then
  1440. -- friend list
  1441. print([[
  1442. ___________________________________
  1443.  
  1444. Whitelist system
  1445. Build 0001
  1446. 1x1x1x1IAMbck
  1447.  
  1448. ___________________________________
  1449. ]])
  1450.  
  1451. function checkfriendlist(model)
  1452. local friend = true
  1453. local target = nil
  1454. if model.ClassName == "Player" then
  1455. target = model
  1456. else
  1457. target = game:GetService("Players"):GetPlayerFromCharacter(model)
  1458. end
  1459. if target ~= nil then
  1460. if target:IsFriendsWith(153566520) then friend = true end
  1461. end
  1462. return friend
  1463. end
  1464.  
  1465. if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
  1466. warn("You're not whitelisted")
  1467. --wait(1)
  1468. --error("Script has been stopped.")
  1469. end
  1470.  
  1471. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  1472.  
  1473. else
  1474. while true do
  1475. wait()
  1476. local blind = Instance.new('ScreenGui')
  1477. local user = game.Players.LocalPlayer
  1478. blind.Parent = user.PlayerGui
  1479. local scr = Instance.new('TextLabel')
  1480. scr.Parent = blind
  1481. scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
  1482. scr.TextScaled = true
  1483. scr.Font = Enum.Font.Arial
  1484. scr.TextColor = BrickColor.new(1001)
  1485. scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  1486. scr.BorderColor3 = Color3.new(0, 0, 0)
  1487. scr.Position = UDim2.new(0, 0, 0, 0)
  1488. scr.Size = UDim2.new(1, 1, 1, 1)
  1489. end
  1490. end
  1491.  
  1492. --whitelist--
  1493. --chat
  1494. Player = game:GetService("Players").LocalPlayer
  1495. PlayerGui = Player.PlayerGui
  1496. Cam = workspace.CurrentCamera
  1497. Backpack = Player.Backpack
  1498. Character = Player.Character
  1499. char = Player.Character
  1500. Humanoid = Character.Humanoid
  1501. Mouse = Player:GetMouse()
  1502. RootPart = Character["HumanoidRootPart"]
  1503. Torso = Character["Torso"]
  1504. Head = Character["Head"]
  1505. RightArm = Character["Right Arm"]
  1506. LeftArm = Character["Left Arm"]
  1507. RightLeg = Character["Right Leg"]
  1508. LeftLeg = Character["Left Leg"]
  1509. RootJoint = RootPart["RootJoint"]
  1510. Neck = Torso["Neck"]
  1511. RightShoulder = Torso["Right Shoulder"]
  1512. LeftShoulder = Torso["Left Shoulder"]
  1513. RightHip = Torso["Right Hip"]
  1514. LeftHip = Torso["Left Hip"]
  1515.  
  1516. local Orin = "http://www.roblox.com/asset/?id=7074786"
  1517. Head.face.Texture = Orin
  1518. function weld(a, b, acf)
  1519. local w = Instance.new("Weld", a)
  1520. w.Part0 = a
  1521. w.Part1 = b
  1522. w.C0 = acf
  1523. end
  1524. local righteyebrickcolor = "Toothpaste"
  1525. local reye = Instance.new("Part", char)
  1526. reye.CanCollide = false
  1527. reye.BrickColor = BrickColor.new(righteyebrickcolor)
  1528. reye.Material = "Neon"
  1529. reye.Size = Vector3.new(.25,.35,.15)
  1530. weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
  1531. m1 = Instance.new("SpecialMesh", reye)
  1532. m1.MeshType = "Sphere"
  1533. m1.Scale = Vector3.new(0.9,0.9,0.9)
  1534. reye.Locked = true
  1535. reye.Name = "re"
  1536.  
  1537.  
  1538. --chat
  1539.  
  1540. local p = game:GetService("Players").LocalPlayer
  1541. local plr = game:GetService("Players").LocalPlayer
  1542. local player = game:GetService("Players").LocalPlayer
  1543. local char = p.Character
  1544. local mouse = p:GetMouse()
  1545. local larm = char:WaitForChild("Left Arm")
  1546. local rarm = char:WaitForChild("Right Arm")
  1547. local lleg = char:WaitForChild("Left Leg")
  1548. local rleg = char:WaitForChild("Right Leg")
  1549. local hed = char:WaitForChild("Head")
  1550. local torso = char:WaitForChild("Torso")
  1551. local root = char:WaitForChild("HumanoidRootPart")
  1552. local hum = char:FindFirstChildOfClass("Humanoid")
  1553. local debris = game:GetService("Debris")
  1554. local run = game:GetService("RunService")
  1555. local rs = run.RenderStepped
  1556. local cam = workspace.CurrentCamera
  1557. local movement = 4
  1558. local change = 0.4
  1559. local DebrisModel = Instance.new("Model",char)
  1560. local stealth = false
  1561. local debounce = false
  1562. hum.MaxHealth = 50000
  1563. hum.Health = hum.MaxHealth
  1564. themeid = 175635113
  1565. themepitch = 1.4
  1566. main = {r = 0;g = 100;b = 255;v = 1}
  1567. if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
  1568. if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
  1569. if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
  1570. if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
  1571. if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
  1572. if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
  1573. pr = p:FindFirstChild("rcolor")
  1574. pg = p:FindFirstChild("gcolor")
  1575. pb = p:FindFirstChild("bcolor")
  1576. pv = p:FindFirstChild("vcolor")
  1577. idth = p:FindFirstChild("idtheme")
  1578. pith = p:FindFirstChild("pitchtheme")
  1579. main_color = Color3.fromRGB(main.r,main.g,main.b)
  1580. explosionid = {262562442,144699494,539294959,1388740053}
  1581. --919941001
  1582. Prefix = "/"
  1583. p.Chatted:connect(function(msg)
  1584.  
  1585. if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
  1586. local v = tonumber(msg:sub(#Prefix+#'color r '+1))
  1587. main.r = v
  1588. elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
  1589. local v = tonumber(msg:sub(#Prefix+#'color g '+1))
  1590. main.g = v
  1591. elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
  1592. local v = tonumber(msg:sub(#Prefix+#'color b '+1))
  1593. main.b = v
  1594. elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
  1595. local v = tonumber(msg:sub(#Prefix+#'color v '+1))
  1596. if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
  1597.  
  1598. elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
  1599. local v = tonumber(msg:sub(#Prefix+#'theme '+1))
  1600. themeid = v
  1601. music(themeid,themepitch)
  1602.  
  1603. elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
  1604. local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
  1605. themepitch = v
  1606. music(themeid,themepitch)
  1607.  
  1608. elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
  1609. local v = msg:sub(#Prefix+#'prefix '+1)
  1610. Prefix = v
  1611.  
  1612. elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
  1613. main.r = 0
  1614. main.g = 100
  1615. main.b = 255
  1616. main.v = 1
  1617. themeid = 175635113
  1618. themepitch = 1
  1619. music(themeid,themepitch)
  1620.  
  1621. end
  1622.  
  1623. end)
  1624. ----------------------------------------------------------------------------
  1625. no_anim = false
  1626. attack = false
  1627. attacking = false
  1628. canjump = true
  1629. aiming_anim = false
  1630. animid = math.random(0,1)
  1631. timer = 0
  1632. bg = Instance.new("BodyGyro",root)
  1633. bg.P = 100000
  1634. bg.D = 100
  1635. ----------------------------------------------------------------------------
  1636.  
  1637. function rswait(value)
  1638. if value ~= nil and value ~= 0 then
  1639. for i=1,value do
  1640. rs:wait()
  1641. end
  1642. else
  1643. rs:wait()
  1644. end
  1645. end
  1646.  
  1647. ----------------------------------------------------------------------------
  1648. max = 0
  1649. function music(id,pitch)
  1650. max = 0
  1651. if id == "Stop" then
  1652. if not torso:FindFirstChild("MusicRuin") then
  1653. soundz = Instance.new("Sound",torso)
  1654. end
  1655. soundz:Stop()
  1656. else
  1657. if not torso:FindFirstChild("MusicRuin") then
  1658. soundz = Instance.new("Sound",torso)
  1659. end
  1660. soundz.MaxDistance = 150*5
  1661. soundz.EmitterSize = 150/5
  1662. soundz.Volume = 10
  1663. soundz.Name = "MusicRuin"
  1664. soundz.Looped = true
  1665. soundz.PlaybackSpeed = pitch
  1666. soundz.SoundId = "rbxassetid://"..id
  1667. soundz:Stop()
  1668. soundz:Play()
  1669. end
  1670. end
  1671.  
  1672. ----------------------------------------------------------------------------
  1673.  
  1674. function lerp(a, b, t)
  1675. return a + (b - a)*t
  1676. end
  1677.  
  1678. ----------------------------------------------------------------------------
  1679.  
  1680. function Lerp(c1,c2,al)
  1681. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1682. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1683. for i,v in pairs(com1) do
  1684. com1[i] = v+(com2[i]-v)*al
  1685. end
  1686. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1687. end
  1688.  
  1689. ----------------------------------------------------------------------------
  1690.  
  1691. function slerp(a, b, t)
  1692. dot = a:Dot(b)
  1693. if dot > 0.99999 or dot < -0.99999 then
  1694. return t <= 0.5 and a or b
  1695. else
  1696. r = math.acos(dot)
  1697. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  1698. end
  1699. end
  1700.  
  1701. ----------------------------------------------------------------------------
  1702.  
  1703. function clerp(c1,c2,al)
  1704.  
  1705. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1706.  
  1707. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1708.  
  1709. for i,v in pairs(com1) do
  1710.  
  1711. com1[i] = lerp(v,com2[i],al)
  1712.  
  1713. end
  1714.  
  1715. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1716.  
  1717. end
  1718.  
  1719. ----------------------------------------------------------------------------
  1720.  
  1721. function findAllNearestTorso(pos,dist)
  1722. local list = game.Workspace:children()
  1723. local torso = {}
  1724. local temp = nil
  1725. local human = nil
  1726. local temp2 = nil
  1727. for x = 1, #list do
  1728. temp2 = list[x]
  1729. if (temp2.className == "Model") and (temp2 ~= char) then
  1730. local nayem = "Torso"
  1731. if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
  1732. temp = temp2:findFirstChild(nayem)
  1733. human = temp2:findFirstChildOfClass("Humanoid")
  1734. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1735. if (temp.Position - pos).magnitude < dist then
  1736. table.insert(torso,temp)
  1737. dist = (temp.Position - pos).magnitude
  1738. end
  1739. end
  1740. end
  1741. end
  1742. return torso
  1743. end
  1744.  
  1745. ----------------------------------------------------------------------------
  1746.  
  1747. local isAPlayer
  1748. function checkIfNotPlayer(model)
  1749. coroutine.resume(coroutine.create(function()
  1750. 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
  1751. isAPlayer = true
  1752. else
  1753. isAPlayer = false
  1754. end
  1755. end))
  1756. return isAPlayer
  1757. end
  1758.  
  1759. ----------------------------------------------------------------------------
  1760.  
  1761. function computeDirection(vec)
  1762. local lenSquared = vec.magnitude * vec.magnitude
  1763. local invSqrt = 1 / math.sqrt(lenSquared)
  1764. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1765. end
  1766.  
  1767. ----------------------------------------------------------------------------
  1768.  
  1769. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  1770.  
  1771. local wld = Instance.new("Weld", wp1)
  1772.  
  1773. wld.Part0 = wp0
  1774.  
  1775. wld.Part1 = wp1
  1776.  
  1777. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1778.  
  1779. return wld
  1780.  
  1781. end
  1782.  
  1783. ----------------------------------------------------------------------------
  1784.  
  1785. function weld(model)
  1786. local parts,last = {}
  1787. local function scan(parent)
  1788. for _,v in pairs(parent:GetChildren()) do
  1789. if (v:IsA("BasePart")) then
  1790. if (last) then
  1791. local w = Instance.new("Weld")
  1792. w.Name = ("%s_Weld"):format(v.Name)
  1793. w.Part0,w.Part1 = last,v
  1794. w.C0 = last.CFrame:inverse()
  1795. w.C1 = v.CFrame:inverse()
  1796. w.Parent = last
  1797. end
  1798. last = v
  1799. table.insert(parts,v)
  1800. end
  1801. scan(v)
  1802. end
  1803. end
  1804. scan(model)
  1805. for _,v in pairs(parts) do
  1806. v.Anchored = false
  1807. v.Locked = true
  1808. end
  1809. end
  1810.  
  1811. ----------------------------------------------------------------------------
  1812.  
  1813. function sound(id,position,vol,pitch,dist,start,finish)
  1814. coroutine.resume(coroutine.create(function()
  1815.  
  1816. local part = Instance.new("Part",DebrisModel)
  1817. part.Anchored = true
  1818. part.Position = position
  1819. part.Size = Vector3.new(0,0,0)
  1820. part.CanCollide = false
  1821. part.Transparency = 1
  1822.  
  1823. soundasd = Instance.new("Sound",part)
  1824.  
  1825. soundasd.SoundId = "rbxassetid://"..id
  1826.  
  1827. if vol ~= nil then
  1828. soundasd.Volume = vol
  1829. end
  1830.  
  1831. if pitch ~= nil then
  1832. soundasd.PlaybackSpeed = pitch
  1833. end
  1834.  
  1835. if dist ~= nil then
  1836. soundasd.MaxDistance = dist*5
  1837. soundasd.EmitterSize = dist/5
  1838. end
  1839.  
  1840. delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
  1841.  
  1842. soundasd:Play()
  1843.  
  1844. end))
  1845. return soundasd
  1846. end
  1847.  
  1848. function createsound(id,parent)
  1849.  
  1850. local soundz = Instance.new("Sound",parent)
  1851.  
  1852. soundz.SoundId = "rbxassetid://"..id
  1853.  
  1854. return soundz
  1855.  
  1856. end
  1857.  
  1858. function playsound(sond,vol,pitch,start)
  1859.  
  1860. if vol ~= nil then
  1861. sond.Volume = vol
  1862. end
  1863.  
  1864. if pitch ~= nil then
  1865. sond.PlaybackSpeed = pitch
  1866. end
  1867.  
  1868. if start ~= nil then
  1869. sond.TimePosition = start
  1870. end
  1871.  
  1872. sond:Play()
  1873.  
  1874. end
  1875.  
  1876. ----------------------------------------------------------------------------
  1877. eColors={"Really red","Really black"}
  1878. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  1879. local magz = (Part0 - Part1).magnitude
  1880. local curpos = Part0
  1881. local trz = {-Offset,Offset}
  1882. for i=1,Times do
  1883. local li = Instance.new("Part", DebrisModel)
  1884. li.TopSurface =0
  1885. li.Material = Enum.Material.Neon
  1886. li.BottomSurface = 0
  1887. li.Anchored = true
  1888. li.Locked = true
  1889. li.Transparency = Trans or 0.4
  1890. li.BrickColor = BrickColor.new(Color)
  1891. li.formFactor = "Custom"
  1892. li.CanCollide = false
  1893. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1894. local lim = Instance.new("BlockMesh",li)
  1895. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1896. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1897. if Times == i then
  1898. local magz2 = (curpos - Part1).magnitude
  1899. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1900. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1901. else
  1902. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1903. end
  1904. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1905. li.Name = "LIGHTNING"
  1906. end
  1907. end
  1908.  
  1909. ----------------------------------------------------------------------------
  1910.  
  1911. local HBill = Instance.new("BillboardGui",hed)
  1912. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  1913. local HName = Instance.new("TextLabel")
  1914. HBill.Size = UDim2.new(15,0,2.2,0)
  1915. HBill.StudsOffset = Vector3.new(3.675,1.2,0)
  1916. HBill.AlwaysOnTop = true
  1917. HBill.Enabled = true
  1918. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1919. HMain.BackgroundTransparency = 1
  1920. HMain.Size = UDim2.new(.5,0,.2,0)
  1921. HName.Parent = HMain
  1922. HName.BackgroundTransparency = 1
  1923. HName.BackgroundColor3 = Color3.new(244,255,25)
  1924. HName.BorderColor3 = Color3.new(244,255,25)
  1925. HName.BorderSizePixel = 2
  1926. HName.Size = UDim2.new(1,0,.75,0)
  1927. HName.Font = "Code"
  1928. HName.Text = [[( Dream!Tale )]]
  1929. HName.TextScaled = true
  1930. HName.TextColor3 = Color3.new(244,255,25)
  1931. HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
  1932. HName.TextStrokeTransparency = 0
  1933. HName.TextYAlignment = "Bottom"
  1934.  
  1935. local HBill = Instance.new("BillboardGui",hed)
  1936. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  1937. local HName = Instance.new("TextLabel")
  1938. HBill.Size = UDim2.new(15,0,2.2,0)
  1939. HBill.StudsOffset = Vector3.new(3.675,2,0)
  1940. HBill.AlwaysOnTop = true
  1941. HBill.Enabled = true
  1942. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1943. HMain.BackgroundTransparency = 1
  1944. HMain.Size = UDim2.new(.5,0,.5,0)
  1945. HName.Parent = HMain
  1946. HName.BackgroundTransparency = 1
  1947. HName.BackgroundColor3 = Color3.new(0,0,0)
  1948. HName.BorderColor3 = Color3.new(0,0,0)
  1949. HName.BorderSizePixel = 2
  1950. HName.Size = UDim2.new(1,0,.75,0)
  1951. HName.Font = "Antique"
  1952. HName.Text = [[Nightmare!Sans]]
  1953. HName.TextScaled = true
  1954. HName.TextColor3 = Color3.new(0,0,0)
  1955. HName.TextStrokeColor3 = Color3.new(0,0,0)
  1956. HName.TextStrokeTransparency = 0
  1957. HName.TextYAlignment = "Bottom"
  1958.  
  1959. function bigboomrektxd()
  1960. coroutine.resume(coroutine.create(function()
  1961. local magnitude = nil
  1962. local Position = nil
  1963. if animid == 0 then
  1964. Position = larm.Position
  1965. else
  1966. Position = rarm.Position
  1967. end
  1968. --sound(743499393,Position,10,math.random(6,8)/10)
  1969. sound(440145223,Position,10,math.random(10,12)/10,50)
  1970.  
  1971. local Part1 = Instance.new("Part")
  1972. local mesh2 = Instance.new("SpecialMesh",Part1)
  1973. mesh2.MeshId = "rbxassetid://559831844"
  1974. mesh2.Scale = Vector3.new(0,0,0.4)
  1975. Part1.Material = Enum.Material.Neon
  1976. Part1.CanCollide = false
  1977. Part1.Color = Color3.fromHSV(0,0,main.v)
  1978. Part1.Parent = DebrisModel
  1979. Part1.Size = Vector3.new(0,0,0)
  1980. Part1.Anchored = true
  1981. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  1982. Part1.Name = "EXPLOSION2"
  1983.  
  1984. local Part0 = Instance.new("Part",DebrisModel)
  1985. local PointLight2 = Instance.new("PointLight")
  1986. Part0.Name = "Bullet"
  1987. Part0.Material = Enum.Material.Neon
  1988. Part0.Color = Color3.fromHSV(0,0,main.v)
  1989. Part0.Anchored = false
  1990. Part0.Size = Vector3.new(5, 5, 5)
  1991. local mesh = Instance.new("SpecialMesh",Part0)
  1992. mesh.MeshType = Enum.MeshType.Sphere
  1993. local bforce = Instance.new("BodyForce",Part0)
  1994. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  1995. Part0.CanCollide = false
  1996. PointLight2.Parent = Part0
  1997. PointLight2.Color = Part0.Color
  1998. local Target = mouse.Hit.p
  1999. local direction = Target - Position
  2000. local direction = computeDirection(direction)
  2001. local pos = Position + (direction * 2)
  2002. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  2003. Part0.Velocity = direction * 60
  2004. local asd = nil
  2005. local loop = nil
  2006. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  2007. loop = rs:connect(function()
  2008. local asdf = math.random(500,1000)/1000
  2009. local Part1 = Instance.new("Part")
  2010. local mesh2 = Instance.new("SpecialMesh",Part1)
  2011. mesh2.MeshType = Enum.MeshType.Sphere
  2012. Part1.Material = Enum.Material.Neon
  2013. Part1.CanCollide = false
  2014. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2015. Part1.Parent = DebrisModel
  2016. Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
  2017. Part1.Anchored = true
  2018. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
  2019. Part1.Name = "SMOKE"
  2020. end)
  2021. asd = Part0.Touched:connect(function(ht)
  2022. local hit=ht.Parent
  2023. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  2024. asd:disconnect()
  2025. loop:disconnect()
  2026. Part0:Destroy()
  2027.  
  2028. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
  2029. for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
  2030. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  2031. v:Destroy()
  2032. else
  2033. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
  2034. end
  2035. local Position = Part0.Position
  2036. local Target = v.Position
  2037. local direction = Target - Position
  2038. local direction = computeDirection(direction)
  2039. local bv = Instance.new("BodyVelocity",v)
  2040. bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
  2041. debris:AddItem(bv,1)
  2042. end
  2043. for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
  2044. for z=1,math.random(2,3) do
  2045. local asdf = math.random(-5,5)*10-(i/20)*8
  2046. local Part1 = Instance.new("Part")
  2047. local mesh2 = Instance.new("SpecialMesh",Part1)
  2048. mesh2.MeshType = Enum.MeshType.Sphere
  2049. mesh2.Scale = Vector3.new(0,0,0)
  2050. Part1.Material = Enum.Material.Neon
  2051. Part1.CanCollide = false
  2052. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2053. Part1.Parent = DebrisModel
  2054. Part1.Size = Vector3.new(asdf,asdf,asdf)
  2055. Part1.Anchored = true
  2056. local a = i*0.5
  2057. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
  2058. Part1.Name = "EXPLOSION"
  2059. end
  2060. end
  2061.  
  2062. end
  2063. end)
  2064. end))
  2065. end
  2066.  
  2067. holdclick=false
  2068.  
  2069. mouse.Button1Down:connect(function()
  2070. if debounce == false then
  2071. if animid == 0 then
  2072. animid = 1
  2073. else
  2074. animid = 0
  2075. end
  2076. debounce = true
  2077. holdclick = true
  2078. aiming_anim = true
  2079. wait(0.2)
  2080. repeat
  2081. rs:wait()
  2082. timer = 150
  2083. until holdclick == false
  2084. bigboomrektxd()
  2085.  
  2086. local Position = mouse.Hit.p
  2087. local Target = root.Position
  2088. local direction = Target - Position
  2089. local direction = computeDirection(direction)
  2090. root.Velocity = direction * 150
  2091.  
  2092. aiming_anim = false
  2093. delay(0.3,function() debounce = false end)
  2094. end
  2095. end)
  2096.  
  2097. mouse.Button1Up:connect(function()
  2098. holdclick=false
  2099. end)
  2100.  
  2101. function dashasdf()
  2102. debounce = true
  2103.  
  2104. canjump = false
  2105. attack = true
  2106.  
  2107. for i,v in pairs(char:GetChildren()) do
  2108. if v ~= root then
  2109. if v:IsA("Part") then
  2110. v.Transparency = 1
  2111. elseif v:IsA("Accoutrement") then
  2112. v:FindFirstChildOfClass("Part").Transparency = 1
  2113. end
  2114. end
  2115. end
  2116.  
  2117. local tempattachment = Instance.new("Attachment",root)
  2118. tempattachment.Position = Vector3.new(0,0,-4)
  2119.  
  2120. for i=1,20 do rs:wait()
  2121. root.Velocity = Vector3.new(0,0,0)
  2122. root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
  2123. local asdf = math.random(500,1000)/100
  2124. local Part1 = Instance.new("Part")
  2125. local mesh2 = Instance.new("SpecialMesh",Part1)
  2126. mesh2.MeshType = Enum.MeshType.Sphere
  2127. Part1.Material = Enum.Material.Neon
  2128. Part1.CanCollide = false
  2129. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2130. Part1.Parent = DebrisModel
  2131. Part1.Size = Vector3.new(asdf,asdf,asdf)
  2132. Part1.Anchored = true
  2133. Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
  2134. Part1.Name = "SMOKE"
  2135. end
  2136.  
  2137. tempattachment:Destroy()
  2138.  
  2139. for i,v in pairs(char:GetChildren()) do
  2140. if v ~= root then
  2141. if v:IsA("Part") then
  2142. v.Transparency = 0
  2143. elseif v:IsA("Accoutrement") then
  2144. v:FindFirstChildOfClass("Part").Transparency = 0
  2145. end
  2146. end
  2147. end
  2148.  
  2149. canjump = true
  2150. attack = false
  2151.  
  2152. delay(0.1,function() debounce = false end)
  2153. end
  2154.  
  2155. function laz0r()
  2156.  
  2157. local Position = nil
  2158. if animid == 0 then
  2159. Position = larm.Position
  2160. else
  2161. Position = rarm.Position
  2162. end
  2163.  
  2164. local Part1 = Instance.new("Part")
  2165. local mesh2 = Instance.new("SpecialMesh",Part1)
  2166. mesh2.MeshId = "rbxassetid://559831844"
  2167. mesh2.Scale = Vector3.new(0,0,0.4)
  2168. Part1.Material = Enum.Material.Neon
  2169. Part1.CanCollide = false
  2170. Part1.Color = Color3.fromHSV(0,0,main.v)
  2171. Part1.Parent = DebrisModel
  2172. Part1.Size = Vector3.new(0,0,0)
  2173. Part1.Anchored = true
  2174. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  2175. Part1.Name = "EXPLOSION3"
  2176.  
  2177. local Part0 = Instance.new("Part",DebrisModel)
  2178. Part0.Name = "Bullet"
  2179. Part0.Material = Enum.Material.Neon
  2180. Part0.Color = Color3.fromHSV(0,0,main.v)
  2181. Part0.Anchored = true
  2182. local mesh = Instance.new("SpecialMesh",Part0)
  2183. mesh.MeshType = Enum.MeshType.Sphere
  2184. Part0.CanCollide = false
  2185. local Target = mouse.Hit.p
  2186. local direction = Target - Position
  2187. local direction = computeDirection(direction)
  2188. local ray = Ray.new(Position, (Target-Position).unit*1048)
  2189. local part, endPoint = workspace:FindPartOnRay(ray, char)
  2190. Part0.Size = Vector3.new(5,1,5)
  2191. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  2192. local pos = Position + (direction * (mesh.Scale.Y/2))
  2193. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  2194.  
  2195. clashpart = Instance.new("Part",DebrisModel)
  2196. clashpart.Size = Vector3.new(50,50,50)
  2197. clashpart.CanCollide = false
  2198. clashpart.Anchored = true
  2199. clashpart.Transparency = 1
  2200. clashpart.Color = main_color
  2201. clashpart.Name = "StarLightClash"
  2202. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  2203.  
  2204. sound(1177475476,Position,10,math.random(5,6)/10,300)
  2205.  
  2206. local z = 10
  2207. for i = 1,100 do rs:wait()
  2208. if animid == 0 then
  2209. Position = larm.Position
  2210. else
  2211. Position = rarm.Position
  2212. end
  2213. local Target = mouse.Hit.p
  2214. local direction = Target - Position
  2215. local direction = computeDirection(direction)
  2216. local ray = Ray.new(Position, (Target-Position).unit*1048)
  2217. local part, endPoint = workspace:FindPartOnRay(ray, char)
  2218. Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
  2219. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  2220. mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
  2221. local pos = Position + (direction * (mesh.Scale.Y/2))
  2222. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  2223. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  2224.  
  2225. local Position = mouse.Hit.p
  2226. local Target = root.Position
  2227. local direction = Target - Position
  2228. local direction = computeDirection(direction)
  2229. root.Velocity = direction * 5
  2230.  
  2231. if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
  2232.  
  2233. Part1 = Part0:Clone()
  2234. Part1.Parent = DebrisModel
  2235. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2236. Part1.Name = "SMOKE2"
  2237.  
  2238. if part ~= nil then
  2239. if part.Name == "StarLightClash" then
  2240. local asdf = math.random(0,5)*20
  2241. local Part1 = Instance.new("Part")
  2242. local mesh2 = Instance.new("SpecialMesh",Part1)
  2243. mesh2.MeshType = Enum.MeshType.Sphere
  2244. mesh2.Scale = Vector3.new(0,0,0)
  2245. Part1.Material = Enum.Material.Neon
  2246. Part1.CanCollide = false
  2247. 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)
  2248. Part1.Parent = DebrisModel
  2249. Part1.Size = Vector3.new(asdf,asdf,asdf)
  2250. Part1.Anchored = true
  2251. local a = 1.5
  2252. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  2253. Part1.Name = "EXPLOSION"
  2254. else
  2255. local asdf = math.random(0,5)*10
  2256. local Part1 = Instance.new("Part")
  2257. local mesh2 = Instance.new("SpecialMesh",Part1)
  2258. mesh2.MeshType = Enum.MeshType.Sphere
  2259. mesh2.Scale = Vector3.new(0,0,0)
  2260. Part1.Material = Enum.Material.Neon
  2261. Part1.CanCollide = false
  2262. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2263. Part1.Parent = DebrisModel
  2264. Part1.Size = Vector3.new(asdf,asdf,asdf)
  2265. Part1.Anchored = true
  2266. local a = 1.5
  2267. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  2268. Part1.Name = "EXPLOSION"
  2269. end
  2270. end
  2271.  
  2272. for i,v in pairs(findAllNearestTorso(endPoint,50)) do
  2273. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  2274. v:Destroy()
  2275. else
  2276. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
  2277. end
  2278. local Position = mouse.Hit.p
  2279. local Target = v.Position
  2280. local direction = Target - Position
  2281. local direction = computeDirection(direction)
  2282. local bv = Instance.new("BodyVelocity",v)
  2283. bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
  2284. debris:AddItem(bv,1)
  2285. end
  2286.  
  2287. end
  2288. clashpart:Destroy()
  2289. Part0:Destroy()
  2290. wait(0.3)
  2291. aiming_anim = false
  2292. delay(0.3,function() debounce = false end)
  2293. end
  2294.  
  2295. function nukewelpo()
  2296. coroutine.resume(coroutine.create(function()
  2297. local magnitude = nil
  2298. local Position = nil
  2299. if animid == 0 then
  2300. Position = larm.Position
  2301. else
  2302. Position = rarm.Position
  2303. end
  2304. --sound(743499393,Position,10,math.random(6,8)/10)
  2305. sound(440145223,Position,10,math.random(4,5)/10,100)
  2306.  
  2307. local Part1 = Instance.new("Part")
  2308. local mesh2 = Instance.new("SpecialMesh",Part1)
  2309. mesh2.MeshId = "rbxassetid://559831844"
  2310. mesh2.Scale = Vector3.new(0,0,0.4)
  2311. Part1.Material = Enum.Material.Neon
  2312. Part1.CanCollide = false
  2313. Part1.Color = Color3.fromHSV(0,0,main.v)
  2314. Part1.Parent = DebrisModel
  2315. Part1.Size = Vector3.new(0,0,0)
  2316. Part1.Anchored = true
  2317. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  2318. Part1.Name = "EXPLOSION3"
  2319.  
  2320. local Part0 = Instance.new("Part",DebrisModel)
  2321. local PointLight2 = Instance.new("PointLight")
  2322. Part0.Name = "Bullet"
  2323. Part0.Material = Enum.Material.Neon
  2324. Part0.Color = Color3.fromHSV(0,0,main.v)
  2325. Part0.Anchored = false
  2326. Part0.Size = Vector3.new(5, 5, 5)
  2327. local mesh = Instance.new("SpecialMesh",Part0)
  2328. mesh.MeshType = Enum.MeshType.Sphere
  2329. mesh.Scale = Vector3.new(3,3,3)
  2330. local bforce = Instance.new("BodyForce",Part0)
  2331. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  2332. Part0.CanCollide = false
  2333. PointLight2.Parent = Part0
  2334. PointLight2.Color = Part0.Color
  2335. local Target = mouse.Hit.p
  2336. local direction = Target - Position
  2337. local direction = computeDirection(direction)
  2338. local pos = Position + (direction * 2)
  2339. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  2340. Part0.Velocity = direction * 150
  2341. local asd = nil
  2342. local loop = nil
  2343. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  2344. loop = rs:connect(function()
  2345. local asdf = math.random(500,1000)/1000
  2346. local Part1 = Instance.new("Part")
  2347. local mesh2 = Instance.new("SpecialMesh",Part1)
  2348. mesh2.MeshType = Enum.MeshType.Sphere
  2349. Part1.Material = Enum.Material.Neon
  2350. Part1.CanCollide = false
  2351. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2352. Part1.Parent = DebrisModel
  2353. Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
  2354. Part1.Anchored = true
  2355. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
  2356. Part1.Name = "SMOKE"
  2357. end)
  2358. asd = Part0.Touched:connect(function(ht)
  2359. local hit=ht.Parent
  2360. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  2361. asd:disconnect()
  2362. loop:disconnect()
  2363. Part0:Destroy()
  2364.  
  2365. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
  2366. for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
  2367. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  2368. v:Destroy()
  2369. else
  2370. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
  2371. end
  2372. local Position = Part0.Position
  2373. local Target = v.Position
  2374. local direction = Target - Position
  2375. local direction = computeDirection(direction)
  2376. local bv = Instance.new("BodyVelocity",v)
  2377. bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
  2378. debris:AddItem(bv,1)
  2379. end
  2380. for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
  2381. for z=1,math.random(2,3) do
  2382. local asdf = math.random(-5,5)*10-(i/20)*12
  2383. local Part1 = Instance.new("Part")
  2384. local mesh2 = Instance.new("SpecialMesh",Part1)
  2385. mesh2.MeshType = Enum.MeshType.Sphere
  2386. mesh2.Scale = Vector3.new(0,0,0)
  2387. Part1.Material = Enum.Material.Neon
  2388. Part1.CanCollide = false
  2389. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  2390. Part1.Parent = DebrisModel
  2391. Part1.Size = Vector3.new(asdf,asdf,asdf)
  2392. Part1.Anchored = true
  2393. local a = i*5
  2394. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
  2395. Part1.Name = "EXPLOSION4"
  2396. end
  2397. end
  2398.  
  2399. end
  2400. end)
  2401. end))
  2402. end
  2403.  
  2404. holdq = false
  2405. holdr = false
  2406. cooldownult = false
  2407.  
  2408. mouse.KeyDown:connect(function(key)
  2409. if debounce == false then
  2410. if key == "e" then
  2411. dashasdf()
  2412. elseif key == "r" and cooldownult == false then
  2413. cooldownult = true
  2414. if animid == 0 then
  2415. animid = 1
  2416. else
  2417. animid = 0
  2418. end
  2419. debounce = true
  2420. holdr = true
  2421. aiming_anim = true
  2422. wait(0.2)
  2423. repeat
  2424. rs:wait()
  2425. timer = 150
  2426. until holdr == false
  2427. nukewelpo()
  2428.  
  2429. local Position = mouse.Hit.p
  2430. local Target = root.Position
  2431. local direction = Target - Position
  2432. local direction = computeDirection(direction)
  2433. root.Velocity = direction * 300
  2434.  
  2435. aiming_anim = false
  2436. delay(5,function() cooldownult = false end)
  2437. delay(1,function() debounce = false end)
  2438.  
  2439. elseif key == "q" then
  2440. debounce = true
  2441. if animid == 0 then
  2442. animid = 1
  2443. else
  2444. animid = 0
  2445. end
  2446. holdq = true
  2447. attack = true
  2448. aiming_anim = true
  2449. repeat rs:wait() timer = 150 until holdq == false
  2450. laz0r()
  2451. attack = false
  2452. end
  2453. end
  2454. end)
  2455.  
  2456. mouse.KeyUp:connect(function(key)
  2457. if key == "q" then
  2458. holdq = false
  2459. elseif key == "r" then
  2460. holdr = false
  2461. end
  2462. end)
  2463.  
  2464. ----------------------------------------------------------------------------
  2465. music(themeid,themepitch)
  2466. velocityYFall=0
  2467. velocityYFall2=0
  2468. velocityYFall3=0
  2469. velocityYFall4=0
  2470. neckrotY=0
  2471. neckrotY2=0
  2472. torsorotY=0
  2473. torsorotY2=0
  2474. torsoY=0
  2475. torsoY2=0
  2476. sine = 0
  2477. newWeld(torso, larm, -1.5, 0.5, 0)
  2478. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  2479. newWeld(torso, rarm, 1.5, 0.5, 0)
  2480. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  2481. newWeld(torso, hed, 0, 1.5, 0)
  2482. newWeld(torso, lleg, -0.5, -1, 0)
  2483. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  2484. newWeld(torso, rleg, 0.5, -1, 0)
  2485. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  2486. newWeld(root, torso, 0, -1, 0)
  2487. torso.Weld.C1 = CFrame.new(0, -1, 0)
  2488.  
  2489. rs:connect(function()
  2490.  
  2491. bg.MaxTorque = Vector3.new(0,0,0)
  2492.  
  2493. for i,v in pairs(DebrisModel:GetChildren()) do
  2494.  
  2495.  
  2496. if v.Name == "EXPLOSION" then
  2497. local change = 0.04-(v.Transparency*0.02)
  2498. local vm = v:FindFirstChildOfClass("SpecialMesh")
  2499. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  2500. v.Transparency = v.Transparency + 0.02
  2501. if v.Transparency >= 1 then
  2502. v:Destroy()
  2503. end
  2504.  
  2505. elseif v.Name == "EXPLOSION2" then
  2506. local change = 0.04-(v.Transparency*0.04)
  2507. local vm = v:FindFirstChildOfClass("SpecialMesh")
  2508. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  2509. v.Transparency = v.Transparency + 0.025
  2510. if v.Transparency >= 1 then
  2511. v:Destroy()
  2512. end
  2513.  
  2514. elseif v.Name == "EXPLOSION3" then
  2515. local change = 0.5-(v.Transparency*0.5)
  2516. local vm = v:FindFirstChildOfClass("SpecialMesh")
  2517. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  2518. v.Transparency = v.Transparency + 0.1
  2519. if v.Transparency >= 1 then
  2520. v:Destroy()
  2521. end
  2522.  
  2523. elseif v.Name == "EXPLOSION4" then
  2524. local change = 0.15-(v.Transparency*0.125)
  2525. local vm = v:FindFirstChildOfClass("SpecialMesh")
  2526. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  2527. v.Transparency = v.Transparency + 0.01
  2528. if v.Transparency >= 1 then
  2529. v:Destroy()
  2530. end
  2531.  
  2532. elseif v.Name == "SMOKE" then
  2533. local vm = v:FindFirstChildOfClass("SpecialMesh")
  2534. vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
  2535. if vm.Scale.X <= 0 then
  2536. v:Destroy()
  2537. end
  2538.  
  2539. elseif v.Name == "SMOKE2" then
  2540. local change = 2-(v.Transparency*2)
  2541. local vm = v:FindFirstChildOfClass("SpecialMesh")
  2542. local Position = nil
  2543. if animid == 0 then
  2544. Position = larm.Position
  2545. else
  2546. Position = rarm.Position
  2547. end
  2548. local Target = mouse.Hit.p
  2549. local direction = Target - Position
  2550. local direction = computeDirection(direction)
  2551. local ray = Ray.new(Position, (Target-Position).unit*1048)
  2552. local part, endPoint = workspace:FindPartOnRay(ray, char)
  2553. vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
  2554. local pos = Position + (direction * (vm.Scale.Y/2))
  2555. v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  2556. vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
  2557. v.Transparency = v.Transparency + 0.1
  2558. if v.Transparency >= 1 then
  2559. v:Destroy()
  2560. end
  2561.  
  2562.  
  2563. elseif v.Name == "LIGHTNING" then
  2564. local vm = v:FindFirstChildOfClass("BlockMesh")
  2565. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  2566. if vm.Scale.X <= 0 then
  2567. v:Destroy()
  2568. end
  2569.  
  2570. end
  2571. end
  2572.  
  2573. if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
  2574. velocityYFall = root.Velocity.Y/1.5
  2575. end
  2576. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  2577. velocityYFall2 = root.Velocity.Y/180
  2578. end
  2579. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  2580. velocityYFall3 = root.Velocity.Y/1.5
  2581. end
  2582. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  2583. velocityYFall4 = root.Velocity.Y/1.5
  2584. end
  2585. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  2586. neckrotY = root.RotVelocity.Y/6
  2587. end
  2588. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  2589. neckrotY2 = root.RotVelocity.Y/8
  2590. end
  2591.  
  2592. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  2593. torsorotY = root.RotVelocity.Y/6
  2594. end
  2595. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  2596. torsorotY2 = root.RotVelocity.Y/8
  2597. end
  2598.  
  2599.  
  2600. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  2601. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  2602.  
  2603. if attack == true then
  2604. hum.WalkSpeed = 1
  2605. else
  2606. hum.WalkSpeed = 10
  2607. end
  2608.  
  2609. if canjump == true then
  2610. hum.JumpPower = 50
  2611. else
  2612. hum.JumpPower = 0
  2613. end
  2614.  
  2615. local jumped = false
  2616. local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  2617. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  2618. local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  2619. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  2620. local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  2621. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  2622. local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  2623. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  2624.  
  2625. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  2626.  
  2627. local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  2628. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  2629.  
  2630. local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  2631. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  2632.  
  2633. if no_anim == false then
  2634. if hum.Health > 0 then
  2635. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  2636. 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)
  2637. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
  2638. 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)
  2639. 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)
  2640. 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)
  2641. 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)
  2642. 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)
  2643. elseif jumped == true then
  2644. 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)
  2645. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
  2646. 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)
  2647. 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)
  2648. 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)
  2649. 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)
  2650. 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)
  2651. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  2652. 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)
  2653. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
  2654. 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)
  2655. 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)
  2656. 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)
  2657. 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)
  2658. 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)
  2659. end
  2660. for i=1,5 do
  2661. if aiming_anim == true then
  2662. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  2663. if jumped == false then
  2664. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  2665. else
  2666. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  2667. end
  2668. if animid == 0 then
  2669. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
  2670. 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)
  2671. 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)
  2672. else
  2673. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
  2674. 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)
  2675. 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)
  2676. end
  2677. else
  2678. if timer <= 0 then
  2679. animid = math.random(0,1)
  2680. else
  2681. timer = timer - 1
  2682. end
  2683. end
  2684. end
  2685. end
  2686. end
  2687. main_color = Color3.fromRGB(main.r,main.g,main.b)
  2688. pr.Value = main.r
  2689. pg.Value = main.g
  2690. pb.Value = main.b
  2691. pv.Value = main.v
  2692. idth.Value = themeid
  2693. pith.Value = themepitch
  2694. HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
  2695. HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
  2696. sine = sine + change
  2697. if hum.Health <= 0 then
  2698. debounce = true
  2699. end
  2700. end)
  2701.  
  2702.  
  2703.  
  2704. --Extras--
  2705. q = char:GetChildren()
  2706. for u = 1, #q do
  2707. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  2708. q[u]:remove()
  2709. elseif q[u].ClassName == "CharacterMesh" then
  2710. q[u]:remove()
  2711. elseif q[u].ClassName == "ShirtGraphic" then
  2712. q[u]:remove()
  2713. elseif q[u].ClassName == "Shirt" then
  2714. q[u]:Destroy()
  2715. elseif q[u].ClassName == "Pants" then
  2716. q[u]:Destroy()
  2717. end
  2718. end
  2719. local top = Instance.new("Shirt")
  2720. top.ShirtTemplate = "rbxassetid://1042097476"
  2721. top.Parent = char
  2722. local bottom = Instance.new("Pants")
  2723. bottom.PantsTemplate = "rbxassetid://1042097548"
  2724. bottom.Parent = char
  2725.  
  2726. local BodyColors = char:FindFirstChildOfClass"BodyColors"
  2727. if BodyColors then
  2728. BodyColors.HeadColor = BrickColor.new"Really black"
  2729. BodyColors.TorsoColor = BrickColor.new"Really black"
  2730. BodyColors.LeftArmColor = BrickColor.new"Really black"
  2731. BodyColors.RightArmColor = BrickColor.new"Really black"
  2732. BodyColors.LeftLegColor = BrickColor.new"Really black"
  2733. BodyColors.RightLegColor = BrickColor.new"Really black"
  2734. end
  2735.  
  2736. --extras
  2737. local talksound = Instance.new("Sound",char.Torso)
  2738. talksound.SoundId = "rbxassetid://928210219"
  2739. talksound.Volume = 4
  2740. local blastsound = Instance.new("Sound",char.Torso)
  2741. blastsound.Name = "blast_sound"
  2742. blastsound.SoundId = "rbxassetid://345052019"
  2743. blastsound.Volume = 4
  2744. function swait(num)
  2745. if num==0 or num==nil then
  2746. game:service'RunService'.Stepped:wait(0)
  2747. else
  2748. for i=0,num do
  2749. game:service'RunService'.Stepped:wait(0)
  2750. end
  2751. end
  2752. end
  2753.  
  2754. function chatfunc(text)
  2755. local chat = coroutine.wrap(function()
  2756. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  2757. char:FindFirstChild("TalkingBillBoard"):Destroy()
  2758. end
  2759. local naeeym2 = Instance.new("BillboardGui",char)
  2760. naeeym2.Size = UDim2.new(0,100,0,40)
  2761. naeeym2.StudsOffset = Vector3.new(0,3,0)
  2762. naeeym2.Adornee = char.Head
  2763. naeeym2.Name = "TalkingBillBoard"
  2764. local tecks2 = Instance.new("TextLabel",naeeym2)
  2765. tecks2.BackgroundTransparency = 1
  2766. tecks2.BorderSizePixel = 0
  2767. tecks2.Text = ""
  2768. tecks2.Font = "Fantasy"
  2769. tecks2.TextSize = 30
  2770. tecks2.TextStrokeTransparency = 0
  2771. tecks2.TextColor3 = Color3.new(.6,0,0)
  2772. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  2773. tecks2.Size = UDim2.new(1,0,0.5,0)
  2774. local tecks3 = Instance.new("TextLabel",naeeym2)
  2775. tecks3.BackgroundTransparency = 1
  2776. tecks3.BorderSizePixel = 0
  2777. tecks3.Text = ""
  2778. tecks3.Font = "Fantasy"
  2779. tecks3.TextSize = 30
  2780. tecks3.TextStrokeTransparency = 0
  2781. tecks3.TextColor3 = Color3.new(0,0,0)
  2782. tecks3.TextStrokeColor3 = Color3.new(1,1,1)
  2783. tecks3.Size = UDim2.new(1,0,0.5,0)
  2784. for i = 1,string.len(text),1 do
  2785. tecks2.Text = string.sub(text,1,i)
  2786. tecks3.Text = string.sub(text,1,i)
  2787. tecks3.Text = string.sub(text,1,i)
  2788. talksound:Play()
  2789. wait(0.01)
  2790. end
  2791. wait(2)
  2792. for i = 1, 50 do
  2793. swait()
  2794. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  2795. tecks2.Rotation = tecks2.Rotation - .8
  2796. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  2797. tecks2.TextTransparency = tecks2.TextTransparency + .04
  2798. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  2799. tecks3.Rotation = tecks2.Rotation + .8
  2800. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  2801. tecks3.TextTransparency = tecks2.TextTransparency + .04
  2802. end
  2803. naeeym2:Destroy()
  2804. end)
  2805. chat()
  2806. end
  2807. function onChatted(msg)
  2808. chatfunc(msg)
  2809. end
  2810. plr.Chatted:connect(onChatted)
  2811. wait(2)
  2812. chatfunc("ItΒ΄s a beatefule night in void..")
  2813. wait(2)
  2814. chatfunc("Black is rising...")
  2815. wait(2)
  2816. chatfunc("Dream!Sans is dying....")
  2817. wait(2)
  2818. chatfunc("On days like these... Chara like you...")
  2819. wait(2)
  2820. chatfunc("Should be erasing in hell.")
  2821. wait(0.5)
  2822. char.Humanoid.Name = "Sans"
  2823.  
  2824. --chat
  2825.  
  2826. function Blast(AAA)
  2827. if AAA == "f" then
  2828. local chatmath = math.random(1,3)
  2829. if chatmath == 1 then
  2830. chatfunc("Gaster Blaster!")
  2831. end
  2832. if chatmath == 2 then
  2833. chatfunc("This is what you get for killing everybody.")
  2834. end
  2835. if chatmath == 3 then
  2836. chatfunc("Look, I gave up trying to go back a long time ago.")
  2837. end
  2838. local gasterblaster = Instance.new("Part",char.Torso)
  2839. gasterblaster.Size = Vector3.new(7, 16, 4)
  2840. gasterblaster.CanCollide = false
  2841. local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
  2842. gasterblastermesh.MeshId = "rbxassetid://431908407"
  2843. gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
  2844. local gasterblastertexture = Instance.new("Decal",gasterblaster)
  2845. gasterblastertexture.Face = "Back"
  2846. gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
  2847. local weeld = Instance.new("Weld",gasterblaster)
  2848. weeld.Part0 = gasterblaster
  2849. weeld.Part1 = char.Torso
  2850. weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
  2851. blastsound:Play()
  2852. char.Head.Anchored = true
  2853. wait(1)
  2854. local blast = Instance.new("Part",gasterblaster)
  2855. blast.Size = Vector3.new(18.07, 16.36, 73.54)
  2856. blast.Transparency = 0.7
  2857. blast.Material = "Neon"
  2858. blast.Color = Color3.new(1,1,1)
  2859. blast.CanCollide = true
  2860. local blastweld = Instance.new("Weld",blast)
  2861. blastweld.Part0 = blast
  2862. blastweld.Part1 = gasterblaster
  2863. blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2864. blast.Touched:connect(function(part)
  2865. part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
  2866. end)
  2867. wait(2)
  2868. char.Head.Anchored = false
  2869. blast:Destroy()
  2870. gasterblaster:Destroy()
  2871. end
  2872. end
  2873. mouse.KeyDown:connect(Blast)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement