Advertisement
kjlaza

Untitled

Apr 11th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print([[
  2. ___________________________________
  3.  
  4. kjlaza
  5.  
  6. ___________________________________
  7. ]])
  8.  
  9. function checkfriendlist(model)
  10. local friend = false
  11. local target = nil
  12. if model.ClassName == "Player" then
  13. target = model
  14. else
  15. target = game:GetService("Players"):GetPlayerFromCharacter(model)
  16. end
  17. if target ~= nil then
  18. if target:IsFriendsWith(67413782) then friend = true end
  19. end
  20. return friend
  21. end
  22.  
  23. if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Whitelist") then
  24. warn("fuck you")
  25. --wait(1)
  26. --error("Script has been stopped.")
  27. end
  28.  
  29. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  30.  
  31. local p = game:GetService("Players").LocalPlayer
  32. local plr = game:GetService("Players").LocalPlayer
  33. local player = game:GetService("Players").LocalPlayer
  34. local char = p.Character
  35. local mouse = p:GetMouse()
  36. local larm = char:WaitForChild("Left Arm")
  37. local rarm = char:WaitForChild("Right Arm")
  38. local lleg = char:WaitForChild("Left Leg")
  39. local rleg = char:WaitForChild("Right Leg")
  40. local hed = char:WaitForChild("Head")
  41. local torso = char:WaitForChild("Torso")
  42. local root = char:WaitForChild("HumanoidRootPart")
  43. local hum = char:FindFirstChildOfClass("Humanoid")
  44. local debris = game:GetService("Debris")
  45. local run = game:GetService("RunService")
  46. local rs = run.RenderStepped
  47. local cam = workspace.CurrentCamera
  48. local movement = 4
  49. local change = 0.4
  50. local DebrisModel = Instance.new("Model",char)
  51. local stealth = false
  52. local debounce = false
  53. hum.MaxHealth = 50000
  54. hum.Health = hum.MaxHealth
  55. themeid = 556122490
  56. themepitch = 1
  57. main = {r = 0;g = 100;b = 255;v = 1}
  58. if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
  59. if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
  60. if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
  61. if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
  62. if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
  63. if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
  64. pr = p:FindFirstChild("rcolor")
  65. pg = p:FindFirstChild("gcolor")
  66. pb = p:FindFirstChild("bcolor")
  67. pv = p:FindFirstChild("vcolor")
  68. idth = p:FindFirstChild("idtheme")
  69. pith = p:FindFirstChild("pitchtheme")
  70. main_color = Color3.fromRGB(main.r,main.g,main.b)
  71. explosionid = {262562442,144699494,539294959,1388740053}
  72. --919941001
  73. Prefix = "/"
  74. p.Chatted:connect(function(msg)
  75.  
  76. if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
  77. local v = tonumber(msg:sub(#Prefix+#'color r '+1))
  78. main.r = v
  79. elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
  80. local v = tonumber(msg:sub(#Prefix+#'color g '+1))
  81. main.g = v
  82. elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
  83. local v = tonumber(msg:sub(#Prefix+#'color b '+1))
  84. main.b = v
  85. elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
  86. local v = tonumber(msg:sub(#Prefix+#'color v '+1))
  87. if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
  88.  
  89. elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
  90. local v = tonumber(msg:sub(#Prefix+#'theme '+1))
  91. themeid = v
  92. music(themeid,themepitch)
  93.  
  94. elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
  95. local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
  96. themepitch = v
  97. music(themeid,themepitch)
  98.  
  99. elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
  100. local v = msg:sub(#Prefix+#'prefix '+1)
  101. Prefix = v
  102.  
  103. elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
  104. main.r = 0
  105. main.g = 100
  106. main.b = 255
  107. main.v = 1
  108. themeid = 556122490
  109. themepitch = 1
  110. music(themeid,themepitch)
  111.  
  112. end
  113.  
  114. end)
  115.  
  116.  
  117. Reaper3 = Instance.new("Model")
  118. Reaper3.Parent = Player.Character
  119. Reaper3.Name = "Reaper3"
  120. rh3 = Instance.new("Part")
  121. rh3.Parent = Reaper3
  122. rh3.BrickColor = BrickColor.new("Really blue")
  123. rh3.Locked = true
  124. rh3.CanCollide = false
  125. mesh3 = Instance.new("SpecialMesh")
  126. rh3.formFactor = "Symmetric"
  127. mesh3.MeshType = "FileMesh"
  128. mesh3.MeshId = "http://www.roblox.com/asset/?id=16952952"
  129. mesh3.TextureId = "http://www.roblox.com/asset/?id="
  130. mesh3.Parent = rh3
  131. mesh3.VertexColor = Vector3.new(-2000, -2000, -2000)
  132. local weld3 = Instance.new("Weld")
  133. weld3.Parent = rh3
  134. rh3.Transparency = 0
  135. weld3.Part0 = rh3
  136. weld3.Part1 = Player.Character.Torso
  137. weld3.C0 = CFrame.new(-0, -1.8, -0)*CFrame.Angles(0, 0, 0)
  138. wait(1)
  139.  
  140. player = game.Players.LocalPlayer
  141. chara = player.Character
  142. debby = game.Debris
  143. local Mouse = player:GetMouse()
  144.  
  145. --Outfit and Weapons--
  146. New = function(Object, Parent, Name, Data)
  147. local Object = Instance.new(Object)
  148. for Index, Value in pairs(Data or {}) do
  149. Object[Index] = Value
  150. end
  151. Object.Parent = Parent
  152. Object.Name = Name
  153. return Object
  154. end
  155.  
  156. LeftArm = New("Model",chara,"LeftArm",{})
  157. MainPart = New("Part",LeftArm,"MainPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 2.00000024, 1),CFrame = CFrame.new(4.5, 3.00005722, -4.50000048, -1, 0, 0, 0, 1.00001287, 0, 0, 0, -1.00001287),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.705882, 0.823529, 0.894118),})
  158. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1.00000429, 0, 0, 0, -1.00000429),C1 = CFrame.new(0, 7.62939453e-006, 1.23977661e-005, 1, 0, 0, 0, 1.00000429, 0, 0, 0, 1.00000429),})
  159. Part = New("Part",LeftArm,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.200000003, 1),CFrame = CFrame.new(4.9000001, 3.90006065, -4.50000048, -1, 0, 0, 0, 1.00001287, 0, 0, 0, -1.00001287),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.321569, 0.486275, 0.682353),})
  160. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.00999999, 1.00999999, 1.00999999),})
  161. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(-0.400000095, 0.899991989, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  162. Part = New("Part",LeftArm,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Size = Vector3.new(1, 0.200000003, 0.200000003),CFrame = CFrame.new(4.10000086, 2.70005608, -4.50000048, 0, 0, -1, 0, 1.00001287, 0, 1.00001287, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.321569, 0.486275, 0.682353),})
  163. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.00999999, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
  164. Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.399999142, -0.29999733, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  165. ----------------------------------------------------------------------------
  166. no_anim = false
  167. attack = false
  168. attacking = false
  169. canjump = true
  170. aiming_anim = false
  171. animid = math.random(0,1)
  172. timer = 0
  173. bg = Instance.new("BodyGyro",root)
  174. bg.P = 100000
  175. bg.D = 100
  176. ----------------------------------------------------------------------------
  177.  
  178. function rswait(value)
  179. if value ~= nil and value ~= 0 then
  180. for i=1,value do
  181. rs:wait()
  182. end
  183. else
  184. rs:wait()
  185. end
  186. end
  187.  
  188. ----------------------------------------------------------------------------
  189. max = 0
  190. function music(id,pitch)
  191. max = 0
  192. if id == "Stop" then
  193. if not torso:FindFirstChild("MusicRuin") then
  194. soundz = Instance.new("Sound",torso)
  195. end
  196. soundz:Stop()
  197. else
  198. if not torso:FindFirstChild("MusicRuin") then
  199. soundz = Instance.new("Sound",torso)
  200. end
  201. soundz.MaxDistance = 150*5
  202. soundz.EmitterSize = 150/5
  203. soundz.Volume = 10
  204. soundz.Name = "MusicRuin"
  205. soundz.Looped = true
  206. soundz.PlaybackSpeed = pitch
  207. soundz.SoundId = "rbxassetid://"..id
  208. soundz:Stop()
  209. soundz:Play()
  210. end
  211. end
  212.  
  213. ----------------------------------------------------------------------------
  214.  
  215. function lerp(a, b, t)
  216. return a + (b - a)*t
  217. end
  218.  
  219. ----------------------------------------------------------------------------
  220.  
  221. function Lerp(c1,c2,al)
  222. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  223. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  224. for i,v in pairs(com1) do
  225. com1[i] = v+(com2[i]-v)*al
  226. end
  227. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  228. end
  229.  
  230. ----------------------------------------------------------------------------
  231.  
  232. function slerp(a, b, t)
  233. dot = a:Dot(b)
  234. if dot > 0.99999 or dot < -0.99999 then
  235. return t <= 0.5 and a or b
  236. else
  237. r = math.acos(dot)
  238. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  239. end
  240. end
  241.  
  242. ----------------------------------------------------------------------------
  243.  
  244. function clerp(c1,c2,al)
  245.  
  246. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  247.  
  248. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  249.  
  250. for i,v in pairs(com1) do
  251.  
  252. com1[i] = lerp(v,com2[i],al)
  253.  
  254. end
  255.  
  256. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  257.  
  258. end
  259.  
  260. ----------------------------------------------------------------------------
  261.  
  262. function findAllNearestTorso(pos,dist)
  263. local list = game.Workspace:children()
  264. local torso = {}
  265. local temp = nil
  266. local human = nil
  267. local temp2 = nil
  268. for x = 1, #list do
  269. temp2 = list[x]
  270. if (temp2.className == "Model") and (temp2 ~= char) then
  271. local nayem = "Torso"
  272. if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
  273. temp = temp2:findFirstChild(nayem)
  274. human = temp2:findFirstChildOfClass("Humanoid")
  275. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  276. if (temp.Position - pos).magnitude < dist then
  277. table.insert(torso,temp)
  278. dist = (temp.Position - pos).magnitude
  279. end
  280. end
  281. end
  282. end
  283. return torso
  284. end
  285.  
  286. ----------------------------------------------------------------------------
  287.  
  288. local isAPlayer
  289. function checkIfNotPlayer(model)
  290. coroutine.resume(coroutine.create(function()
  291. 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
  292. isAPlayer = true
  293. else
  294. isAPlayer = false
  295. end
  296. end))
  297. return isAPlayer
  298. end
  299.  
  300. ----------------------------------------------------------------------------
  301.  
  302. function computeDirection(vec)
  303. local lenSquared = vec.magnitude * vec.magnitude
  304. local invSqrt = 1 / math.sqrt(lenSquared)
  305. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  306. end
  307.  
  308. ----------------------------------------------------------------------------
  309.  
  310. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  311.  
  312. local wld = Instance.new("Weld", wp1)
  313.  
  314. wld.Part0 = wp0
  315.  
  316. wld.Part1 = wp1
  317.  
  318. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  319.  
  320. return wld
  321.  
  322. end
  323.  
  324. ----------------------------------------------------------------------------
  325.  
  326. function weld(model)
  327. local parts,last = {}
  328. local function scan(parent)
  329. for _,v in pairs(parent:GetChildren()) do
  330. if (v:IsA("BasePart")) then
  331. if (last) then
  332. local w = Instance.new("Weld")
  333. w.Name = ("%s_Weld"):format(v.Name)
  334. w.Part0,w.Part1 = last,v
  335. w.C0 = last.CFrame:inverse()
  336. w.C1 = v.CFrame:inverse()
  337. w.Parent = last
  338. end
  339. last = v
  340. table.insert(parts,v)
  341. end
  342. scan(v)
  343. end
  344. end
  345. scan(model)
  346. for _,v in pairs(parts) do
  347. v.Anchored = false
  348. v.Locked = true
  349. end
  350. end
  351.  
  352. ----------------------------------------------------------------------------
  353.  
  354. function sound(id,position,vol,pitch,dist,start,finish)
  355. coroutine.resume(coroutine.create(function()
  356.  
  357. local part = Instance.new("Part",DebrisModel)
  358. part.Anchored = true
  359. part.Position = position
  360. part.Size = Vector3.new(0,0,0)
  361. part.CanCollide = false
  362. part.Transparency = 1
  363.  
  364. soundasd = Instance.new("Sound",part)
  365.  
  366. soundasd.SoundId = "rbxassetid://"..id
  367.  
  368. if vol ~= nil then
  369. soundasd.Volume = vol
  370. end
  371.  
  372. if pitch ~= nil then
  373. soundasd.PlaybackSpeed = pitch
  374. end
  375.  
  376. if dist ~= nil then
  377. soundasd.MaxDistance = dist*5
  378. soundasd.EmitterSize = dist/5
  379. end
  380.  
  381. delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
  382.  
  383. soundasd:Play()
  384.  
  385. end))
  386. return soundasd
  387. end
  388.  
  389. function createsound(id,parent)
  390.  
  391. local soundz = Instance.new("Sound",parent)
  392.  
  393. soundz.SoundId = "rbxassetid://"..id
  394.  
  395. return soundz
  396.  
  397. end
  398.  
  399. function playsound(sond,vol,pitch,start)
  400.  
  401. if vol ~= nil then
  402. sond.Volume = vol
  403. end
  404.  
  405. if pitch ~= nil then
  406. sond.PlaybackSpeed = pitch
  407. end
  408.  
  409. if start ~= nil then
  410. sond.TimePosition = start
  411. end
  412.  
  413. sond:Play()
  414.  
  415. end
  416.  
  417. ----------------------------------------------------------------------------
  418. eColors={"Really red","Really black"}
  419. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  420. local magz = (Part0 - Part1).magnitude
  421. local curpos = Part0
  422. local trz = {-Offset,Offset}
  423. for i=1,Times do
  424. local li = Instance.new("Part", DebrisModel)
  425. li.TopSurface =0
  426. li.Material = Enum.Material.Neon
  427. li.BottomSurface = 0
  428. li.Anchored = true
  429. li.Locked = true
  430. li.Transparency = Trans or 0.4
  431. li.BrickColor = BrickColor.new(Color)
  432. li.formFactor = "Custom"
  433. li.CanCollide = false
  434. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  435. local lim = Instance.new("BlockMesh",li)
  436. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  437. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  438. if Times == i then
  439. local magz2 = (curpos - Part1).magnitude
  440. li.Size = Vector3.new(Thickness,Thickness,magz2)
  441. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  442. else
  443. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  444. end
  445. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  446. li.Name = "LIGHTNING"
  447. end
  448. end
  449.  
  450. ----------------------------------------------------------------------------
  451.  
  452. local HBill = Instance.new("BillboardGui",hed)
  453. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  454. local HName = Instance.new("TextLabel")
  455. HBill.Size = UDim2.new(15,0,2.2,0)
  456. HBill.StudsOffset = Vector3.new(3.675,1.2,0)
  457. HBill.AlwaysOnTop = true
  458. HBill.Enabled = true
  459. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  460. HMain.BackgroundTransparency = 1
  461. HMain.Size = UDim2.new(.5,0,.2,0)
  462. HName.Parent = HMain
  463. HName.BackgroundTransparency = 1
  464. HName.BackgroundColor3 = Color3.new(255,255,255)
  465. HName.BorderColor3 = Color3.new(0,0,0)
  466. HName.BorderSizePixel = 2
  467. HName.Size = UDim2.new(1,0,.75,0)
  468. HName.Font = "Code"
  469. HName.Text = [[(KJ'S GOD OF LIGHT)]]
  470. HName.TextScaled = true
  471. HName.TextColor3 = Color3.new(0.5,0.5,0.5)
  472. HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
  473. HName.TextStrokeTransparency = 0
  474. HName.TextYAlignment = "Bottom"
  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,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,.5,0)
  486. HName.Parent = HMain
  487. HName.BackgroundTransparency = 1
  488. HName.BackgroundColor3 = Color3.new(255,255,255)
  489. HName.BorderColor3 = Color3.new(0,0,0)
  490. HName.BorderSizePixel = 2
  491. HName.Size = UDim2.new(1,0,.75,0)
  492. HName.Font = "Code"
  493. HName.Text = [[ライト・オブ・ライト]]
  494. HName.TextScaled = true
  495. HName.TextColor3 = Color3.new(0,0,0)
  496. HName.TextStrokeColor3 = Color3.new(255,255,255)
  497. HName.TextStrokeTransparency = 0
  498. HName.TextYAlignment = "Bottom"
  499.  
  500. function bigboomrektxd()
  501. coroutine.resume(coroutine.create(function()
  502. local magnitude = nil
  503. local Position = nil
  504. if animid == 0 then
  505. Position = larm.Position
  506. else
  507. Position = rarm.Position
  508. end
  509. --sound(743499393,Position,10,math.random(6,8)/10)
  510. sound(440145223,Position,10,math.random(10,12)/10,50)
  511.  
  512. local Part1 = Instance.new("Part")
  513. local mesh2 = Instance.new("SpecialMesh",Part1)
  514. mesh2.MeshId = "rbxassetid://559831844"
  515. mesh2.Scale = Vector3.new(0,0,0.4)
  516. Part1.Material = Enum.Material.Neon
  517. Part1.CanCollide = false
  518. Part1.Color = Color3.fromHSV(0,0,main.v)
  519. Part1.Parent = DebrisModel
  520. Part1.Size = Vector3.new(0,0,0)
  521. Part1.Anchored = true
  522. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  523. Part1.Name = "EXPLOSION2"
  524.  
  525. local Part0 = Instance.new("Part",DebrisModel)
  526. local PointLight2 = Instance.new("PointLight")
  527. Part0.Name = "Bullet"
  528. Part0.Material = Enum.Material.Neon
  529. Part0.Color = Color3.fromHSV(0,0,main.v)
  530. Part0.Anchored = false
  531. Part0.Size = Vector3.new(5, 5, 5)
  532. local mesh = Instance.new("SpecialMesh",Part0)
  533. mesh.MeshType = Enum.MeshType.Sphere
  534. local bforce = Instance.new("BodyForce",Part0)
  535. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  536. Part0.CanCollide = false
  537. PointLight2.Parent = Part0
  538. PointLight2.Color = Part0.Color
  539. local Target = mouse.Hit.p
  540. local direction = Target - Position
  541. local direction = computeDirection(direction)
  542. local pos = Position + (direction * 2)
  543. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  544. Part0.Velocity = direction * 60
  545. local asd = nil
  546. local loop = nil
  547. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  548. loop = rs:connect(function()
  549. local asdf = math.random(500,1000)/1000
  550. local Part1 = Instance.new("Part")
  551. local mesh2 = Instance.new("SpecialMesh",Part1)
  552. mesh2.MeshType = Enum.MeshType.Sphere
  553. Part1.Material = Enum.Material.Neon
  554. Part1.CanCollide = false
  555. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  556. Part1.Parent = DebrisModel
  557. Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
  558. Part1.Anchored = true
  559. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
  560. Part1.Name = "SMOKE"
  561. end)
  562. asd = Part0.Touched:connect(function(ht)
  563. local hit=ht.Parent
  564. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  565. asd:disconnect()
  566. loop:disconnect()
  567. Part0:Destroy()
  568.  
  569. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
  570. for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
  571. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  572. v:Destroy()
  573. else
  574. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
  575. end
  576. local Position = Part0.Position
  577. local Target = v.Position
  578. local direction = Target - Position
  579. local direction = computeDirection(direction)
  580. local bv = Instance.new("BodyVelocity",v)
  581. bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
  582. debris:AddItem(bv,1)
  583. end
  584. for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
  585. for z=1,math.random(2,3) do
  586. local asdf = math.random(-5,5)*10-(i/20)*8
  587. local Part1 = Instance.new("Part")
  588. local mesh2 = Instance.new("SpecialMesh",Part1)
  589. mesh2.MeshType = Enum.MeshType.Sphere
  590. mesh2.Scale = Vector3.new(0,0,0)
  591. Part1.Material = Enum.Material.Neon
  592. Part1.CanCollide = false
  593. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  594. Part1.Parent = DebrisModel
  595. Part1.Size = Vector3.new(asdf,asdf,asdf)
  596. Part1.Anchored = true
  597. local a = i*0.5
  598. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
  599. Part1.Name = "EXPLOSION"
  600. end
  601. end
  602.  
  603. end
  604. end)
  605. end))
  606. end
  607.  
  608. holdclick=false
  609.  
  610. mouse.Button1Down:connect(function()
  611. if debounce == false then
  612. if animid == 0 then
  613. animid = 1
  614. else
  615. animid = 0
  616. end
  617. debounce = true
  618. holdclick = true
  619. aiming_anim = true
  620. wait(0.2)
  621. repeat
  622. rs:wait()
  623. timer = 150
  624. until holdclick == false
  625. bigboomrektxd()
  626.  
  627. local Position = mouse.Hit.p
  628. local Target = root.Position
  629. local direction = Target - Position
  630. local direction = computeDirection(direction)
  631. root.Velocity = direction * 150
  632.  
  633. aiming_anim = false
  634. delay(0.3,function() debounce = false end)
  635. end
  636. end)
  637.  
  638. mouse.Button1Up:connect(function()
  639. holdclick=false
  640. end)
  641.  
  642. function dashasdf()
  643. debounce = true
  644.  
  645. canjump = false
  646. attack = true
  647.  
  648. for i,v in pairs(char:GetChildren()) do
  649. if v ~= root then
  650. if v:IsA("Part") then
  651. v.Transparency = 1
  652. elseif v:IsA("Accoutrement") then
  653. v:FindFirstChildOfClass("Part").Transparency = 1
  654. end
  655. end
  656. end
  657.  
  658. local tempattachment = Instance.new("Attachment",root)
  659. tempattachment.Position = Vector3.new(0,0,-4)
  660.  
  661. for i=1,20 do rs:wait()
  662. root.Velocity = Vector3.new(0,0,0)
  663. root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
  664. local asdf = math.random(500,1000)/100
  665. local Part1 = Instance.new("Part")
  666. local mesh2 = Instance.new("SpecialMesh",Part1)
  667. mesh2.MeshType = Enum.MeshType.Sphere
  668. Part1.Material = Enum.Material.Neon
  669. Part1.CanCollide = false
  670. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  671. Part1.Parent = DebrisModel
  672. Part1.Size = Vector3.new(asdf,asdf,asdf)
  673. Part1.Anchored = true
  674. Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
  675. Part1.Name = "SMOKE"
  676. end
  677.  
  678. tempattachment:Destroy()
  679.  
  680. for i,v in pairs(char:GetChildren()) do
  681. if v ~= root then
  682. if v:IsA("Part") then
  683. v.Transparency = 0
  684. elseif v:IsA("Accoutrement") then
  685. v:FindFirstChildOfClass("Part").Transparency = 0
  686. end
  687. end
  688. end
  689.  
  690. canjump = true
  691. attack = false
  692.  
  693. delay(0.1,function() debounce = false end)
  694. end
  695.  
  696. function laz0r()
  697.  
  698. local Position = nil
  699. if animid == 0 then
  700. Position = larm.Position
  701. else
  702. Position = rarm.Position
  703. end
  704.  
  705. local Part1 = Instance.new("Part")
  706. local mesh2 = Instance.new("SpecialMesh",Part1)
  707. mesh2.MeshId = "rbxassetid://559831844"
  708. mesh2.Scale = Vector3.new(0,0,0.4)
  709. Part1.Material = Enum.Material.Neon
  710. Part1.CanCollide = false
  711. Part1.Color = Color3.fromHSV(0,0,main.v)
  712. Part1.Parent = DebrisModel
  713. Part1.Size = Vector3.new(0,0,0)
  714. Part1.Anchored = true
  715. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  716. Part1.Name = "EXPLOSION3"
  717.  
  718. local Part0 = Instance.new("Part",DebrisModel)
  719. Part0.Name = "Bullet"
  720. Part0.Material = Enum.Material.Neon
  721. Part0.Color = Color3.fromHSV(0,0,main.v)
  722. Part0.Anchored = true
  723. local mesh = Instance.new("SpecialMesh",Part0)
  724. mesh.MeshType = Enum.MeshType.Sphere
  725. Part0.CanCollide = false
  726. local Target = mouse.Hit.p
  727. local direction = Target - Position
  728. local direction = computeDirection(direction)
  729. local ray = Ray.new(Position, (Target-Position).unit*1048)
  730. local part, endPoint = workspace:FindPartOnRay(ray, char)
  731. Part0.Size = Vector3.new(5,1,5)
  732. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  733. local pos = Position + (direction * (mesh.Scale.Y/2))
  734. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  735.  
  736. clashpart = Instance.new("Part",DebrisModel)
  737. clashpart.Size = Vector3.new(50,50,50)
  738. clashpart.CanCollide = false
  739. clashpart.Anchored = true
  740. clashpart.Transparency = 1
  741. clashpart.Color = main_color
  742. clashpart.Name = "StarLightClash"
  743. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  744.  
  745. sound(1177475476,Position,10,math.random(5,6)/10,300)
  746.  
  747. local z = 10
  748. for i = 1,100 do rs:wait()
  749. if animid == 0 then
  750. Position = larm.Position
  751. else
  752. Position = rarm.Position
  753. end
  754. local Target = mouse.Hit.p
  755. local direction = Target - Position
  756. local direction = computeDirection(direction)
  757. local ray = Ray.new(Position, (Target-Position).unit*1048)
  758. local part, endPoint = workspace:FindPartOnRay(ray, char)
  759. Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
  760. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  761. mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
  762. local pos = Position + (direction * (mesh.Scale.Y/2))
  763. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  764. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  765.  
  766. local Position = mouse.Hit.p
  767. local Target = root.Position
  768. local direction = Target - Position
  769. local direction = computeDirection(direction)
  770. root.Velocity = direction * 5
  771.  
  772. if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
  773.  
  774. Part1 = Part0:Clone()
  775. Part1.Parent = DebrisModel
  776. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  777. Part1.Name = "SMOKE2"
  778.  
  779. if part ~= nil then
  780. if part.Name == "StarLightClash" then
  781. local asdf = math.random(0,5)*20
  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(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)
  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. else
  796. local asdf = math.random(0,5)*10
  797. local Part1 = Instance.new("Part")
  798. local mesh2 = Instance.new("SpecialMesh",Part1)
  799. mesh2.MeshType = Enum.MeshType.Sphere
  800. mesh2.Scale = Vector3.new(0,0,0)
  801. Part1.Material = Enum.Material.Neon
  802. Part1.CanCollide = false
  803. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  804. Part1.Parent = DebrisModel
  805. Part1.Size = Vector3.new(asdf,asdf,asdf)
  806. Part1.Anchored = true
  807. local a = 1.5
  808. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  809. Part1.Name = "EXPLOSION"
  810. end
  811. end
  812.  
  813. for i,v in pairs(findAllNearestTorso(endPoint,50)) do
  814. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  815. v:Destroy()
  816. else
  817. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
  818. end
  819. local Position = mouse.Hit.p
  820. local Target = v.Position
  821. local direction = Target - Position
  822. local direction = computeDirection(direction)
  823. local bv = Instance.new("BodyVelocity",v)
  824. bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
  825. debris:AddItem(bv,1)
  826. end
  827.  
  828. end
  829. clashpart:Destroy()
  830. Part0:Destroy()
  831. wait(0.3)
  832. aiming_anim = false
  833. delay(0.3,function() debounce = false end)
  834. end
  835.  
  836. function nukewelpo()
  837. coroutine.resume(coroutine.create(function()
  838. local magnitude = nil
  839. local Position = nil
  840. if animid == 0 then
  841. Position = larm.Position
  842. else
  843. Position = rarm.Position
  844. end
  845. --sound(743499393,Position,10,math.random(6,8)/10)
  846. sound(440145223,Position,10,math.random(4,5)/10,100)
  847.  
  848. local Part1 = Instance.new("Part")
  849. local mesh2 = Instance.new("SpecialMesh",Part1)
  850. mesh2.MeshId = "rbxassetid://559831844"
  851. mesh2.Scale = Vector3.new(0,0,0.4)
  852. Part1.Material = Enum.Material.Neon
  853. Part1.CanCollide = false
  854. Part1.Color = Color3.fromHSV(0,0,main.v)
  855. Part1.Parent = DebrisModel
  856. Part1.Size = Vector3.new(0,0,0)
  857. Part1.Anchored = true
  858. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  859. Part1.Name = "EXPLOSION3"
  860.  
  861. local Part0 = Instance.new("Part",DebrisModel)
  862. local PointLight2 = Instance.new("PointLight")
  863. Part0.Name = "Bullet"
  864. Part0.Material = Enum.Material.Neon
  865. Part0.Color = Color3.fromHSV(0,0,main.v)
  866. Part0.Anchored = false
  867. Part0.Size = Vector3.new(5, 5, 5)
  868. local mesh = Instance.new("SpecialMesh",Part0)
  869. mesh.MeshType = Enum.MeshType.Sphere
  870. mesh.Scale = Vector3.new(3,3,3)
  871. local bforce = Instance.new("BodyForce",Part0)
  872. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  873. Part0.CanCollide = false
  874. PointLight2.Parent = Part0
  875. PointLight2.Color = Part0.Color
  876. local Target = mouse.Hit.p
  877. local direction = Target - Position
  878. local direction = computeDirection(direction)
  879. local pos = Position + (direction * 2)
  880. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  881. Part0.Velocity = direction * 150
  882. local asd = nil
  883. local loop = nil
  884. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  885. loop = rs:connect(function()
  886. local asdf = math.random(500,1000)/1000
  887. local Part1 = Instance.new("Part")
  888. local mesh2 = Instance.new("SpecialMesh",Part1)
  889. mesh2.MeshType = Enum.MeshType.Sphere
  890. Part1.Material = Enum.Material.Neon
  891. Part1.CanCollide = false
  892. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  893. Part1.Parent = DebrisModel
  894. Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
  895. Part1.Anchored = true
  896. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
  897. Part1.Name = "SMOKE"
  898. end)
  899. asd = Part0.Touched:connect(function(ht)
  900. local hit=ht.Parent
  901. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  902. asd:disconnect()
  903. loop:disconnect()
  904. Part0:Destroy()
  905.  
  906. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
  907. for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
  908. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  909. v:Destroy()
  910. else
  911. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
  912. end
  913. local Position = Part0.Position
  914. local Target = v.Position
  915. local direction = Target - Position
  916. local direction = computeDirection(direction)
  917. local bv = Instance.new("BodyVelocity",v)
  918. bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
  919. debris:AddItem(bv,1)
  920. end
  921. for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
  922. for z=1,math.random(2,3) do
  923. local asdf = math.random(-5,5)*10-(i/20)*12
  924. local Part1 = Instance.new("Part")
  925. local mesh2 = Instance.new("SpecialMesh",Part1)
  926. mesh2.MeshType = Enum.MeshType.Sphere
  927. mesh2.Scale = Vector3.new(0,0,0)
  928. Part1.Material = Enum.Material.Neon
  929. Part1.CanCollide = false
  930. Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
  931. Part1.Parent = DebrisModel
  932. Part1.Size = Vector3.new(asdf,asdf,asdf)
  933. Part1.Anchored = true
  934. local a = i*5
  935. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
  936. Part1.Name = "EXPLOSION4"
  937. end
  938. end
  939.  
  940. end
  941. end)
  942. end))
  943. end
  944.  
  945. holdq = false
  946. holdr = false
  947. cooldownult = false
  948.  
  949. mouse.KeyDown:connect(function(key)
  950. if debounce == false then
  951. if key == "e" then
  952. dashasdf()
  953. elseif key == "r" and cooldownult == false then
  954. cooldownult = true
  955. if animid == 0 then
  956. animid = 1
  957. else
  958. animid = 0
  959. end
  960. debounce = true
  961. holdr = true
  962. aiming_anim = true
  963. wait(0.2)
  964. repeat
  965. rs:wait()
  966. timer = 150
  967. until holdr == false
  968. nukewelpo()
  969.  
  970. local Position = mouse.Hit.p
  971. local Target = root.Position
  972. local direction = Target - Position
  973. local direction = computeDirection(direction)
  974. root.Velocity = direction * 300
  975.  
  976. aiming_anim = false
  977. delay(5,function() cooldownult = false end)
  978. delay(1,function() debounce = false end)
  979.  
  980. elseif key == "q" then
  981. debounce = true
  982. if animid == 0 then
  983. animid = 1
  984. else
  985. animid = 0
  986. end
  987. holdq = true
  988. attack = true
  989. aiming_anim = true
  990. repeat rs:wait() timer = 150 until holdq == false
  991. laz0r()
  992. attack = false
  993. end
  994. end
  995. end)
  996.  
  997. mouse.KeyUp:connect(function(key)
  998. if key == "q" then
  999. holdq = false
  1000. elseif key == "r" then
  1001. holdr = false
  1002. end
  1003. end)
  1004.  
  1005. ----------------------------------------------------------------------------
  1006. music(themeid,themepitch)
  1007. velocityYFall=0
  1008. velocityYFall2=0
  1009. velocityYFall3=0
  1010. velocityYFall4=0
  1011. neckrotY=0
  1012. neckrotY2=0
  1013. torsorotY=0
  1014. torsorotY2=0
  1015. torsoY=0
  1016. torsoY2=0
  1017. sine = 0
  1018. newWeld(torso, larm, -1.5, 0.5, 0)
  1019. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1020. newWeld(torso, rarm, 1.5, 0.5, 0)
  1021. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1022. newWeld(torso, hed, 0, 1.5, 0)
  1023. newWeld(torso, lleg, -0.5, -1, 0)
  1024. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1025. newWeld(torso, rleg, 0.5, -1, 0)
  1026. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1027. newWeld(root, torso, 0, -1, 0)
  1028. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1029.  
  1030. rs:connect(function()
  1031.  
  1032. bg.MaxTorque = Vector3.new(0,0,0)
  1033.  
  1034. for i,v in pairs(DebrisModel:GetChildren()) do
  1035.  
  1036.  
  1037. if v.Name == "EXPLOSION" then
  1038. local change = 0.04-(v.Transparency*0.02)
  1039. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1040. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1041. v.Transparency = v.Transparency + 0.02
  1042. if v.Transparency >= 1 then
  1043. v:Destroy()
  1044. end
  1045.  
  1046. elseif v.Name == "EXPLOSION2" then
  1047. local change = 0.04-(v.Transparency*0.04)
  1048. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1049. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1050. v.Transparency = v.Transparency + 0.025
  1051. if v.Transparency >= 1 then
  1052. v:Destroy()
  1053. end
  1054.  
  1055. elseif v.Name == "EXPLOSION3" then
  1056. local change = 0.5-(v.Transparency*0.5)
  1057. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1058. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1059. v.Transparency = v.Transparency + 0.1
  1060. if v.Transparency >= 1 then
  1061. v:Destroy()
  1062. end
  1063.  
  1064. elseif v.Name == "EXPLOSION4" then
  1065. local change = 0.15-(v.Transparency*0.125)
  1066. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1067. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1068. v.Transparency = v.Transparency + 0.01
  1069. if v.Transparency >= 1 then
  1070. v:Destroy()
  1071. end
  1072.  
  1073. elseif v.Name == "SMOKE" then
  1074. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1075. vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
  1076. if vm.Scale.X <= 0 then
  1077. v:Destroy()
  1078. end
  1079.  
  1080. elseif v.Name == "SMOKE2" then
  1081. local change = 2-(v.Transparency*2)
  1082. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1083. local Position = nil
  1084. if animid == 0 then
  1085. Position = larm.Position
  1086. else
  1087. Position = rarm.Position
  1088. end
  1089. local Target = mouse.Hit.p
  1090. local direction = Target - Position
  1091. local direction = computeDirection(direction)
  1092. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1093. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1094. vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
  1095. local pos = Position + (direction * (vm.Scale.Y/2))
  1096. v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1097. vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
  1098. v.Transparency = v.Transparency + 0.1
  1099. if v.Transparency >= 1 then
  1100. v:Destroy()
  1101. end
  1102.  
  1103.  
  1104. elseif v.Name == "LIGHTNING" then
  1105. local vm = v:FindFirstChildOfClass("BlockMesh")
  1106. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  1107. if vm.Scale.X <= 0 then
  1108. v:Destroy()
  1109. end
  1110.  
  1111. end
  1112. end
  1113.  
  1114. if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
  1115. velocityYFall = root.Velocity.Y/1.5
  1116. end
  1117. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1118. velocityYFall2 = root.Velocity.Y/180
  1119. end
  1120. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1121. velocityYFall3 = root.Velocity.Y/1.5
  1122. end
  1123. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1124. velocityYFall4 = root.Velocity.Y/1.5
  1125. end
  1126. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1127. neckrotY = root.RotVelocity.Y/6
  1128. end
  1129. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1130. neckrotY2 = root.RotVelocity.Y/8
  1131. end
  1132.  
  1133. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1134. torsorotY = root.RotVelocity.Y/6
  1135. end
  1136. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1137. torsorotY2 = root.RotVelocity.Y/8
  1138. end
  1139.  
  1140.  
  1141. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1142. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1143.  
  1144. if attack == true then
  1145. hum.WalkSpeed = 1
  1146. else
  1147. hum.WalkSpeed = 8
  1148. end
  1149.  
  1150. if canjump == true then
  1151. hum.JumpPower = 50
  1152. else
  1153. hum.JumpPower = 0
  1154. end
  1155.  
  1156. local jumped = false
  1157. local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1158. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1159. local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1160. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1161. local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1162. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1163. local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1164. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1165.  
  1166. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1167.  
  1168. local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1169. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1170.  
  1171. local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1172. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1173.  
  1174. if no_anim == false then
  1175. if hum.Health > 0 then
  1176. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1177. 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)
  1178. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
  1179. 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)
  1180. 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)
  1181. 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)
  1182. 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)
  1183. 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)
  1184. elseif jumped == true then
  1185. 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)
  1186. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
  1187. 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)
  1188. 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)
  1189. 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)
  1190. 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)
  1191. 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)
  1192. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  1193. 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)
  1194. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
  1195. 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)
  1196. 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)
  1197. 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)
  1198. 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)
  1199. 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)
  1200. end
  1201. for i=1,5 do
  1202. if aiming_anim == true then
  1203. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1204. if jumped == false then
  1205. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1206. else
  1207. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1208. end
  1209. if animid == 0 then
  1210. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
  1211. 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)
  1212. larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4)
  1213. else
  1214. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
  1215. 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)
  1216. 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)
  1217. end
  1218. else
  1219. if timer <= 0 then
  1220. animid = math.random(0,1)
  1221. else
  1222. timer = timer - 1
  1223. end
  1224. end
  1225. end
  1226. end
  1227. end
  1228. main_color = Color3.fromRGB(main.r,main.g,main.b)
  1229. pr.Value = main.r
  1230. pg.Value = main.g
  1231. pb.Value = main.b
  1232. pv.Value = main.v
  1233. idth.Value = themeid
  1234. pith.Value = themepitch
  1235. HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
  1236. HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
  1237. sine = sine + change
  1238. if hum.Health <= 0 then
  1239. debounce = true
  1240. end
  1241. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement