Advertisement
Guest User

Untitled

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