Advertisement
zXzGamePROzXz

Untitled

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