StarzoZero

Roblox FE Sans!

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