Advertisement
Guest User

awgrwyjt

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