Advertisement
Guest User

Untitled

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