Ban43_GodOfEdits

test star

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