Advertisement
Sheckles

Providence

Oct 16th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.30 KB | None | 0 0
  1. --Sadly, this script is non-FE only.
  2. plr = game:GetService("Players").LocalPlayer
  3. char = plr.Character
  4. hum = char.Humanoid
  5. local cam = game.Workspace.CurrentCamera
  6. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  7. Camera = cam
  8. local CamInterrupt = false
  9. local TwoD = false
  10. local TargetInfo = {nil, nil}
  11. cam.CameraType = "Custom"
  12. t = char.Torso
  13. h = char.Head
  14. ra = char["Right Arm"]
  15. la = char["Left Arm"]
  16. rl = char["Right Leg"]
  17. ll = char["Left Leg"]
  18. tors = char.Torso
  19. lleg = char["Left Leg"]
  20. root = char.HumanoidRootPart
  21. hed = char.Head
  22. rleg = char["Right Leg"]
  23. rarm = char["Right Arm"]
  24. larm = char["Left Arm"]
  25. radian = math.rad
  26. random = math.random
  27. Vec3 = Vector3.new
  28. Inst = Instance.new
  29. cFrame = CFrame.new
  30. Euler = CFrame.fromEulerAnglesXYZ
  31. vt = Vector3.new
  32. bc = BrickColor.new
  33. br = BrickColor.random
  34. it = Instance.new
  35. cf = CFrame.new
  36. local eff = true
  37. local shielding = false
  38.  
  39. local Booleans = {
  40. CamFollow = true,
  41. GyroUse = true
  42. }
  43.  
  44. function lerp(object, newCFrame, alpha)
  45. return object:lerp(newCFrame, alpha)
  46. end
  47.  
  48. local Directer = Inst("BodyGyro", root)
  49. Directer.MaxTorque = Vec3(0, 0, 0)
  50. Directer.P = 600000
  51. local CPart = Inst("Part")
  52. CPart.Anchored = true
  53. CPart.CanCollide = false
  54. CPart.Locked = true
  55. CPart.Transparency = 1
  56.  
  57. local rainbowmode = false
  58. local chaosmode = false
  59.  
  60. kan = Instance.new("Sound",char)
  61. kan.Volume = 1.25
  62. kan.TimePosition = 0
  63. kan.PlaybackSpeed = 1
  64. kan.Pitch = 1
  65. kan.SoundId = "rbxassetid://996980700"
  66. kan.Name = "wrecked"
  67. kan.Looped = true
  68. kan:Play()
  69.  
  70. function newTheme(ID,timepos,pitch,vol)
  71. local kanz = kan
  72. --kanz:Stop()
  73. --kanz.Volume = vol
  74. --kanz.TimePosition = timepos
  75. kanz.PlaybackSpeed = pitch
  76. kanz.Pitch = pitch
  77. kanz.SoundId = ID
  78. kanz.Name = "wrecked"
  79. kanz.Looped = true
  80. kanz.Volume = 0.3
  81. --kanz:Play()
  82. --coroutine.resume(coroutine.create(function()
  83. --wait(0.05)
  84. --end))
  85. end
  86.  
  87. function newThemeCust(ID,timepos,pitch,vol)
  88. local kanz = kan
  89. kanz:Stop()
  90. kanz.Volume = vol
  91. kanz.TimePosition = timepos
  92. kanz.PlaybackSpeed = pitch
  93. kanz.Pitch = pitch
  94. kanz.SoundId = ID
  95. kanz.Name = "wrecked"
  96. kanz.Looped = true
  97. kanz:Play()
  98. coroutine.resume(coroutine.create(function()
  99. wait(0.05)
  100. end))
  101. end
  102.  
  103.  
  104.  
  105. function CameraShake(Times, Power, PlayerTarget)
  106. coroutine.resume(coroutine.create(function()
  107. FV = Instance.new("BoolValue", PlayerTarget)
  108. FV.Name = "CameraShake"
  109. for ShakeNum=1,Times do
  110. swait()
  111. local ef=Power
  112. if ef>=1 then
  113. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  114. else
  115. ef=Power*10
  116. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  117. end
  118. end
  119. Humanoid.CameraOffset = Vector3.new(0,0,0)
  120. FV:Destroy()
  121. end))
  122. end
  123.  
  124. function CameraEnshaking(Length,Intensity)
  125. coroutine.resume(coroutine.create(function()
  126. local intensity = 1*Intensity
  127. local rotM = 0.01*Intensity
  128. for i = 0, Length, 0.1 do
  129. swait()
  130. intensity = intensity - 0.05*Intensity/Length
  131. rotM = rotM - 0.0005*Intensity/Length
  132. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  133. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  134. end
  135. Humanoid.CameraOffset = Vec3(0, 0, 0)
  136. end))
  137. end
  138. CamShake=function(Part,Distan,Power,Times)
  139. local de=Part.Position
  140. for i,v in pairs(workspace:children()) do
  141. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  142. for _,c in pairs(v:children()) do
  143. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  144. local Noob=v.Humanoid
  145. if Noob~=nil then
  146. coroutine.resume(coroutine.create(function()
  147. FV = Instance.new("BoolValue", Noob)
  148. FV.Name = "CameraShake"
  149. for ShakeNum=1,Times do
  150. swait()
  151. local ef=Power
  152. if ef>=1 then
  153. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  154. else
  155. ef=Power*10
  156. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  157. end
  158. end
  159. Humanoid.CameraOffset = Vector3.new(0,0,0)
  160. FV:Destroy()
  161. end))
  162. CameraShake(Times, Power, Noob)
  163. end
  164. end
  165. end
  166. end
  167. end
  168. end
  169.  
  170. function chatfunc(text,color)
  171. local chat = coroutine.wrap(function()
  172. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  173. Character:FindFirstChild("TalkingBillBoard"):destroy()
  174. end
  175. local naeeym2 = Instance.new("BillboardGui",Character)
  176. naeeym2.Size = UDim2.new(0,100,0,40)
  177. naeeym2.StudsOffset = Vector3.new(0,3,0)
  178. naeeym2.Adornee = Character.Head
  179. naeeym2.Name = "TalkingBillBoard"
  180. local tecks2 = Instance.new("TextLabel",naeeym2)
  181. tecks2.BackgroundTransparency = 1
  182. tecks2.BorderSizePixel = 0
  183. tecks2.Text = ""
  184. tecks2.Font = "SciFi"
  185. tecks2.TextSize = 30
  186. tecks2.TextStrokeTransparency = 0
  187. tecks2.TextColor3 = color
  188. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  189. tecks2.Size = UDim2.new(1,0,0.5,0)
  190. local tecks3 = Instance.new("TextLabel",naeeym2)
  191. tecks3.BackgroundTransparency = 1
  192. tecks3.BorderSizePixel = 0
  193. tecks3.Text = ""
  194. tecks3.Font = "SciFi"
  195. tecks3.TextSize = 30
  196. tecks3.TextStrokeTransparency = 0
  197. tecks3.TextColor3 = Color3.new(0,0,0)
  198. tecks3.TextStrokeColor3 = color
  199. tecks3.Size = UDim2.new(1,0,0.5,0)
  200. coroutine.resume(coroutine.create(function()
  201. while true do
  202. swait(1)
  203. plr.Character.wrecked.Volume = 0.3
  204. if chaosmode == true then
  205. tecks2.TextColor3 = BrickColor.random().Color
  206. tecks3.TextStrokeColor3 = BrickColor.random().Color
  207. end
  208. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  209. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  210. tecks2.Rotation = math.random(-5,5)
  211. tecks3.Rotation = math.random(-5,5)
  212. end
  213. end))
  214. for i = 1,string.len(text),1 do
  215. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  216. tecks2.Text = string.sub(text,1,i)
  217. tecks3.Text = string.sub(text,1,i)
  218. swait(1)
  219. end
  220. wait(1)
  221. local randomrot = math.random(1,2)
  222. if randomrot == 1 then
  223. for i = 1, 50 do
  224. swait()
  225. tecks2.Rotation = tecks2.Rotation - .75
  226. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  227. tecks2.TextTransparency = tecks2.TextTransparency + .04
  228. tecks3.Rotation = tecks2.Rotation + .75
  229. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  230. tecks3.TextTransparency = tecks2.TextTransparency + .04
  231. end
  232. elseif randomrot == 2 then
  233. for i = 1, 50 do
  234. swait()
  235. tecks2.Rotation = tecks2.Rotation + .75
  236. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  237. tecks2.TextTransparency = tecks2.TextTransparency + .04
  238. tecks3.Rotation = tecks2.Rotation - .75
  239. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  240. tecks3.TextTransparency = tecks2.TextTransparency + .04
  241. end
  242. end
  243. naeeym2:Destroy()
  244. end)
  245. chat()
  246. end
  247.  
  248.  
  249. local Create = LoadLibrary("RbxUtility").Create
  250.  
  251. CFuncs = {
  252. ["Part"] = {
  253. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  254. local Part = Create("Part"){
  255. Parent = Parent,
  256. Reflectance = Reflectance,
  257. Transparency = Transparency,
  258. CanCollide = false,
  259. Locked = true,
  260. BrickColor = BrickColor.new(tostring(BColor)),
  261. Name = Name,
  262. Size = Size,
  263. Material = Material,
  264. }
  265. RemoveOutlines(Part)
  266. return Part
  267. end;
  268. };
  269.  
  270. ["Mesh"] = {
  271. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  272. local Msh = Create(Mesh){
  273. Parent = Part,
  274. Offset = OffSet,
  275. Scale = Scale,
  276. }
  277. if Mesh == "SpecialMesh" then
  278. Msh.MeshType = MeshType
  279. Msh.MeshId = MeshId
  280. end
  281. return Msh
  282. end;
  283. };
  284.  
  285. ["Mesh"] = {
  286. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  287. local Msh = Create(Mesh){
  288. Parent = Part,
  289. Offset = OffSet,
  290. Scale = Scale,
  291. }
  292. if Mesh == "SpecialMesh" then
  293. Msh.MeshType = MeshType
  294. Msh.MeshId = MeshId
  295. end
  296. return Msh
  297. end;
  298. };
  299.  
  300. ["Weld"] = {
  301. Create = function(Parent, Part0, Part1, C0, C1)
  302. local Weld = Create("Weld"){
  303. Parent = Parent,
  304. Part0 = Part0,
  305. Part1 = Part1,
  306. C0 = C0,
  307. C1 = C1,
  308. }
  309. return Weld
  310. end;
  311. };
  312.  
  313. ["Sound"] = {
  314. Create = function(id, par, vol, pit)
  315. coroutine.resume(coroutine.create(function()
  316. local S = Create("Sound"){
  317. Volume = vol,
  318. Name = "EffectSoundo",
  319. Pitch = pit or 1,
  320. SoundId = id,
  321. Parent = par or workspace,
  322. }
  323. wait()
  324. S:play()
  325. game:GetService("Debris"):AddItem(S, 10)
  326. end))
  327. end;
  328. };
  329.  
  330. ["LongSound"] = {
  331. Create = function(id, par, vol, pit)
  332. coroutine.resume(coroutine.create(function()
  333. local S = Create("Sound"){
  334. Volume = vol,
  335. Pitch = pit or 1,
  336. SoundId = id,
  337. Parent = par or workspace,
  338. }
  339. wait()
  340. S:play()
  341. game:GetService("Debris"):AddItem(S, 30)
  342. end))
  343. end;
  344. };
  345.  
  346. ["ParticleEmitter"] = {
  347. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  348. local fp = Create("ParticleEmitter"){
  349. Parent = Parent,
  350. Color = ColorSequence.new(Color1, Color2),
  351. LightEmission = LightEmission,
  352. Size = Size,
  353. Texture = Texture,
  354. Transparency = Transparency,
  355. ZOffset = ZOffset,
  356. Acceleration = Accel,
  357. Drag = Drag,
  358. LockedToPart = LockedToPart,
  359. VelocityInheritance = VelocityInheritance,
  360. EmissionDirection = EmissionDirection,
  361. Enabled = Enabled,
  362. Lifetime = LifeTime,
  363. Rate = Rate,
  364. Rotation = Rotation,
  365. RotSpeed = RotSpeed,
  366. Speed = Speed,
  367. VelocitySpread = VelocitySpread,
  368. }
  369. return fp
  370. end;
  371. };
  372.  
  373. CreateTemplate = {
  374.  
  375. };
  376. }
  377.  
  378.  
  379.  
  380. New = function(Object, Parent, Name, Data)
  381. local Object = Instance.new(Object)
  382. for Index, Value in pairs(Data or {}) do
  383. Object[Index] = Value
  384. end
  385. Object.Parent = Parent
  386. Object.Name = Name
  387. return Object
  388. end
  389. local halocolor = BrickColor.new("Deep orange")
  390. local halocolor2 = BrickColor.new("Deep orange")
  391. local starcolor = BrickColor.new("Deep orange")
  392. local lunacolor = BrickColor.new("Deep orange")
  393. local lunacolor2 = BrickColor.new("Deep orange")
  394. local wepcolor = BrickColor.new("Deep orange")
  395. local maincolor = BrickColor.new("Deep orange")
  396. local m = Instance.new("Model",char)
  397. local m2 = Instance.new("Model",char)
  398. local m3 = Instance.new("Model",char)
  399. local mw1 = Instance.new("Model",char)
  400. local mw2 = Instance.new("Model",char)
  401.  
  402. local extrawingmod1 = Instance.new("Model",char)
  403. local extrawingmod2 = Instance.new("Model",char)
  404.  
  405. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  406. local p = Instance.new("Part")
  407. p.TopSurface = 0
  408. p.BottomSurface = 0
  409. p.Parent = parent
  410. p.Size = Vector3.new(0.1,0.1,0.1)
  411. p.Transparency = transparency
  412. p.Reflectance = reflectance
  413. p.CanCollide = false
  414. p.Locked = true
  415. p.BrickColor = brickcolor
  416. p.Material = material
  417. return p
  418. end
  419.  
  420. function CreateMesh(parent,meshtype,x1,y1,z1)
  421. local mesh = Instance.new("SpecialMesh",parent)
  422. mesh.MeshType = meshtype
  423. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  424. return mesh
  425. end
  426.  
  427. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  428. local mesh = Instance.new("SpecialMesh",parent)
  429. mesh.MeshType = "FileMesh"
  430. mesh.MeshId = meshid
  431. mesh.Scale = Vector3.new(x1,y1,z1)
  432. return mesh
  433. end
  434.  
  435.  
  436. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  437. local mesh = Instance.new("SpecialMesh",parent)
  438. mesh.MeshType = "FileMesh"
  439. mesh.MeshId = meshid
  440. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  441. mesh.Scale = Vector3.new(x1,y1,z1)
  442. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  443. return mesh
  444. end
  445.  
  446. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  447. local weld = Instance.new("Weld")
  448. weld.Parent = parent
  449. weld.Part0 = part0
  450. weld.Part1 = part1
  451. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  452. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  453. return weld
  454. end
  455.  
  456.  
  457. --------------
  458. local secondchar = Instance.new("Model",char)
  459. local GhostCol = BrickColor.new("Really red")
  460. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  461. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  462. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  463.  
  464. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  465. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  466. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  467.  
  468. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  469. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  470. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  471.  
  472. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  473. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  474. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  475.  
  476. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  477. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  478. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  479.  
  480. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  481. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  482. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  483. --------------
  484. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  485. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  486. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  487. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  488.  
  489. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  490. CreateMesh(handle,"Brick",0,0,0)
  491. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  492.  
  493.  
  494. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  495. CreateMesh(handle,"Brick",0,0,0)
  496. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  497.  
  498.  
  499.  
  500. local handle = CreateParta(m,1,1,"Neon",maincolor)
  501. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  502. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  503.  
  504. --- Left wing.
  505.  
  506. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  507. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  508. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  509.  
  510. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  511. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  512. CreateWeld(wed,lwing1,wed,0,0,0.75,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  513. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  514. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  515. CreateWeld(wed,lwing1,wed,0,0,0.75,math.rad(270),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  516. A0 = Instance.new('Attachment',wed)
  517. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  518. CreateMesh(wed,"Wedge",0.5,1.5,5)
  519. CreateWeld(wed,lwing1,wed,0,-0.75,3.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  520. A1 = Instance.new('Attachment',wed)
  521. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  522. CreateMesh(wed,"Wedge",0.5,5,1.5)
  523. CreateWeld(wed,lwing1,wed,0,-3.25,0.75,math.rad(180),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  524.  
  525. tl1 = Instance.new('Trail',wed)
  526. tl1.Attachment0 = A0
  527. tl1.Attachment1 = A1
  528. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  529. tl1.LightEmission = 1
  530. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  531. tl1.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  532. tl1.Lifetime = 0.6
  533.  
  534.  
  535. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  536. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  537. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  538.  
  539. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  540. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  541. CreateWeld(wed,lwing2,wed,0,0,0.75,math.rad(120),math.rad(90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  542. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  543. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  544. CreateWeld(wed,lwing2,wed,0,0,0.75,math.rad(240),math.rad(-90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  545. A0 = Instance.new('Attachment',wed)
  546. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  547. CreateMesh(wed,"Wedge",0.5,1.5,5)
  548. CreateWeld(wed,lwing2,wed,0,-0.75,3.25,math.rad(120),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  549. A1 = Instance.new('Attachment',wed)
  550. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  551. CreateMesh(wed,"Wedge",0.5,5,1.5)
  552. CreateWeld(wed,lwing2,wed,0,-3.25,0.75,math.rad(210),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  553.  
  554. tl2 = Instance.new('Trail',wed)
  555. tl2.Attachment0 = A0
  556. tl2.Attachment1 = A1
  557. tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  558. tl2.LightEmission = 1
  559. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  560. tl2.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  561. tl2.Lifetime = 0.6
  562.  
  563. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  564. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  565. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  566.  
  567. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  568. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  569. CreateWeld(wed,lwing3,wed,0,0,0.75,math.rad(40),math.rad(90),math.rad(0),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  570. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  571. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  572. CreateWeld(wed,lwing3,wed,0,0,0.75,math.rad(320),math.rad(-90),math.rad(0),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  573. A0 = Instance.new('Attachment',wed)
  574. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  575. CreateMesh(wed,"Wedge",0.5,1.5,5)
  576. CreateWeld(wed,lwing3,wed,0,-0.75,3.25,math.rad(40),math.rad(90),math.rad(90),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  577. A1 = Instance.new('Attachment',wed)
  578. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  579. CreateMesh(wed,"Wedge",0.5,5,1.5)
  580. CreateWeld(wed,lwing3,wed,0,-3.25,0.75,math.rad(130),math.rad(90),math.rad(90),1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  581.  
  582. tl3 = Instance.new('Trail',wed)
  583. tl3.Attachment0 = A0
  584. tl3.Attachment1 = A1
  585. tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  586. tl3.LightEmission = 1
  587. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  588. tl3.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  589. tl3.Lifetime = 0.6
  590.  
  591. -- Right wing.
  592.  
  593. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  594. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  595. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  596.  
  597. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  598. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  599. CreateWeld(wed,rwing1,wed,0,0,0.75,math.rad(270),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  600. A0 = Instance.new('Attachment',wed)
  601. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  602. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  603. CreateWeld(wed,rwing1,wed,0,0,0.75,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  604. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  605. CreateMesh(wed,"Wedge",0.5,1.5,5)
  606. CreateWeld(wed,rwing1,wed,0,-0.75,3.25,math.rad(270),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  607. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  608. CreateMesh(wed,"Wedge",0.5,5,1.5)
  609. CreateWeld(wed,rwing1,wed,0,-3.25,0.75,math.rad(360),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  610. A1 = Instance.new('Attachment',wed)
  611.  
  612. tr1 = Instance.new('Trail',wed)
  613. tr1.Attachment0 = A0
  614. tr1.Attachment1 = A1
  615. tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  616. tr1.LightEmission = 1
  617. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  618. tr1.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  619. tr1.Lifetime = 0.6
  620.  
  621. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  622. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  623. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  624.  
  625. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  626. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  627. CreateWeld(wed,rwing2,wed,0,0,0.75,math.rad(240),math.rad(90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  628. A0 = Instance.new('Attachment',wed)
  629. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  630. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  631. CreateWeld(wed,rwing2,wed,0,0,0.75,math.rad(120),math.rad(-90),math.rad(0),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  632. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  633. CreateMesh(wed,"Wedge",0.5,1.5,5)
  634. CreateWeld(wed,rwing2,wed,0,-0.75,3.25,math.rad(240),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  635. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  636. CreateMesh(wed,"Wedge",0.5,5,1.5)
  637. CreateWeld(wed,rwing2,wed,0,-3.25,0.75,math.rad(330),math.rad(90),math.rad(90),0,1.5,0,math.rad(0),math.rad(0),math.rad(0))
  638. A1 = Instance.new('Attachment',wed)
  639.  
  640. tr2 = Instance.new('Trail',wed)
  641. tr2.Attachment0 = A0
  642. tr2.Attachment1 = A1
  643. tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  644. tr2.LightEmission = 1
  645. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  646. tr2.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  647. tr2.Lifetime = 0.6
  648.  
  649. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  650. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  651. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  652.  
  653. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  654. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  655. CreateWeld(wed,rwing3,wed,0,0,0.75,math.rad(320),math.rad(90),math.rad(0),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  656. A0 = Instance.new('Attachment',wed)
  657. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  658. CreateMesh(wed,"Wedge",0.5,1.5,1.5)
  659. CreateWeld(wed,rwing3,wed,0,0,0.75,math.rad(40),math.rad(-90),math.rad(0),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  660. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  661. CreateMesh(wed,"Wedge",0.5,1.5,5)
  662. CreateWeld(wed,rwing3,wed,0,-0.75,3.25,math.rad(320),math.rad(90),math.rad(90),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  663. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  664. CreateMesh(wed,"Wedge",0.5,5,1.5)
  665. CreateWeld(wed,rwing3,wed,0,-3.25,0.75,math.rad(50),math.rad(90),math.rad(90),-1.75,-0.5,0,math.rad(0),math.rad(0),math.rad(0))
  666. A1 = Instance.new('Attachment',wed)
  667.  
  668. tr3 = Instance.new('Trail',wed)
  669. tr3.Attachment0 = A0
  670. tr3.Attachment1 = A1
  671. tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  672. tr3.LightEmission = 1
  673. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  674. tr3.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  675. tr3.Lifetime = 0.6
  676.  
  677.  
  678.  
  679. ---- HERES THE RING
  680.  
  681.  
  682. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  683. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  684. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  685. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  686. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  687. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  688. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  689. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  690. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691.  
  692.  
  693. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  694. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  695. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  696.  
  697. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  698. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  699. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  700.  
  701.  
  702.  
  703. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  704. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  705. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  706.  
  707. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  708. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  709. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  710.  
  711. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  712. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  713. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  714.  
  715. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  716. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  717. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  718. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  719. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  720. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  721.  
  722. --- second ring
  723.  
  724. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  725. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  726. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  727. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  728. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  729. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  730. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  731. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  732. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  733.  
  734. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  735. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  736. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  737.  
  738. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  739. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  740. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  741.  
  742.  
  743.  
  744. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  745. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  746. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  747.  
  748. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  749. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  750. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  751.  
  752. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  753. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  754. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  755.  
  756. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  757. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  758. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  759. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  760. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  761. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  762.  
  763. local p = game:GetService("Players").LocalPlayer
  764. local plr = game:GetService("Players").LocalPlayer
  765. local player = game:GetService("Players").LocalPlayer
  766. local char = p.Character
  767. local mouse = p:GetMouse()
  768. local larm = char:WaitForChild("Left Arm")
  769. local rarm = char:WaitForChild("Right Arm")
  770. local lleg = char:WaitForChild("Left Leg")
  771. local rleg = char:WaitForChild("Right Leg")
  772. local hed = char:WaitForChild("Head")
  773. local torso = char:WaitForChild("Torso")
  774. local root = char:WaitForChild("HumanoidRootPart")
  775. local hum = char:FindFirstChildOfClass("Humanoid")
  776. local debris = game:GetService("Debris")
  777. local run = game:GetService("RunService")
  778. local rs = run.RenderStepped
  779. local cam = workspace.CurrentCamera
  780. local movement = 4
  781. local change = 0.4
  782. local DebrisModel = Instance.new("Model",char)
  783. local stealth = false
  784. local debounce = false
  785. hum.MaxHealth = 50000
  786. hum.Health = hum.MaxHealth
  787. themeid = 0
  788. themepitch = 1
  789. main = {r = 0;g = 100;b = 255;v = 1}
  790. if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
  791. if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
  792. if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
  793. if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
  794. if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
  795. if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
  796. pr = p:FindFirstChild("rcolor")
  797. pg = p:FindFirstChild("gcolor")
  798. pb = p:FindFirstChild("bcolor")
  799. pv = p:FindFirstChild("vcolor")
  800. idth = p:FindFirstChild("idtheme")
  801. pith = p:FindFirstChild("pitchtheme")
  802. main_color = Color3.fromRGB(239, 184, 56)
  803. explosionid = {262562442,144699494,539294959,1388740053}
  804. --919941001
  805. Prefix = "/"
  806. p.Chatted:connect(function(msg)
  807.  
  808. if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
  809. local v = tonumber(msg:sub(#Prefix+#'color r '+1))
  810. main.r = v
  811. elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
  812. local v = tonumber(msg:sub(#Prefix+#'color g '+1))
  813. main.g = v
  814. elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
  815. local v = tonumber(msg:sub(#Prefix+#'color b '+1))
  816. main.b = v
  817. elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
  818. local v = tonumber(msg:sub(#Prefix+#'color v '+1))
  819. if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
  820.  
  821. elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
  822. local v = tonumber(msg:sub(#Prefix+#'theme '+1))
  823. themeid = v
  824. music(themeid,themepitch)
  825.  
  826. elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
  827. local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
  828. themepitch = v
  829. music(themeid,themepitch)
  830.  
  831. elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
  832. local v = msg:sub(#Prefix+#'prefix '+1)
  833. Prefix = v
  834.  
  835. elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
  836. main.r = 0
  837. main.g = 100
  838. main.b = 255
  839. main.v = 1
  840. themeid = 556122490
  841. themepitch = 1
  842. music(themeid,themepitch)
  843.  
  844. end
  845.  
  846. end)
  847. ----------------------------------------------------------------------------
  848. no_anim = false
  849. attack = false
  850. attacking = false
  851. canjump = true
  852. aiming_anim = false
  853. animid = math.random(0,1)
  854. timer = 0
  855. bg = Instance.new("BodyGyro",root)
  856. bg.P = 100000
  857. bg.D = 100
  858. ----------------------------------------------------------------------------
  859.  
  860. function rswait(value)
  861. if value ~= nil and value ~= 0 then
  862. for i=1,value do
  863. rs:wait()
  864. end
  865. else
  866. rs:wait()
  867. end
  868. end
  869.  
  870. ----------------------------------------------------------------------------
  871. max = 0
  872. function music(id,pitch)
  873. max = 0
  874. if id == "Stop" then
  875. if not torso:FindFirstChild("MusicRuin") then
  876. soundz = Instance.new("Sound",torso)
  877. end
  878. soundz:Stop()
  879. else
  880. if not torso:FindFirstChild("MusicRuin") then
  881. soundz = Instance.new("Sound",torso)
  882. end
  883. soundz.MaxDistance = 150*5
  884. soundz.EmitterSize = 150/5
  885. soundz.Volume = 10
  886. soundz.Name = "MusicRuin"
  887. soundz.Looped = true
  888. soundz.PlaybackSpeed = pitch
  889. soundz.SoundId = "rbxassetid://"..id
  890. soundz:Stop()
  891. soundz:Play()
  892. end
  893. end
  894.  
  895. ----------------------------------------------------------------------------
  896.  
  897. function lerp(a, b, t)
  898. return a + (b - a)*t
  899. end
  900.  
  901. ----------------------------------------------------------------------------
  902.  
  903. function Lerp(c1,c2,al)
  904. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  905. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  906. for i,v in pairs(com1) do
  907. com1[i] = v+(com2[i]-v)*al
  908. end
  909. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  910. end
  911.  
  912. ----------------------------------------------------------------------------
  913.  
  914. function slerp(a, b, t)
  915. dot = a:Dot(b)
  916. if dot > 0.99999 or dot < -0.99999 then
  917. return t <= 0.5 and a or b
  918. else
  919. r = math.acos(dot)
  920. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  921. end
  922. end
  923.  
  924. ----------------------------------------------------------------------------
  925.  
  926. function clerp(c1,c2,al)
  927.  
  928. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  929.  
  930. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  931.  
  932. for i,v in pairs(com1) do
  933.  
  934. com1[i] = lerp(v,com2[i],al)
  935.  
  936. end
  937.  
  938. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  939.  
  940. end
  941.  
  942. ----------------------------------------------------------------------------
  943.  
  944. function findAllNearestTorso(pos,dist)
  945. local list = game.Workspace:children()
  946. local torso = {}
  947. local temp = nil
  948. local human = nil
  949. local temp2 = nil
  950. for x = 1, #list do
  951. temp2 = list[x]
  952. if (temp2.className == "Model") and (temp2 ~= char) then
  953. local nayem = "Torso"
  954. if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
  955. temp = temp2:findFirstChild(nayem)
  956. human = temp2:findFirstChildOfClass("Humanoid")
  957. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  958. if (temp.Position - pos).magnitude < dist then
  959. table.insert(torso,temp)
  960. dist = (temp.Position - pos).magnitude
  961. end
  962. end
  963. end
  964. end
  965. return torso
  966. end
  967.  
  968. ----------------------------------------------------------------------------
  969.  
  970. local isAPlayer
  971. function checkIfNotPlayer(model)
  972. coroutine.resume(coroutine.create(function()
  973. 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
  974. isAPlayer = true
  975. else
  976. isAPlayer = false
  977. end
  978. end))
  979. return isAPlayer
  980. end
  981.  
  982. ----------------------------------------------------------------------------
  983.  
  984. function computeDirection(vec)
  985. local lenSquared = vec.magnitude * vec.magnitude
  986. local invSqrt = 1 / math.sqrt(lenSquared)
  987. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  988. end
  989.  
  990. ----------------------------------------------------------------------------
  991.  
  992. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  993.  
  994. local wld = Instance.new("Weld", wp1)
  995.  
  996. wld.Part0 = wp0
  997.  
  998. wld.Part1 = wp1
  999.  
  1000. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1001.  
  1002. return wld
  1003.  
  1004. end
  1005.  
  1006. ----------------------------------------------------------------------------
  1007.  
  1008. function weld(model)
  1009. local parts,last = {}
  1010. local function scan(parent)
  1011. for _,v in pairs(parent:GetChildren()) do
  1012. if (v:IsA("BasePart")) then
  1013. if (last) then
  1014. local w = Instance.new("Weld")
  1015. w.Name = ("%s_Weld"):format(v.Name)
  1016. w.Part0,w.Part1 = last,v
  1017. w.C0 = last.CFrame:inverse()
  1018. w.C1 = v.CFrame:inverse()
  1019. w.Parent = last
  1020. end
  1021. last = v
  1022. table.insert(parts,v)
  1023. end
  1024. scan(v)
  1025. end
  1026. end
  1027. scan(model)
  1028. for _,v in pairs(parts) do
  1029. v.Anchored = false
  1030. v.Locked = true
  1031. end
  1032. end
  1033.  
  1034. ----------------------------------------------------------------------------
  1035.  
  1036. function sound(id,position,vol,pitch,dist,start,finish)
  1037. coroutine.resume(coroutine.create(function()
  1038.  
  1039. local part = Instance.new("Part",DebrisModel)
  1040. part.Anchored = true
  1041. part.Position = position
  1042. part.Size = Vector3.new(0,0,0)
  1043. part.CanCollide = false
  1044. part.Transparency = 1
  1045.  
  1046. soundasd = Instance.new("Sound",part)
  1047.  
  1048. soundasd.SoundId = "rbxassetid://"..id
  1049.  
  1050. if vol ~= nil then
  1051. soundasd.Volume = vol
  1052. end
  1053.  
  1054. if pitch ~= nil then
  1055. soundasd.PlaybackSpeed = pitch
  1056. end
  1057.  
  1058. if dist ~= nil then
  1059. soundasd.MaxDistance = dist*5
  1060. soundasd.EmitterSize = dist/5
  1061. end
  1062.  
  1063. delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
  1064.  
  1065. soundasd:Play()
  1066.  
  1067. end))
  1068. return soundasd
  1069. end
  1070.  
  1071. function createsound(id,parent)
  1072.  
  1073. local soundz = Instance.new("Sound",parent)
  1074.  
  1075. soundz.SoundId = "rbxassetid://"..id
  1076.  
  1077. return soundz
  1078.  
  1079. end
  1080.  
  1081. function playsound(sond,vol,pitch,start)
  1082.  
  1083. if vol ~= nil then
  1084. sond.Volume = vol
  1085. end
  1086.  
  1087. if pitch ~= nil then
  1088. sond.PlaybackSpeed = pitch
  1089. end
  1090.  
  1091. if start ~= nil then
  1092. sond.TimePosition = start
  1093. end
  1094.  
  1095. sond:Play()
  1096.  
  1097. end
  1098.  
  1099. ----------------------------------------------------------------------------
  1100. eColors={"Really red","Really black"}
  1101. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  1102. local magz = (Part0 - Part1).magnitude
  1103. local curpos = Part0
  1104. local trz = {-Offset,Offset}
  1105. for i=1,Times do
  1106. local li = Instance.new("Part", DebrisModel)
  1107. li.TopSurface =0
  1108. li.Material = Enum.Material.Neon
  1109. li.BottomSurface = 0
  1110. li.Anchored = true
  1111. li.Locked = true
  1112. li.Transparency = Trans or 0.4
  1113. li.BrickColor = BrickColor.new(Color)
  1114. li.formFactor = "Custom"
  1115. li.CanCollide = false
  1116. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1117. local lim = Instance.new("BlockMesh",li)
  1118. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1119. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1120. if Times == i then
  1121. local magz2 = (curpos - Part1).magnitude
  1122. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1123. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1124. else
  1125. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1126. end
  1127. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1128. li.Name = "LIGHTNING"
  1129. end
  1130. end
  1131.  
  1132. ----------------------------------------------------------------------------
  1133.  
  1134. local HBill = Instance.new("BillboardGui",hed)
  1135. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  1136. local HName = Instance.new("TextLabel")
  1137. HBill.Size = UDim2.new(15,0,2.2,0)
  1138. HBill.StudsOffset = Vector3.new(3.675,1.2,0)
  1139. HBill.AlwaysOnTop = true
  1140. HBill.Enabled = true
  1141. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1142. HMain.BackgroundTransparency = 1
  1143. HMain.Size = UDim2.new(.5,0,.2,0)
  1144. HName.Parent = HMain
  1145. HName.BackgroundTransparency = 1
  1146. HName.BackgroundColor3 = Color3.new(255,255,255)
  1147. HName.BorderColor3 = Color3.new(0,0,0)
  1148. HName.BorderSizePixel = 2
  1149. HName.Size = UDim2.new(1,0,.75,0)
  1150. HName.Font = "Code"
  1151. HName.Text = "The Profane God"
  1152. HName.TextScaled = true
  1153. HName.TextColor3 = Color3.fromRGB(255,176,0)
  1154. HName.TextStrokeColor3 = Color3.new(239/255,184/255,56/255)
  1155. HName.TextStrokeTransparency = 0
  1156. HName.TextYAlignment = "Bottom"
  1157.  
  1158. local HBill = Instance.new("BillboardGui",hed)
  1159. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  1160. local HName = Instance.new("TextLabel")
  1161. HBill.Size = UDim2.new(15,0,2.2,0)
  1162. HBill.StudsOffset = Vector3.new(3.675,2,0)
  1163. HBill.AlwaysOnTop = true
  1164. HBill.Enabled = true
  1165. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1166. HMain.BackgroundTransparency = 1
  1167. HMain.Size = UDim2.new(.5,0,.5,0)
  1168. HName.Parent = HMain
  1169. HName.BackgroundTransparency = 1
  1170. HName.BackgroundColor3 = Color3.new(255,255,255)
  1171. HName.BorderColor3 = Color3.new(0,0,0)
  1172. HName.BorderSizePixel = 2
  1173. HName.Size = UDim2.new(1,0,.75,0)
  1174. HName.Font = "Code"
  1175. HName.Text = "Providence"
  1176. HName.TextScaled = true
  1177. HName.TextColor3 = Color3.new(255/255,176/255,0/255)
  1178. HName.TextStrokeColor3 = Color3.fromRGB(239,184,56)
  1179. HName.TextStrokeTransparency = 0
  1180. HName.TextYAlignment = "Bottom"
  1181.  
  1182. function bigboomrektxd()
  1183. coroutine.resume(coroutine.create(function()
  1184. local magnitude = nil
  1185. local Position = nil
  1186. if animid == 0 then
  1187. Position = larm.Position
  1188. else
  1189. Position = rarm.Position
  1190. end
  1191. --sound(743499393,Position,10,math.random(6,8)/10)
  1192. sound(440145223,Position,10,math.random(10,12)/10,50)
  1193.  
  1194. local Part1 = Instance.new("Part")
  1195. local mesh2 = Instance.new("SpecialMesh",Part1)
  1196. mesh2.MeshId = "rbxassetid://559831844"
  1197. mesh2.Scale = Vector3.new(0,0,0.4)
  1198. Part1.Material = Enum.Material.Neon
  1199. Part1.CanCollide = false
  1200. Part1.Color = Color3.fromRGB(255, 176, 0)
  1201. Part1.Parent = DebrisModel
  1202. Part1.Size = Vector3.new(0,0,0)
  1203. Part1.Anchored = true
  1204. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  1205. Part1.Name = "EXPLOSION2"
  1206.  
  1207. local Part0 = Instance.new("Part",DebrisModel)
  1208. local PointLight2 = Instance.new("PointLight")
  1209. Part0.Name = "Bullet"
  1210. Part0.Material = Enum.Material.Neon
  1211. Part0.Color = Color3.fromRGB(255, 176, 0)
  1212. Part0.Anchored = false
  1213. Part0.Size = Vector3.new(5, 5, 5)
  1214. local mesh = Instance.new("SpecialMesh",Part0)
  1215. mesh.MeshType = Enum.MeshType.Sphere
  1216. local bforce = Instance.new("BodyForce",Part0)
  1217. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  1218. Part0.CanCollide = false
  1219. PointLight2.Parent = Part0
  1220. PointLight2.Color = Part0.Color
  1221. local Target = mouse.Hit.p
  1222. local direction = Target - Position
  1223. local direction = computeDirection(direction)
  1224. local pos = Position + (direction * 2)
  1225. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1226. Part0.Velocity = direction * 60
  1227. local asd = nil
  1228. local loop = nil
  1229. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  1230. loop = rs:connect(function()
  1231. local asdf = math.random(500,1000)/1000
  1232. local Part1 = Instance.new("Part")
  1233. local mesh2 = Instance.new("SpecialMesh",Part1)
  1234. mesh2.MeshType = Enum.MeshType.Sphere
  1235. Part1.Material = Enum.Material.Neon
  1236. Part1.CanCollide = false
  1237. Part1.Color = Color3.fromRGB(255, 176, 0)
  1238. Part1.Parent = DebrisModel
  1239. Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
  1240. Part1.Anchored = true
  1241. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
  1242. Part1.Name = "SMOKE"
  1243. end)
  1244. asd = Part0.Touched:connect(function(ht)
  1245. local hit=ht.Parent
  1246. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  1247. asd:disconnect()
  1248. loop:disconnect()
  1249. Part0:Destroy()
  1250.  
  1251. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
  1252. for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
  1253. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  1254. v:Destroy()
  1255. else
  1256. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
  1257. end
  1258. local Position = Part0.Position
  1259. local Target = v.Position
  1260. local direction = Target - Position
  1261. local direction = computeDirection(direction)
  1262. local bv = Instance.new("BodyVelocity",v)
  1263. bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
  1264. debris:AddItem(bv,1)
  1265. end
  1266. for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
  1267. for z=1,math.random(2,3) do
  1268. local asdf = math.random(-5,5)*10-(i/20)*8
  1269. local Part1 = Instance.new("Part")
  1270. local mesh2 = Instance.new("SpecialMesh",Part1)
  1271. mesh2.MeshType = Enum.MeshType.Sphere
  1272. mesh2.Scale = Vector3.new(0,0,0)
  1273. Part1.Material = Enum.Material.Neon
  1274. Part1.CanCollide = false
  1275. Part1.Color = Color3.fromRGB(255, 176, 0)
  1276. Part1.Parent = DebrisModel
  1277. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1278. Part1.Anchored = true
  1279. local a = i*0.5
  1280. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
  1281. Part1.Name = "EXPLOSION"
  1282. end
  1283. end
  1284.  
  1285. end
  1286. end)
  1287. end))
  1288. end
  1289.  
  1290. holdclick=false
  1291.  
  1292. mouse.Button1Down:connect(function()
  1293. if debounce == false then
  1294. if animid == 0 then
  1295. animid = 1
  1296. else
  1297. animid = 0
  1298. end
  1299. debounce = true
  1300. holdclick = true
  1301. aiming_anim = true
  1302. wait(0.2)
  1303. repeat
  1304. rs:wait()
  1305. timer = 150
  1306. until holdclick == false
  1307. bigboomrektxd()
  1308.  
  1309. local Position = mouse.Hit.p
  1310. local Target = root.Position
  1311. local direction = Target - Position
  1312. local direction = computeDirection(direction)
  1313. root.Velocity = direction * 150
  1314.  
  1315. aiming_anim = false
  1316. delay(0.3,function() debounce = false end)
  1317. end
  1318. end)
  1319.  
  1320. mouse.Button1Up:connect(function()
  1321. holdclick=false
  1322. end)
  1323.  
  1324. function dashasdf()
  1325. debounce = true
  1326.  
  1327. canjump = false
  1328. attack = true
  1329.  
  1330. for i,v in pairs(char:GetChildren()) do
  1331. if v ~= root then
  1332. if v:IsA("Part") then
  1333. v.Transparency = 1
  1334. elseif v:IsA("Accoutrement") then
  1335. v:FindFirstChildOfClass("Part").Transparency = 1
  1336. end
  1337. end
  1338. end
  1339.  
  1340. local tempattachment = Instance.new("Attachment",root)
  1341. tempattachment.Position = Vector3.new(0,0,-4)
  1342.  
  1343. for i=1,20 do rs:wait()
  1344. root.Velocity = Vector3.new(0,0,0)
  1345. root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
  1346. local asdf = math.random(500,1000)/100
  1347. local Part1 = Instance.new("Part")
  1348. local mesh2 = Instance.new("SpecialMesh",Part1)
  1349. mesh2.MeshType = Enum.MeshType.Sphere
  1350. Part1.Material = Enum.Material.Neon
  1351. Part1.CanCollide = false
  1352. Part1.Color = Color3.fromRGB(255, 176, 0)
  1353. Part1.Parent = DebrisModel
  1354. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1355. Part1.Anchored = true
  1356. Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
  1357. Part1.Name = "SMOKE"
  1358. end
  1359.  
  1360. tempattachment:Destroy()
  1361.  
  1362. for i,v in pairs(char:GetChildren()) do
  1363. if v ~= root then
  1364. if v:IsA("Part") then
  1365. v.Transparency = 0
  1366. elseif v:IsA("Accoutrement") then
  1367. v:FindFirstChildOfClass("Part").Transparency = 0
  1368. end
  1369. end
  1370. end
  1371.  
  1372. canjump = true
  1373. attack = false
  1374.  
  1375. delay(0.1,function() debounce = false end)
  1376. end
  1377.  
  1378. function laz0r()
  1379.  
  1380. local Position = nil
  1381. if animid == 0 then
  1382. Position = larm.Position
  1383. else
  1384. Position = rarm.Position
  1385. end
  1386.  
  1387. local Part1 = Instance.new("Part")
  1388. local mesh2 = Instance.new("SpecialMesh",Part1)
  1389. mesh2.MeshId = "rbxassetid://559831844"
  1390. mesh2.Scale = Vector3.new(0,0,0.4)
  1391. Part1.Material = Enum.Material.Neon
  1392. Part1.CanCollide = false
  1393. Part1.Color = Color3.fromRGB(255, 176, 0)
  1394. Part1.Parent = DebrisModel
  1395. Part1.Size = Vector3.new(0,0,0)
  1396. Part1.Anchored = true
  1397. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  1398. Part1.Name = "EXPLOSION3"
  1399.  
  1400. local Part0 = Instance.new("Part",DebrisModel)
  1401. Part0.Name = "Bullet"
  1402. Part0.Material = Enum.Material.Neon
  1403. Part0.Color = Color3.fromRGB(255, 176, 0)
  1404. Part0.Anchored = true
  1405. local mesh = Instance.new("SpecialMesh",Part0)
  1406. mesh.MeshType = Enum.MeshType.Sphere
  1407. Part0.CanCollide = false
  1408. local Target = mouse.Hit.p
  1409. local direction = Target - Position
  1410. local direction = computeDirection(direction)
  1411. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1412. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1413. Part0.Size = Vector3.new(5,1,5)
  1414. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  1415. local pos = Position + (direction * (mesh.Scale.Y/2))
  1416. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1417.  
  1418. clashpart = Instance.new("Part",DebrisModel)
  1419. clashpart.Size = Vector3.new(50,50,50)
  1420. clashpart.CanCollide = false
  1421. clashpart.Anchored = true
  1422. clashpart.Transparency = 1
  1423. clashpart.Color = main_color
  1424. clashpart.Name = "StarLightClash"
  1425. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  1426.  
  1427. sound(1177475476,Position,10,math.random(5,6)/10,300)
  1428.  
  1429. local z = 10
  1430. for i = 1,100 do rs:wait()
  1431. if animid == 0 then
  1432. Position = larm.Position
  1433. else
  1434. Position = rarm.Position
  1435. end
  1436. local Target = mouse.Hit.p
  1437. local direction = Target - Position
  1438. local direction = computeDirection(direction)
  1439. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1440. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1441. Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
  1442. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
  1443. mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
  1444. local pos = Position + (direction * (mesh.Scale.Y/2))
  1445. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1446. clashpart.CFrame = CFrame.new(endPoint, root.Position)
  1447.  
  1448. local Position = mouse.Hit.p
  1449. local Target = root.Position
  1450. local direction = Target - Position
  1451. local direction = computeDirection(direction)
  1452. root.Velocity = direction * 5
  1453.  
  1454. if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
  1455.  
  1456. Part1 = Part0:Clone()
  1457. Part1.Parent = DebrisModel
  1458. Part1.Color = Color3.fromRGB(255, 176, 0)
  1459. Part1.Name = "SMOKE2"
  1460.  
  1461. if part ~= nil then
  1462. if part.Name == "StarLightClash" then
  1463. local asdf = math.random(0,5)*20
  1464. local Part1 = Instance.new("Part")
  1465. local mesh2 = Instance.new("SpecialMesh",Part1)
  1466. mesh2.MeshType = Enum.MeshType.Sphere
  1467. mesh2.Scale = Vector3.new(0,0,0)
  1468. Part1.Material = Enum.Material.Neon
  1469. Part1.CanCollide = false
  1470. Part1.Color = Color3.fromRGB(255, 176, 0)
  1471. Part1.Parent = DebrisModel
  1472. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1473. Part1.Anchored = true
  1474. local a = 1.5
  1475. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  1476. Part1.Name = "EXPLOSION"
  1477. else
  1478. local asdf = math.random(0,5)*10
  1479. local Part1 = Instance.new("Part")
  1480. local mesh2 = Instance.new("SpecialMesh",Part1)
  1481. mesh2.MeshType = Enum.MeshType.Sphere
  1482. mesh2.Scale = Vector3.new(0,0,0)
  1483. Part1.Material = Enum.Material.Neon
  1484. Part1.CanCollide = false
  1485. Part1.Color = Color3.fromRGB(255, 176, 0)
  1486. Part1.Parent = DebrisModel
  1487. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1488. Part1.Anchored = true
  1489. local a = 1.5
  1490. Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
  1491. Part1.Name = "EXPLOSION"
  1492. end
  1493. end
  1494.  
  1495. for i,v in pairs(findAllNearestTorso(endPoint,50)) do
  1496. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  1497. v:Destroy()
  1498. else
  1499. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
  1500. end
  1501. local Position = mouse.Hit.p
  1502. local Target = v.Position
  1503. local direction = Target - Position
  1504. local direction = computeDirection(direction)
  1505. local bv = Instance.new("BodyVelocity",v)
  1506. bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
  1507. debris:AddItem(bv,1)
  1508. end
  1509.  
  1510. end
  1511. clashpart:Destroy()
  1512. Part0:Destroy()
  1513. wait(0.3)
  1514. aiming_anim = false
  1515. delay(0.3,function() debounce = false end)
  1516. end
  1517.  
  1518. function nukewelpo()
  1519. coroutine.resume(coroutine.create(function()
  1520. local magnitude = nil
  1521. local Position = nil
  1522. if animid == 0 then
  1523. Position = larm.Position
  1524. else
  1525. Position = rarm.Position
  1526. end
  1527. --sound(743499393,Position,10,math.random(6,8)/10)
  1528. sound(440145223,Position,10,math.random(4,5)/10,100)
  1529.  
  1530. local Part1 = Instance.new("Part")
  1531. local mesh2 = Instance.new("SpecialMesh",Part1)
  1532. mesh2.MeshId = "rbxassetid://559831844"
  1533. mesh2.Scale = Vector3.new(0,0,0.4)
  1534. Part1.Material = Enum.Material.Neon
  1535. Part1.CanCollide = false
  1536. Part1.Color = Color3.fromRGB(255, 176, 0)
  1537. Part1.Parent = DebrisModel
  1538. Part1.Size = Vector3.new(0,0,0)
  1539. Part1.Anchored = true
  1540. Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
  1541. Part1.Name = "EXPLOSION3"
  1542.  
  1543. local Part0 = Instance.new("Part",DebrisModel)
  1544. local PointLight2 = Instance.new("PointLight")
  1545. Part0.Name = "Bullet"
  1546. Part0.Material = Enum.Material.Neon
  1547. Part0.Color = Color3.fromRGB(255, 176, 0)
  1548. Part0.Anchored = false
  1549. Part0.Size = Vector3.new(5, 5, 5)
  1550. local mesh = Instance.new("SpecialMesh",Part0)
  1551. mesh.MeshType = Enum.MeshType.Sphere
  1552. mesh.Scale = Vector3.new(3,3,3)
  1553. local bforce = Instance.new("BodyForce",Part0)
  1554. bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
  1555. Part0.CanCollide = false
  1556. PointLight2.Parent = Part0
  1557. PointLight2.Color = Part0.Color
  1558. local Target = mouse.Hit.p
  1559. local direction = Target - Position
  1560. local direction = computeDirection(direction)
  1561. local pos = Position + (direction * 2)
  1562. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1563. Part0.Velocity = direction * 150
  1564. local asd = nil
  1565. local loop = nil
  1566. delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
  1567. loop = rs:connect(function()
  1568. local asdf = math.random(500,1000)/1000
  1569. local Part1 = Instance.new("Part")
  1570. local mesh2 = Instance.new("SpecialMesh",Part1)
  1571. mesh2.MeshType = Enum.MeshType.Sphere
  1572. Part1.Material = Enum.Material.Neon
  1573. Part1.CanCollide = false
  1574. Part1.Color = Color3.fromRGB(255, 176, 0)
  1575. Part1.Parent = DebrisModel
  1576. Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
  1577. Part1.Anchored = true
  1578. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
  1579. Part1.Name = "SMOKE"
  1580. end)
  1581. asd = Part0.Touched:connect(function(ht)
  1582. local hit=ht.Parent
  1583. if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
  1584. asd:disconnect()
  1585. loop:disconnect()
  1586. Part0:Destroy()
  1587.  
  1588. sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
  1589. for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
  1590. if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
  1591. v:Destroy()
  1592. else
  1593. v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
  1594. end
  1595. local Position = Part0.Position
  1596. local Target = v.Position
  1597. local direction = Target - Position
  1598. local direction = computeDirection(direction)
  1599. local bv = Instance.new("BodyVelocity",v)
  1600. bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
  1601. debris:AddItem(bv,1)
  1602. end
  1603. for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
  1604. for z=1,math.random(2,3) do
  1605. local asdf = math.random(-5,5)*10-(i/20)*12
  1606. local Part1 = Instance.new("Part")
  1607. local mesh2 = Instance.new("SpecialMesh",Part1)
  1608. mesh2.MeshType = Enum.MeshType.Sphere
  1609. mesh2.Scale = Vector3.new(0,0,0)
  1610. Part1.Material = Enum.Material.Neon
  1611. Part1.CanCollide = false
  1612. Part1.Color = Color3.fromRGB(255, 176, 0)
  1613. Part1.Parent = DebrisModel
  1614. Part1.Size = Vector3.new(asdf,asdf,asdf)
  1615. Part1.Anchored = true
  1616. local a = i*5
  1617. Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
  1618. Part1.Name = "EXPLOSION4"
  1619. end
  1620. end
  1621.  
  1622. end
  1623. end)
  1624. end))
  1625. end
  1626.  
  1627. holdq = false
  1628. holdr = false
  1629. cooldownult = false
  1630.  
  1631. mouse.KeyDown:connect(function(key)
  1632. if debounce == false then
  1633. if key == "e" then
  1634. dashasdf()
  1635. elseif key == "r" and cooldownult == false then
  1636. cooldownult = true
  1637. if animid == 0 then
  1638. animid = 1
  1639. else
  1640. animid = 0
  1641. end
  1642. debounce = true
  1643. holdr = true
  1644. aiming_anim = true
  1645. wait(0.2)
  1646. repeat
  1647. rs:wait()
  1648. timer = 150
  1649. until holdr == false
  1650. nukewelpo()
  1651.  
  1652. local Position = mouse.Hit.p
  1653. local Target = root.Position
  1654. local direction = Target - Position
  1655. local direction = computeDirection(direction)
  1656. root.Velocity = direction * 300
  1657.  
  1658. aiming_anim = false
  1659. delay(5,function() cooldownult = false end)
  1660. delay(1,function() debounce = false end)
  1661.  
  1662. elseif key == "q" then
  1663. debounce = true
  1664. if animid == 0 then
  1665. animid = 1
  1666. else
  1667. animid = 0
  1668. end
  1669. holdq = true
  1670. attack = true
  1671. aiming_anim = true
  1672. repeat rs:wait() timer = 150 until holdq == false
  1673. laz0r()
  1674. attack = false
  1675. end
  1676. end
  1677. end)
  1678.  
  1679. mouse.KeyUp:connect(function(key)
  1680. if key == "q" then
  1681. holdq = false
  1682. elseif key == "r" then
  1683. holdr = false
  1684. end
  1685. end)
  1686.  
  1687. ----------------------------------------------------------------------------
  1688. music(themeid,themepitch)
  1689. velocityYFall=0
  1690. velocityYFall2=0
  1691. velocityYFall3=0
  1692. velocityYFall4=0
  1693. neckrotY=0
  1694. neckrotY2=0
  1695. torsorotY=0
  1696. torsorotY2=0
  1697. torsoY=0
  1698. torsoY2=0
  1699. sine = 0
  1700. newWeld(torso, larm, -1.5, 0.5, 0)
  1701. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1702. newWeld(torso, rarm, 1.5, 0.5, 0)
  1703. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1704. newWeld(torso, hed, 0, 1.5, 0)
  1705. newWeld(torso, lleg, -0.5, -1, 0)
  1706. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1707. newWeld(torso, rleg, 0.5, -1, 0)
  1708. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1709. newWeld(root, torso, 0, -1, 0)
  1710. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1711.  
  1712. rs:connect(function()
  1713.  
  1714. bg.MaxTorque = Vector3.new(0,0,0)
  1715.  
  1716. for i,v in pairs(DebrisModel:GetChildren()) do
  1717.  
  1718.  
  1719. if v.Name == "EXPLOSION" then
  1720. local change = 0.04-(v.Transparency*0.02)
  1721. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1722. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1723. v.Transparency = v.Transparency + 0.02
  1724. if v.Transparency >= 1 then
  1725. v:Destroy()
  1726. end
  1727.  
  1728. elseif v.Name == "EXPLOSION2" then
  1729. local change = 0.04-(v.Transparency*0.04)
  1730. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1731. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1732. v.Transparency = v.Transparency + 0.025
  1733. if v.Transparency >= 1 then
  1734. v:Destroy()
  1735. end
  1736.  
  1737. elseif v.Name == "EXPLOSION3" then
  1738. local change = 0.5-(v.Transparency*0.5)
  1739. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1740. vm.Scale = vm.Scale + Vector3.new(change,change,0)
  1741. v.Transparency = v.Transparency + 0.1
  1742. if v.Transparency >= 1 then
  1743. v:Destroy()
  1744. end
  1745.  
  1746. elseif v.Name == "EXPLOSION4" then
  1747. local change = 0.15-(v.Transparency*0.125)
  1748. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1749. vm.Scale = vm.Scale + Vector3.new(change,change,change)
  1750. v.Transparency = v.Transparency + 0.01
  1751. if v.Transparency >= 1 then
  1752. v:Destroy()
  1753. end
  1754.  
  1755. elseif v.Name == "SMOKE" then
  1756. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1757. vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
  1758. if vm.Scale.X <= 0 then
  1759. v:Destroy()
  1760. end
  1761.  
  1762. elseif v.Name == "SMOKE2" then
  1763. local change = 2-(v.Transparency*2)
  1764. local vm = v:FindFirstChildOfClass("SpecialMesh")
  1765. local Position = nil
  1766. if animid == 0 then
  1767. Position = larm.Position
  1768. else
  1769. Position = rarm.Position
  1770. end
  1771. local Target = mouse.Hit.p
  1772. local direction = Target - Position
  1773. local direction = computeDirection(direction)
  1774. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1775. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1776. vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
  1777. local pos = Position + (direction * (vm.Scale.Y/2))
  1778. v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1779. vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
  1780. v.Transparency = v.Transparency + 0.1
  1781. if v.Transparency >= 1 then
  1782. v:Destroy()
  1783. end
  1784.  
  1785.  
  1786. elseif v.Name == "LIGHTNING" then
  1787. local vm = v:FindFirstChildOfClass("BlockMesh")
  1788. vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
  1789. if vm.Scale.X <= 0 then
  1790. v:Destroy()
  1791. end
  1792.  
  1793. end
  1794. end
  1795.  
  1796. if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
  1797. velocityYFall = root.Velocity.Y/1.5
  1798. end
  1799. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1800. velocityYFall2 = root.Velocity.Y/180
  1801. end
  1802. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1803. velocityYFall3 = root.Velocity.Y/1.5
  1804. end
  1805. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1806. velocityYFall4 = root.Velocity.Y/1.5
  1807. end
  1808. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1809. neckrotY = root.RotVelocity.Y/6
  1810. end
  1811. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1812. neckrotY2 = root.RotVelocity.Y/8
  1813. end
  1814.  
  1815. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1816. torsorotY = root.RotVelocity.Y/6
  1817. end
  1818. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1819. torsorotY2 = root.RotVelocity.Y/8
  1820. end
  1821.  
  1822.  
  1823. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1824. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1825.  
  1826. if attack == true then
  1827. hum.WalkSpeed = 1
  1828. else
  1829. hum.WalkSpeed = 8
  1830. end
  1831.  
  1832. if canjump == true then
  1833. hum.JumpPower = 50
  1834. else
  1835. hum.JumpPower = 0
  1836. end
  1837.  
  1838. local jumped = false
  1839. local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1840. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1841. local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
  1842. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1843. local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1844. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1845. local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
  1846. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1847.  
  1848. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1849.  
  1850. local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1851. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1852.  
  1853. local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
  1854. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1855.  
  1856. if no_anim == false then
  1857. if hum.Health > 0 then
  1858. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1859. 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)
  1860. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
  1861. 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)
  1862. 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)
  1863. 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)
  1864. 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)
  1865. 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)
  1866. elseif jumped == true then
  1867. 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)
  1868. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
  1869. 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)
  1870. 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)
  1871. 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)
  1872. 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)
  1873. 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)
  1874. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
  1875. 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)
  1876. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
  1877. 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)
  1878. 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)
  1879. 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)
  1880. 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)
  1881. 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)
  1882. end
  1883. for i=1,5 do
  1884. if aiming_anim == true then
  1885. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1886. if jumped == false then
  1887. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1888. else
  1889. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1890. end
  1891. if animid == 0 then
  1892. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
  1893. 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)
  1894. 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)
  1895. else
  1896. hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
  1897. 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)
  1898. 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)
  1899. end
  1900. else
  1901. if timer <= 0 then
  1902. animid = math.random(0,1)
  1903. else
  1904. timer = timer - 1
  1905. end
  1906. end
  1907. end
  1908. end
  1909. end
  1910. main_color = Color3.fromRGB(255, 176, 0)
  1911. pr.Value = main.r
  1912. pg.Value = main.g
  1913. pb.Value = main.b
  1914. pv.Value = main.v
  1915. idth.Value = themeid
  1916. pith.Value = themepitch
  1917. HName.TextStrokeColor3 = Color3.fromRGB(239, 184, 56)
  1918. HName.TextColor3 = Color3.fromRGB(255, 176, 0)
  1919. sine = sine + change
  1920. if hum.Health <= 0 then
  1921. debounce = true
  1922. end
  1923. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement