Advertisement
Toey8415

Z

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