Advertisement
Christoffer07700Extr

Killer Queen

Jan 8th, 2020
1,463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.62 KB | None | 0 0
  1. print('Killer Queen by slenercat5.')
  2. print('Its e')
  3. plr = game.Players.LocalPlayer
  4. mse = plr:GetMouse()
  5. sound = Instance.new("Sound", game.Workspace)
  6. sound.SoundId = "https://www.roblox.com/asset/?id=274698941"
  7. sound.Volume = 10
  8. canworld = true
  9. BeeSpeed = 50
  10.  
  11. chr=plr.Character
  12. Torso=Torso
  13.  
  14. for _,v in pairs(plr.Character:GetChildren())do
  15. if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Accessory') then
  16. v:remove()
  17. end
  18. end
  19. local sh = Instance.new("Shirt",chr)
  20. sh.ShirtTemplate = "http://www.roblox.com/asset/?id=394790364"
  21. p=Instance.new('Pants',chr)
  22. p.PantsTemplate='http://www.roblox.com/asset/?id=394795102'
  23.  
  24. chr['Left Arm'].BrickColor=BrickColor.new('Pastel brown')
  25. chr['Right Arm'].BrickColor=BrickColor.new('Pastel brown')
  26. chr['Torso'].BrickColor=BrickColor.new('Pastel brown')
  27. chr.Head.BrickColor=BrickColor.new('Pastel brown')
  28.  
  29.  
  30.  
  31.  
  32. local Players=game:service'Players'
  33. local Player=Players.LocalPlayer
  34. local Mouse=Player:GetMouse''
  35. local RenderStepped=game:service'RunService'.RenderStepped
  36.  
  37. local MeshId='http://www.roblox.com/asset?id=779592805'
  38. local TextureId='http://www.roblox.com/asset/?id=775493027'
  39.  
  40.  
  41. local QHold=false
  42. local EHold=false
  43.  
  44. cut = Instance.new("Sound", chr)
  45. cut.SoundId = "https://www.roblox.com/asset/?id=0"
  46. cut.Volume = 1.5
  47. thri = Instance.new("Sound", chr)
  48. thri.SoundId = "https://www.roblox.com/asset/?id=186311262"
  49. thri.Volume = 2.5
  50.  
  51.  
  52. Mouse.Button1Down:connect(function()
  53.  
  54. cut:Play()
  55. if Mouse.Target then
  56. if canworld==false or lknives== true then
  57. if SHRA==false then
  58. SHRA=true
  59. local Bee=Instance.new('Part',Player.Character)
  60. Bee.CanCollide=true
  61. Bee.Name='Sheer Heart Attack'
  62. Bee.Size=Vector3.new(3,3,3)
  63. Bee.CFrame=Player.Character.Torso.CFrame
  64. CFuncs.Sound.Create(610470183,Bee,3,1)
  65. g=CFuncs.Sound.Create(155279006,Bee,1,1)
  66. g.Looped=true
  67. local BeeMesh=Instance.new('SpecialMesh',Bee)
  68. BeeMesh.MeshType='FileMesh'
  69. BeeMesh.MeshId=MeshId
  70. BeeMesh.TextureId=TextureId
  71. BeeMesh.Scale=Vector3.new(.1,.1,.1)
  72. local BodyVel=Instance.new('BodyVelocity',Bee)
  73. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  74. local BodyGyro=Instance.new('BodyGyro',Bee)
  75. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  76. BodyGyro.P=2e4
  77. coroutine.wrap(function()
  78. RenderStepped:connect(function()
  79. BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p)
  80. BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
  81. end)
  82. end)()
  83. Bee.Touched:connect(function(p)
  84. if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then
  85. p.Parent:BreakJoints()
  86. h=Instance.new('Explosion',p.Parent)
  87. h.Position=p.Position
  88. h.BlastPressure=0
  89.  
  90. thri:Play()
  91. end
  92. end)
  93. end
  94. end
  95. end
  96. end)
  97.  
  98.  
  99. chr.Head.face:remove()
  100. Sound2=Instance.new('Sound')
  101. Sound2.SoundId='rbxassetid://616594063'
  102. Sound2.Parent=Player.Character.Head
  103.  
  104.  
  105. Effects = {}
  106. local Player = owner
  107. local Character = Player.Character
  108. Character.Archivable = true
  109. AdvancingFortress = Character:Clone()
  110. Hair=Instance.new('Part',Character)
  111. Hair.Size=Vector3.new(1,1,1)
  112. M=Instance.new('FileMesh',Hair)
  113. M.VertexColor=Vector3.new(1,1,.4)
  114. M.Scale=Vector3.new(.028,.028,.028)
  115. M.MeshId='rbxassetid://1450916371'
  116. M.TextureId='rbxassetid://1450916523'
  117. WARF=Instance.new('Weld',Hair)
  118. WARF.Part0=Hair
  119. WARF.Part1=Character.Head
  120. WARF.C0=CFrame.new(0,-.2,0)
  121.  
  122. AdvancingFortress.Parent = Character
  123. torso = AdvancingFortress.Torso
  124. hum = AdvancingFortress.Humanoid
  125. AdvancingFortress.Name = "Advancing Fortress"
  126. pl = AdvancingFortress
  127. for i, v in pairs(AdvancingFortress:GetChildren()) do
  128. if v:IsA("BasePart") then
  129. v.Transparency = 1
  130. end
  131. end
  132. local Humanoid = AdvancingFortress.Humanoid
  133.  
  134. local LeftArm = Character["Left Arm"]
  135. local RightArm = Character["Right Arm"]
  136. local LeftLeg = Character["Left Leg"]
  137. local RightLeg = Character["Right Leg"]
  138. local Head = Character.Head
  139. local Torso = Character.Torso
  140. local Camera = game.Workspace.CurrentCamera
  141. local RootPart = Character.HumanoidRootPart
  142. local RootJoint = RootPart.RootJoint
  143. local attack = false
  144. local Anim = "Idle"
  145. local attacktype = 1
  146. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  147. local velocity = RootPart.Velocity.y
  148. local sine = 0
  149. local change = 1
  150. local Create = LoadLibrary("RbxUtility").Create
  151. local TimeStop = false
  152. local m = Create("Model")({
  153. Parent = AdvancingFortress,
  154. Name = "WeaponModel"
  155. })
  156. --for _,v in pairs(KQ) do
  157. --v.Transparency=1
  158. --end
  159. KQ={
  160.  
  161. }
  162.  
  163. Bitten=nil
  164.  
  165. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  166. MASK.BrickColor=BrickColor.new('Pastel brown')
  167. MASK.CanCollide=false
  168. MASK.CFrame=AdvancingFortress.Head.CFrame
  169. MASK.Transparency=1
  170. Welg=Instance.new('Weld',AdvancingFortress.Head)
  171. Welg.Parent=MASK
  172. Welg.Part0=MASK
  173. Welg.Part1=AdvancingFortress.Head
  174. Welg.C0=CFrame.new(0,-0,-.3)*CFrame.Angles(1.5,0,0)
  175. MH=Instance.new('FileMesh',MASK)
  176. MH.MeshId='rbxassetid://1447967352'
  177. MH.Scale=Vector3.new(.03,.03,.03)
  178. table.insert(KQ,MASK)
  179.  
  180. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  181. MASK.CanCollide=false
  182. MASK.BrickColor=BrickColor.new('Really black')
  183. MASK.CFrame=AdvancingFortress['Left Arm'].CFrame
  184. MASK.Transparency=1
  185. Welg=Instance.new('Weld',AdvancingFortress['Left Arm'])
  186. Welg.Parent=MASK
  187. Welg.Part0=MASK
  188. Welg.Part1=AdvancingFortress['Left Arm']
  189. Welg.C0=CFrame.new(0,-0,.55)*CFrame.Angles(1.5,-0.05,0)
  190. MH=Instance.new('FileMesh',MASK)
  191. MH.MeshId='rbxassetid://1447968546'
  192. MH.Scale=Vector3.new(.011,.011,.011)
  193. table.insert(KQ,MASK)
  194.  
  195.  
  196. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  197. MASK.CanCollide=false
  198. MASK.BrickColor=BrickColor.new('Lily white')
  199. MASK.CFrame=AdvancingFortress['Left Arm'].CFrame
  200. MASK.Transparency=1
  201. Welg=Instance.new('Weld',AdvancingFortress['Left Arm'])
  202. Welg.Parent=MASK
  203. Welg.Part0=MASK
  204. Welg.Part1=AdvancingFortress['Left Arm']
  205. Welg.C0=CFrame.new(0.1, 0,.55)*CFrame.Angles(1.5,-0.05,0)
  206. MH=Instance.new('FileMesh',MASK)
  207. MH.MeshId='rbxassetid://1447969522'
  208. MH.Scale=Vector3.new(.011,.011,.011)
  209. table.insert(KQ,MASK)
  210.  
  211.  
  212. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  213. MASK.CanCollide=false
  214. MASK.BrickColor=BrickColor.new('Lily white')
  215. MASK.CFrame=AdvancingFortress['Right Arm'].CFrame
  216. MASK.Transparency=1
  217. Welg=Instance.new('Weld',AdvancingFortress['Right Arm'])
  218. Welg.Parent=MASK
  219. Welg.Part0=MASK
  220. Welg.Part1=AdvancingFortress['Right Arm']
  221. Welg.C0=CFrame.new(-0.1, 0,.55)*CFrame.Angles(1.55,-0.05,0)
  222. MH=Instance.new('FileMesh',MASK)
  223. MH.MeshId='rbxassetid://1447972041'
  224. MH.Scale=Vector3.new(.011,.011,.011)
  225. table.insert(KQ,MASK)
  226.  
  227.  
  228.  
  229. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  230. MASK.CanCollide=false
  231. MASK.BrickColor=BrickColor.new('Really black')
  232. MASK.CFrame=AdvancingFortress['Right Arm'].CFrame
  233. MASK.Transparency=1
  234. Welg=Instance.new('Weld',AdvancingFortress['Right Arm'])
  235. Welg.Parent=MASK
  236. Welg.Part0=MASK
  237. Welg.Part1=AdvancingFortress['Right Arm']
  238. Welg.C0=CFrame.new(-0.01, 0.02,.55)*CFrame.Angles(1.55,0.05,0)
  239. MH=Instance.new('FileMesh',MASK)
  240. MH.MeshId='rbxassetid://1447971167'
  241. MH.Scale=Vector3.new(.021,.021,.021)
  242. table.insert(KQ,MASK)
  243.  
  244.  
  245. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  246. MASK.CanCollide=false
  247. MASK.BrickColor=BrickColor.new('Really black')
  248. MASK.CFrame=AdvancingFortress['Right Leg'].CFrame
  249. MASK.Transparency=1
  250. Welg=Instance.new('Weld',AdvancingFortress['Right Leg'])
  251. Welg.Parent=MASK
  252. Welg.Part0=MASK
  253. Welg.Part1=AdvancingFortress['Right Leg']
  254. Welg.C0=CFrame.new(-0.01, 0.02,0)*CFrame.Angles(1.55,0.05,0)
  255. MH=Instance.new('FileMesh',MASK)
  256. MH.MeshId='rbxassetid://1447986233'
  257. MH.Scale=Vector3.new(.011,.011,.011)
  258. table.insert(KQ,MASK)
  259.  
  260. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  261. MASK.CanCollide=false
  262. MASK.BrickColor=BrickColor.new('Lily white')
  263. MASK.CFrame=AdvancingFortress['Right Leg'].CFrame
  264. MASK.Transparency=1
  265. Welg=Instance.new('Weld',AdvancingFortress['Right Leg'])
  266. Welg.Parent=MASK
  267. Welg.Part0=MASK
  268. Welg.Part1=AdvancingFortress['Right Leg']
  269. Welg.C0=CFrame.new(-0.01, 0.02,-.7)*CFrame.Angles(1.55,0.05,0)
  270. MH=Instance.new('FileMesh',MASK)
  271. MH.MeshId='rbxassetid://1447987555'
  272. MH.Scale=Vector3.new(.012,.012,.012)
  273. table.insert(KQ,MASK)
  274.  
  275. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  276. MASK.CanCollide=false
  277. MASK.BrickColor=BrickColor.new('Really black')
  278. MASK.CFrame=AdvancingFortress['Left Leg'].CFrame
  279. MASK.Transparency=1
  280. Welg=Instance.new('Weld',AdvancingFortress['Left Leg'])
  281. Welg.Parent=MASK
  282. Welg.Part0=MASK
  283. Welg.Part1=AdvancingFortress['Left Leg']
  284. Welg.C0=CFrame.new(-0.01, 0.02,0)*CFrame.Angles(1.6,-0.05,0)
  285. MH=Instance.new('FileMesh',MASK)
  286. MH.MeshId='rbxassetid://1447977647'
  287. MH.Scale=Vector3.new(.011,.011,.011)
  288. table.insert(KQ,MASK)
  289.  
  290. MASK=Instance.new('Part',AdvancingFortress.WeaponModel)
  291. MASK.CanCollide=false
  292. MASK.BrickColor=BrickColor.new('Lily white')
  293. MASK.CFrame=AdvancingFortress['Left Leg'].CFrame
  294. MASK.Transparency=1
  295. Welg=Instance.new('Weld',AdvancingFortress['Left Leg'])
  296. Welg.Parent=MASK
  297. Welg.Part0=MASK
  298. Welg.Part1=AdvancingFortress['Left Leg']
  299. Welg.C0=CFrame.new(-0.01, 0.02,-.7)*CFrame.Angles(1.56,-0.05,0)
  300. MH=Instance.new('FileMesh',MASK)
  301. MH.MeshId='rbxassetid://1447983183'
  302. MH.Scale=Vector3.new(.012,.012,.012)
  303. table.insert(KQ,MASK)
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310. AdvancingFortress.Head.Name = "FHead"
  311. AdvancingFortress.Torso.Name = "FTorso"
  312. Torso.BrickColor=BrickColor.new('Pastel brown')
  313.  
  314. AdvancingFortress.HumanoidRootPart.Name = "FHumanoidRootPart"
  315. Humanoid.Animator.Parent = nil
  316.  
  317. base = Instance.new("ScreenGui",plr.PlayerGui)
  318. bbg = Instance.new("BillboardGui",plr.Character.Head)
  319. bbg.Size = UDim2.new(0,200,0,50)
  320. bbg.StudsOffset = Vector3.new(0,3,0)
  321.  
  322. bbgTl = Instance.new("TextLabel",bbg)
  323. bbgTl.BackgroundTransparency = 1
  324. bbgTl.Size = UDim2.new(10,0,1,0)
  325. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  326. bbgTl.Font = "Code"
  327. bbgTl.Text = " "
  328. bbgTl.TextSize = 25
  329. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  330. bbgTl.TextColor3 = Color3.new(0,0,0)
  331. bbgTl.TextStrokeTransparency = 0
  332. bbgTl.TextWrapped = true
  333.  
  334. function Chat(msg)
  335. if msg=='NANI' then
  336. CFuncs.Sound.Create(948494432, Torso, 1, 1)
  337. end
  338. ff=game.Chat:FilterStringAsync(msg,Player,Player)
  339. bbgTl.Text = ff
  340. wait(1)
  341. if bbgTl.Text == ff then
  342. bbgTl.Text = " "
  343. end
  344. end
  345. lknives=false
  346.  
  347.  
  348. -- Fired when client sends a request to write on the sign
  349. -- Called when button is clicked
  350.  
  351.  
  352. plr.Chatted:connect(function(msg)-- local messageObject = getTextObject(msg, Player.UserId)
  353. Chat(msg)
  354. end)
  355.  
  356.  
  357. local function newMotor(part0, part1, c0, c1)
  358. local w = Create("Weld")({
  359. Parent = part0,
  360. Part0 = part0,
  361. Part1 = part1,
  362. C0 = c0,
  363. C1 = c1
  364. })
  365. return w
  366. end
  367. function clerp(a, b, t)
  368. return a:lerp(b, t)
  369. end
  370. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  371. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  372. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  373. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  374. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  375. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  376. RootJoint.C1 = CFrame.new(0, 0, 0)
  377. RootJoint.C0 = CFrame.new(0, 0, 0)
  378. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  379. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  380. local rarmc1 = RW.C1
  381. local larmc1 = LW.C1
  382. local rlegc1 = RH.C1
  383. local llegc1 = LH.C1
  384. local resetc1 = false
  385. function PlayAnimationFromTable(table, speed, bool)
  386. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  387. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  388. RW.C0 = clerp(RW.C0, table[3], speed)
  389. LW.C0 = clerp(LW.C0, table[4], speed)
  390. RH.C0 = clerp(RH.C0, table[5], speed)
  391. LH.C0 = clerp(LH.C0, table[6], speed)
  392. if bool == true and resetc1 == false then
  393. resetc1 = true
  394. RootJoint.C1 = RootJoint.C1
  395. Torso.Neck.C1 = Torso.Neck.C1
  396. RW.C1 = rarmc1
  397. LW.C1 = larmc1
  398. RH.C1 = rlegc1
  399. LH.C1 = llegc1
  400. end
  401. end
  402. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  403. script:WaitForChild("Heartbeat")
  404. frame = 0.03333333333333333
  405. tf = 0
  406. allowframeloss = false
  407. tossremainder = false
  408. lastframe = tick()
  409. script.Heartbeat:Fire()
  410. game:GetService("RunService").Heartbeat:connect(function(s, p)
  411. tf = tf + s
  412. if tf >= frame then
  413. if allowframeloss then
  414. script.Heartbeat:Fire()
  415. lastframe = tick()
  416. else
  417. for i = 1, math.floor(tf / frame) do
  418. script.Heartbeat:Fire()
  419. end
  420. lastframe = tick()
  421. end
  422. if tossremainder then
  423. tf = 0
  424. else
  425. tf = tf - frame * math.floor(tf / frame)
  426. end
  427. end
  428. end)
  429. function swait(num)
  430. if num == 0 or num == nil then
  431. ArtificialHB.Event:wait()
  432. else
  433. for i = 0, num do
  434. ArtificialHB.Event:wait()
  435. end
  436. end
  437. end
  438. function RemoveOutlines(part)
  439. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  440. end
  441. CFuncs = {
  442. Part = {
  443. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  444. local Part = Create("Part")({
  445. Parent = Parent,
  446. Reflectance = Reflectance,
  447. Transparency = Transparency,
  448. CanCollide = false,
  449. Locked = true,
  450. BrickColor = BrickColor.new(tostring(BColor)),
  451. Name = Name,
  452. Size = Size,
  453. Material = Material
  454. })
  455. RemoveOutlines(Part)
  456. return Part
  457. end
  458. },
  459. Mesh = {
  460. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  461. local Msh = Create(Mesh)({
  462. Parent = Part,
  463. Offset = OffSet,
  464. Scale = Scale
  465. })
  466. if Mesh == "SpecialMesh" then
  467. Msh.MeshType = MeshType
  468. Msh.MeshId = MeshId
  469. end
  470. return Msh
  471. end
  472. },
  473. Weld = {
  474. Create = function(Parent, Part0, Part1, C0, C1)
  475. local Weld = Create("Weld")({
  476. Parent = Parent,
  477. Part0 = Part0,
  478. Part1 = Part1,
  479. C0 = C0,
  480. C1 = C1
  481. })
  482. return Weld
  483. end
  484. },
  485. Sound = {
  486. Create = function(id, par, vol, pit)
  487. local Sound = Create("Sound")({
  488. Volume = vol,
  489. Pitch = pit or 1,
  490. SoundId = "rbxassetid://" .. id,
  491. Parent = par or workspace
  492. })
  493. Sound:play()
  494. game:GetService("Debris"):AddItem(Sound, 130)
  495. return Sound
  496. end
  497. },
  498. Decal = {
  499. Create = function(Color, Texture, Transparency, Name, Parent)
  500. local Decal = Create("Decal")({
  501. Color3 = Color,
  502. Texture = "rbxassetid://" .. Texture,
  503. Transparency = Transparency,
  504. Name = Name,
  505. Parent = Parent
  506. })
  507. return Decal
  508. end
  509. },
  510. BillboardGui = {
  511. Create = function(Parent, Image, Position, Size)
  512. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  513. BillPar.CFrame = CFrame.new(Position)
  514. local Bill = Create("BillboardGui")({
  515. Parent = BillPar,
  516. Adornee = BillPar,
  517. Size = UDim2.new(1, 0, 1, 0),
  518. SizeOffset = Vector2.new(Size, Size)
  519. })
  520. local d = Create("ImageLabel", Bill)({
  521. Parent = Bill,
  522. BackgroundTransparency = 1,
  523. Size = UDim2.new(1, 0, 1, 0),
  524. Image = "rbxassetid://" .. Image
  525. })
  526. return BillPar
  527. end
  528. },
  529. ParticleEmitter = {
  530. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  531. local Particle = Create("ParticleEmitter")({
  532. Parent = Parent,
  533. Color = ColorSequence.new(Color1, Color2),
  534. LightEmission = LightEmission,
  535. Size = Size,
  536. Texture = Texture,
  537. Transparency = Transparency,
  538. ZOffset = ZOffset,
  539. Acceleration = Accel,
  540. Drag = Drag,
  541. LockedToPart = LockedToPart,
  542. VelocityInheritance = VelocityInheritance,
  543. EmissionDirection = EmissionDirection,
  544. Enabled = Enabled,
  545. Lifetime = LifeTime,
  546. Rate = Rate,
  547. Rotation = Rotation,
  548. RotSpeed = RotSpeed,
  549. Speed = Speed,
  550. VelocitySpread = VelocitySpread
  551. })
  552. return Particle
  553. end
  554. },
  555. CreateTemplate = {}
  556. }
  557. function rayCast(Position, Direction, Range, Ignore)
  558. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  559. end
  560. function FindNearestTorso(pos)
  561. local list = game.Workspace:children()
  562. local torso
  563. local dist = 1000
  564. local temp, human, temp2
  565. for x = 1, #list do
  566. temp2 = list[x]
  567. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  568. temp = temp2:findFirstChild("Torso")
  569. human = temp2:findFirstChild("Humanoid")
  570. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  571. local dohit = true
  572. if dohit == true then
  573. torso = temp
  574. dist = (temp.Position - pos).magnitude
  575. end
  576. end
  577. end
  578. end
  579. return torso, dist
  580. end
  581. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  582. if hit.Parent == nil then
  583. return
  584. end
  585. local h = hit.Parent:FindFirstChild("Humanoid")
  586. for _, v in pairs(hit.Parent:children()) do
  587. c=hit.Parent:findFirstChild('HumanoidRootPart')
  588. if v:IsA("Humanoid") then
  589. h = v
  590. if c~=nil then
  591. Bitten=h
  592. end
  593. end
  594. end
  595. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  596. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  597. return
  598. end
  599. local c = Create("ObjectValue")({
  600. Name = "creator",
  601. Value = game:service("Players").LocalPlayer,
  602. Parent = h
  603. })
  604. game:GetService("Debris"):AddItem(c, 0.5)
  605. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  606. local Damage = math.random(minim, maxim)
  607. local blocked = false
  608. local block = hit.Parent:findFirstChild("Block")
  609. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  610. blocked = true
  611. block.Value = block.Value - 1
  612. print(block.Value)
  613. end
  614. if TimeStop == false then
  615. h.Health = h.Health - Damage
  616. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Light reddish violet").Color)
  617. elseif TimeStop == true then
  618. repeat
  619. wait()
  620. until TimeStop == false
  621. h.Health = h.Health - Damage / 2
  622. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Light reddish violet").Color)
  623. end
  624. if Type == "Knockdown" then
  625. local hum = hit.Parent.Humanoid
  626. hum.PlatformStand = true
  627. coroutine.resume(coroutine.create(function(HHumanoid)
  628. swait(1)
  629. HHumanoid.PlatformStand = false
  630. end), hum)
  631. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  632. local bodvol = Create("BodyVelocity")({
  633. velocity = angle * knockback,
  634. P = 5000,
  635. maxForce = Vector3.new(8000, 8000, 8000),
  636. Parent = hit
  637. })
  638. local rl = Create("BodyAngularVelocity")({
  639. P = 3000,
  640. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  641. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  642. Parent = hit
  643. })
  644. game:GetService("Debris"):AddItem(bodvol, 0.5)
  645. game:GetService("Debris"):AddItem(rl, 0.5)
  646. elseif Type == "Normal" then
  647. local vp = Create("BodyVelocity")({
  648. P = 500,
  649. maxForce = Vector3.new(math.huge, 0, math.huge),
  650. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  651. })
  652. if knockback > 0 then
  653. vp.Parent = hit.Parent.Torso
  654. end
  655. game:GetService("Debris"):AddItem(vp, 0.5)
  656. elseif Type == "Up" then
  657. local bodyVelocity = Create("BodyVelocity")({
  658. velocity = Vector3.new(0, 20, 0),
  659. P = 5000,
  660. maxForce = Vector3.new(8000, 8000, 8000),
  661. Parent = hit
  662. })
  663. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  664. elseif Type == "DarkUp" then
  665. coroutine.resume(coroutine.create(function()
  666. for i = 0, 1, 0.1 do
  667. swait()
  668. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  669. end
  670. end))
  671. local bodyVelocity = Create("BodyVelocity")({
  672. velocity = Vector3.new(0, 20, 0),
  673. P = 5000,
  674. maxForce = Vector3.new(8000, 8000, 8000),
  675. Parent = hit
  676. })
  677. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  678. elseif Type == "Snare" then
  679. local bp = Create("BodyPosition")({
  680. P = 2000,
  681. D = 100,
  682. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  683. position = hit.Parent.Torso.Position,
  684. Parent = hit.Parent.Torso
  685. })
  686. game:GetService("Debris"):AddItem(bp, 1)
  687. elseif Type == "Freeze" then
  688. local BodPos = Create("BodyPosition")({
  689. P = 50000,
  690. D = 1000,
  691. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  692. position = hit.Parent.Torso.Position,
  693. Parent = hit.Parent.Torso
  694. })
  695. local BodGy = Create("BodyGyro")({
  696. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  697. P = 20000,
  698. Parent = hit.Parent.Torso,
  699. cframe = hit.Parent.Torso.CFrame
  700. })
  701. hit.Parent.Torso.Anchored = true
  702. coroutine.resume(coroutine.create(function(Part)
  703. swait(1.5)
  704. Part.Anchored = false
  705. end), hit.Parent.Torso)
  706. game:GetService("Debris"):AddItem(BodPos, 3)
  707. game:GetService("Debris"):AddItem(BodGy, 3)
  708. end
  709. local debounce = Create("BoolValue")({
  710. Name = "DebounceHit",
  711. Parent = hit.Parent,
  712. Value = true
  713. })
  714. game:GetService("Debris"):AddItem(debounce, Delay)
  715. c = Create("ObjectValue")({
  716. Name = "creator",
  717. Value = Player,
  718. Parent = h
  719. })
  720. game:GetService("Debris"):AddItem(c, 0.5)
  721. end
  722. end
  723. function ShowDamage(Pos, Text, Time, Color)
  724. local Rate = 0.03333333333333333
  725. local Pos = Pos or Vector3.new(0, 0, 0)
  726. local Text = Text or ""
  727. local Time = Time or 2
  728. local Color = Color or Color3.new(1, 0, 1)
  729. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  730. EffectPart.Anchored = true
  731. local BillboardGui = Create("BillboardGui")({
  732. Size = UDim2.new(3, 0, 3, 0),
  733. Adornee = EffectPart,
  734. Parent = EffectPart
  735. })
  736. local TextLabel = Create("TextLabel")({
  737. BackgroundTransparency = 1,
  738. Size = UDim2.new(1, 0, 1, 0),
  739. Text = Text,
  740. Font = "SciFi",
  741. TextColor3 = Color,
  742. TextScaled = true,
  743. Parent = BillboardGui
  744. })
  745. game.Debris:AddItem(EffectPart, Time)
  746. EffectPart.Parent = game:GetService("Workspace")
  747. delay(0, function()
  748. local Frames = Time / Rate
  749. for Frame = 1, Frames do
  750. wait(Rate)
  751. local Percent = Frame / Frames
  752. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  753. TextLabel.TextTransparency = Percent
  754. end
  755. if EffectPart and EffectPart.Parent then
  756. EffectPart:Destroy()
  757. end
  758. end)
  759. end
  760. local STDamage = false
  761. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  762. for _, c in pairs(workspace:children()) do
  763. local hum = c:findFirstChild("Humanoid")
  764. if hum ~= nil then
  765. local head = c:findFirstChild("Torso")
  766. if head ~= nil then
  767. local targ = head.Position - Part.Position
  768. local mag = targ.magnitude
  769. if Magnitude >= mag and c.Name ~= Player.Name then
  770. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  771. if STDamage == true then
  772. for i = 1, 3 do
  773. Effects.Block.Create(BrickColor.new("Light reddish violet"), head.CFrame, 1, 1, 1, 4, 4, 4, 0.07, 1)
  774. end
  775. for i = 1, 10 do
  776. CamShake(1, 70000)
  777. Effects.Break.Create(BrickColor.new("Light reddish violet"), head.CFrame, 1, 1, 1)
  778. end
  779. elseif STDamage == false then
  780. CamShake(1, 90000)
  781. Effects.Block.Create(BrickColor.new("Light reddish violet"), head.CFrame, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.07, 1)
  782. for i = 1, 2 do
  783. Effects.Break.Create(BrickColor.new("Light reddish violet"), head.CFrame, 0.4, 0.4, 0.4)
  784. end
  785. end
  786. end
  787. end
  788. end
  789. end
  790. end
  791. --[[
  792. HHandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "HHandle", Vector3.new(1.09999979, 0.299999923, 1.0999999))
  793. HHandleWeld = CFuncs.Weld.Create(m, Head, HHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0646438599, -0.0500068665, -0.0646400452, -0.707107365, -3.21031663E-8, 0.707106411, -8.19564079E-8, 1.00000119, -1.41561088E-7, -0.707106352, 1.38630043E-7, -0.707107484))
  794. Eye1 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "White", "Eye1", Vector3.new(0.400000006, 0.200000003, 0.200000003))
  795. PartWeld = CFuncs.Weld.Create(m, HHandle, Eye1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0381011963, -0.0574798584, 0.471725464, -2.89082527E-6, 0.173647985, -0.984807968, -6.2584877E-7, 0.984808922, 0.173648104, 1.00000012, 1.02902288E-6, -2.77161598E-6))
  796. CFuncs.Mesh.Create("SpecialMesh", Eye1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  797. Eye2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "White", "Eye2", Vector3.new(0.400000006, 0.200000003, 0.200000003))
  798. PartWeld = CFuncs.Weld.Create(m, HHandle, Eye2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0115432739, -0.0487277508, 0.482452393, -0.981060266, -0.173648134, -0.0858327746, -0.172987267, 0.984808922, -0.0151339322, 0.0871568322, 3.96735317E-7, -0.996194839))
  799. CFuncs.Mesh.Create("SpecialMesh", Eye2, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  800. THandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "THandle", Vector3.new(1, 0.799999893, 1))
  801. THandleWeld = CFuncs.Weld.Create(m, Torso, THandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  802. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.80000019, 0.300000012, 1.80000007))
  803. PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.10351563E-5, -1.04342794, -0.404396057, 1, -8.19564079E-8, 5.96046519E-8, -1.01078633E-7, 0.939694166, -0.342019171, 1.52638329E-8, 0.34201926, 0.939693213))
  804. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  805. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 1.10000002, 0.300000012))
  806. PartWeld = CFuncs.Weld.Create(m, THandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.34057617E-5, -0.943422318, -1.35441589, 1, -8.19564079E-8, 5.96046519E-8, -1.01078633E-7, 0.939694166, -0.342019171, 1.52638329E-8, 0.34201926, 0.939693213))
  807. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  808. --]]
  809. AHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "AHandleR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
  810. AHandleRWeld = CFuncs.Weld.Create(m, RightArm, AHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.209915161, 0.00999641418, -3.81469727E-6, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  811. --[[
  812.  
  813. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 0.899999976, 1.01999998))
  814. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999984741, 0.550004005, 0, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  815. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  816. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.150001526, 0.200003624, -0.359994888, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  817. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  818. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149993896, 0.20000267, 0.359992981, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  819. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.20000005, 0.800000012, 1.20000005))
  820. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.209899902, -0.809997559, 5.7220459E-6, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  821. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 0.699999988, 1.01999998))
  822. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.300003052, 0.650004387, 1.71661377E-5, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  823. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.300000012, 0.699999988, 1.01999998))
  824. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149993896, 0.650003433, 0, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  825. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 0.699999928, 0.520000041))
  826. PartWeld = CFuncs.Weld.Create(m, AHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, -0.049996376, -3.81469727E-6, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  827. --]]
  828. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "HitboxR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
  829.  
  830. HitboxRWeld = CFuncs.Weld.Create(m, AHandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, -8.19564079E-8, 5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, 5.96046519E-8, -1.41561088E-7, 1.00000024))
  831. AHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "AHandleL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
  832. AHandleLWeld = CFuncs.Weld.Create(m, LeftArm, AHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.210014343, 0.00999736786, 1.14440918E-5, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  833. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "HitboxL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
  834. HitboxLWeld = CFuncs.Weld.Create(m, AHandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.700003624, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  835. --[[
  836. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  837. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149986267, 0.200001717, -0.360012054, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  838. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 0.699999928, 0.520000041))
  839. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199989319, -0.0499982834, -9.53674316E-6, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  840. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  841. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149986267, 0.200001717, 0.359992981, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  842. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.20000005, 0.800000012, 1.20000005))
  843. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21005249, -0.81000042, 2.28881836E-5, -1, -8.19564079E-8, -5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, -5.96046519E-8, -1.41561088E-7, -1.00000024))
  844. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 0.899999976, 1.01999998))
  845. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999984741, 0.550003052, -5.7220459E-6, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  846. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.200000003, 0.699999988, 1.01999998))
  847. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.299995422, 0.650003433, -3.81469727E-6, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  848. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.300000012, 0.699999988, 1.01999998))
  849. PartWeld = CFuncs.Weld.Create(m, AHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.149993896, 0.65000248, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  850. LHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "LHandleR", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  851. LHandleRWeld = CFuncs.Weld.Create(m, RightLeg, LHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498962402, -0.0950021744, 0.00499534607, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  852. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.800000012, 0.800000012, 0.200000003))
  853. PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00498962402, -0.00499916077, -0.604999542, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  854. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  855. PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.600002289, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  856. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.02999997, 0.699999928, 1.19000006))
  857. PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.454998016, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  858. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.400000006, 1.20000005, 0.200000003))
  859. PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00499725342, -0.00499916077, -0.604999542, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  860. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.800000131, 1.20000005, 0.800000012))
  861. PartWeld = CFuncs.Weld.Create(m, LHandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00499725342, 0.0149993896, 0.00500297546, 2.28095047E-7, 1.00000775, 2.99581131E-7, -1.00000417, 5.63755016E-8, -4.06898749E-7, -2.98379774E-7, 2.07959161E-8, 1.0000037))
  862. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  863. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  864. WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.604999542, -0.504998207, 0.29499054, -2.98023224E-8, -6.70552254E-8, -1.00000012, 3.7252903E-8, 1.0000006, 7.4505806E-8, 1, 4.47034836E-8, 2.98023224E-8))
  865. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  866. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  867. WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.60499382, -0.495001793, 0.305000305, -5.96046519E-8, -1.41561088E-7, -1.00000024, -8.19564079E-8, -1.00000119, -1.41561088E-7, -1, -8.19564079E-8, -5.96046519E-8))
  868. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  869. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  870. WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.604999542, -0.495001793, 0.29499054, 2.98023224E-8, 6.70552254E-8, 1.00000012, -3.7252903E-8, -1.0000006, -7.4505806E-8, 1, 4.47034836E-8, 2.98023224E-8))
  871. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  872. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  873. WedgeWeld = CFuncs.Weld.Create(m, LHandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.604999542, -0.504998207, 0.305000305, 2.98023224E-8, 6.70552254E-8, 1.00000012, 3.7252903E-8, 1.0000006, 7.4505806E-8, -1, -4.47034836E-8, -2.98023224E-8))
  874. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  875. LHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "LHandleL", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  876. LHandleLWeld = CFuncs.Weld.Create(m, LeftLeg, LHandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00498199463, -0.095000267, 0.00502204895, -1, 8.19564079E-8, -5.96046519E-8, -8.19564079E-8, 1.00000119, -1.41561088E-7, -5.96046519E-8, 1.41561088E-7, -1.00000024))
  877. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  878. PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.600001335, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  879. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.400000006, 1.20000005, 0.300000012))
  880. PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00499725342, -0.00500106812, -0.554998398, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  881. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(1.02999997, 0.699999928, 1.19000006))
  882. PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.454999924, 0, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  883. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.800000131, 1.20000005, 0.800000012))
  884. PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00499534607, 0.0149993896, 0.00500297546, 2.28095047E-7, 1.00000775, 2.99581131E-7, -1.00000417, 5.63755016E-8, -4.06898749E-7, -2.98379774E-7, 2.07959161E-8, 1.0000037))
  885. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  886. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Part", Vector3.new(0.800000012, 0.800000012, 0.300000012))
  887. PartWeld = CFuncs.Weld.Create(m, LHandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00498962402, -0.00500106812, -0.554998398, 1, 8.19564079E-8, 5.96046519E-8, 8.19564079E-8, 1.00000119, 1.41561088E-7, 5.96046519E-8, 1.41561088E-7, 1.00000024))
  888. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  889. WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.554998398, -0.505000114, 0.305000305, 2.98023224E-8, 6.70552254E-8, 1.00000012, 3.7252903E-8, 1.0000006, 7.4505806E-8, -1, -4.47034836E-8, -2.98023224E-8))
  890. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  891. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  892. WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.554998398, -0.505000114, 0.29499054, -2.98023224E-8, -6.70552254E-8, -1.00000012, 3.7252903E-8, 1.0000006, 7.4505806E-8, 1, 4.47034836E-8, 2.98023224E-8))
  893. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  894. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  895. WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.554998398, -0.494999886, 0.29499054, 2.98023224E-8, 6.70552254E-8, 1.00000012, -3.7252903E-8, -1.0000006, -7.4505806E-8, 1, 4.47034836E-8, 2.98023224E-8))
  896. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  897. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Camo", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  898. WedgeWeld = CFuncs.Weld.Create(m, LHandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.554998398, -0.494999886, 0.305000305, -5.96046519E-8, -1.41561088E-7, -1.00000024, -8.19564079E-8, -1.00000119, -1.41561088E-7, -1, -8.19564079E-8, -5.96046519E-8))
  899. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  900. --]]
  901. Shield = CFuncs.Part.Create(m, "Neon", 0, 0.5, "Pastle brown", "Part", Vector3.new(9.1, 8.5, 0.2))
  902. CFuncs.Mesh.Create("SpecialMesh", Shield, "FileMesh", "rbxassetid://708292865", Vector3.new(0, 0, 0), Vector3.new(0.04, 0.04, 0.04))
  903. Shield.Parent = nil
  904.  
  905. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  906. Effects = {
  907. Block = {
  908. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  909. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  910. prt.Anchored = true
  911. prt.CFrame = cframe
  912. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  913. game:GetService("Debris"):AddItem(prt, 10)
  914. if Type == 1 or Type == nil then
  915. table.insert(Effects, {
  916. prt,
  917. "Block1",
  918. delay,
  919. x3,
  920. y3,
  921. z3,
  922. msh
  923. })
  924. elseif Type == 2 then
  925. table.insert(Effects, {
  926. prt,
  927. "Block2",
  928. delay,
  929. x3,
  930. y3,
  931. z3,
  932. msh
  933. })
  934. end
  935. end
  936. },
  937. Cylinder = {
  938. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  939. local prt = CFuncs.Part .. Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  940. prt.Anchored = true
  941. prt.CFrame = cframe
  942. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  943. game:GetService("Debris"):AddItem(prt, 2)
  944. Effects[#Effects + 1] = {
  945. prt,
  946. "Cylinder",
  947. delay,
  948. x3,
  949. y3,
  950. z3
  951. }
  952. end
  953. },
  954. Head = {
  955. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  956. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  957. prt.Anchored = true
  958. prt.CFrame = cframe
  959. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  960. game:GetService("Debris"):AddItem(prt, 10)
  961. table.insert(Effects, {
  962. prt,
  963. "Cylinder",
  964. delay,
  965. x3,
  966. y3,
  967. z3,
  968. msh
  969. })
  970. end
  971. },
  972. Sphere = {
  973. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  974. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  975. prt.Anchored = true
  976. prt.CFrame = cframe
  977. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  978. game:GetService("Debris"):AddItem(prt, 10)
  979. table.insert(Effects, {
  980. prt,
  981. "Cylinder",
  982. delay,
  983. x3,
  984. y3,
  985. z3,
  986. msh
  987. })
  988. end
  989. },
  990. Sphere2 = {
  991. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  992. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  993. prt.Anchored = true
  994. prt.CFrame = cframe
  995. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  996. game:GetService("Debris"):AddItem(prt, 10)
  997. table.insert(Effects, {
  998. prt,
  999. "Cylinder",
  1000. delay,
  1001. x3,
  1002. y3,
  1003. z3,
  1004. msh
  1005. })
  1006. end
  1007. },
  1008. Elec = {
  1009. Create = function(cff, x, y, z)
  1010. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Light reddish violet"), "Part", Vector3.new(1, 1, 1))
  1011. prt.Anchored = true
  1012. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1013. prt.CFrame = CFrame.new(prt.Position)
  1014. game:GetService("Debris"):AddItem(prt, 2)
  1015. local xval = math.random() / 2
  1016. local yval = math.random() / 2
  1017. local zval = math.random() / 2
  1018. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1019. table.insert(Effects, {
  1020. prt,
  1021. "Elec",
  1022. 0.1,
  1023. x,
  1024. y,
  1025. z,
  1026. xval,
  1027. yval,
  1028. zval
  1029. })
  1030. end
  1031. },
  1032. Ring = {
  1033. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1034. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1035. prt.Anchored = true
  1036. prt.CFrame = cframe
  1037. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1038. game:GetService("Debris"):AddItem(prt, 10)
  1039. table.insert(Effects, {
  1040. prt,
  1041. "Cylinder",
  1042. delay,
  1043. x3,
  1044. y3,
  1045. z3,
  1046. msh
  1047. })
  1048. end
  1049. },
  1050. Wave = {
  1051. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1052. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1053. prt.Anchored = true
  1054. prt.CFrame = cframe
  1055. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1056. game:GetService("Debris"):AddItem(prt, 10)
  1057. table.insert(Effects, {
  1058. prt,
  1059. "Cylinder",
  1060. delay,
  1061. x3,
  1062. y3,
  1063. z3,
  1064. msh
  1065. })
  1066. end
  1067. },
  1068. Break = {
  1069. Create = function(brickcolor, cframe, x1, y1, z1)
  1070. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1071. prt.Anchored = true
  1072. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1073. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1074. local num = math.random(10, 50) / 1000
  1075. game:GetService("Debris"):AddItem(prt, 10)
  1076. table.insert(Effects, {
  1077. prt,
  1078. "Shatter",
  1079. num,
  1080. prt.CFrame,
  1081. math.random() - math.random(),
  1082. 0,
  1083. math.random(50, 100) / 100
  1084. })
  1085. end
  1086. },
  1087. Fire = {
  1088. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1089. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1090. prt.Anchored = true
  1091. prt.CFrame = cframe
  1092. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1093. game:GetService("Debris"):AddItem(prt, 10)
  1094. table.insert(Effects, {
  1095. prt,
  1096. "Fire",
  1097. delay,
  1098. 1,
  1099. 1,
  1100. 1,
  1101. msh
  1102. })
  1103. end
  1104. },
  1105. FireWave = {
  1106. Create = function(brickcolor, cframe, x1, y1, z1)
  1107. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1108. prt.Anchored = true
  1109. prt.CFrame = cframe
  1110. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1111. local d = Create("Decal")({
  1112. Parent = prt,
  1113. Texture = "rbxassetid://26356434",
  1114. Face = "Top"
  1115. })
  1116. local d = Create("Decal")({
  1117. Parent = prt,
  1118. Texture = "rbxassetid://26356434",
  1119. Face = "Bottom"
  1120. })
  1121. game:GetService("Debris"):AddItem(prt, 10)
  1122. table.insert(Effects, {
  1123. prt,
  1124. "FireWave",
  1125. 1,
  1126. 30,
  1127. math.random(400, 600) / 100,
  1128. msh
  1129. })
  1130. end
  1131. },
  1132. Lightning = {
  1133. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1134. local magz = (p0 - p1).magnitude
  1135. local curpos = p0
  1136. local trz = {
  1137. -ofs,
  1138. ofs
  1139. }
  1140. for i = 1, tym do
  1141. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1142. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1143. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1144. li.Material = "Neon"
  1145. if tym == i then
  1146. local magz2 = (curpos - p1).magnitude
  1147. li.Size = Vector3.new(th, th, magz2)
  1148. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1149. table.insert(Effects, {
  1150. li,
  1151. "Disappear",
  1152. last
  1153. })
  1154. else
  1155. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1156. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1157. game.Debris:AddItem(li, 10)
  1158. table.insert(Effects, {
  1159. li,
  1160. "Disappear",
  1161. last
  1162. })
  1163. end
  1164. end
  1165. end
  1166. },
  1167. EffectTemplate = {}
  1168. }
  1169. local Invisible = true
  1170. function Reappear()
  1171. for _, i in pairs(AdvancingFortress:children()) do
  1172. if i:IsA("BasePart") then
  1173. coroutine.resume(coroutine.create(function(Part)
  1174. for i = 0, 1, 0.3 do
  1175. swait()
  1176. Part.Transparency = -i
  1177. end
  1178. Part.Transparency = 0
  1179. end), i)
  1180. end
  1181. end
  1182. for _, i in pairs(m:children()) do
  1183. if i:IsA("BasePart") then
  1184. coroutine.resume(coroutine.create(function(Part)
  1185. for i = 0, 1, 0.3 do
  1186. swait()
  1187. Part.Transparency = i
  1188. end
  1189. Part.Transparency = 1
  1190. end), i)
  1191. end
  1192. end
  1193. end
  1194. function ReappearArmorOnly()
  1195. for _, i in pairs(m:children()) do
  1196. if i:IsA("BasePart") then
  1197. coroutine.resume(coroutine.create(function(Part)
  1198. for i = 0, 1, 0.3 do
  1199. swait()
  1200. Part.Transparency = i
  1201. end
  1202. Part.Transparency = 0
  1203. for _,v in pairs(KQ) do
  1204. St=v.Weld.Part1.Name
  1205. if St=='FHead' then
  1206. St='Head'
  1207. end
  1208. v.Weld.Part1=Character[St]
  1209. end
  1210. end), i)
  1211. end
  1212. end
  1213. end
  1214. function Disappear()
  1215. --[[for _, i in pairs(AdvancingFortress:children()) do
  1216. if i:IsA("BasePart") then
  1217. coroutine.resume(coroutine.create(function(Part)
  1218. for i = 0, 1, 0.3 do
  1219. swait()
  1220. Part.Transparency = i
  1221. end
  1222. Part.Transparency = 1
  1223. end), i)
  1224. end
  1225. end--]]
  1226. for _, i in pairs(m:children()) do
  1227. if i:IsA("BasePart") then
  1228. coroutine.resume(coroutine.create(function(Part)
  1229. for i = 0, 1, 0.3 do
  1230. swait()
  1231. Part.Transparency = i
  1232. end
  1233. Part.Transparency = 1
  1234. end), i)
  1235. end
  1236. end
  1237. end
  1238. function DisappearArmorOnly()
  1239. for _, i in pairs(m:children()) do
  1240. if i:IsA("BasePart") then
  1241. coroutine.resume(coroutine.create(function(Part)
  1242. for i = 0, 1, 0.3 do
  1243. swait()
  1244. Part.Transparency = i
  1245. end
  1246. Part.Transparency = 1
  1247. for _,v in pairs(KQ) do
  1248. St=v.Weld.Part1.Name
  1249. if St=='Head' then
  1250. St='FHead'
  1251. end
  1252. v.Weld.Part1=AdvancingFortress[St]
  1253. end
  1254. end), i)
  1255. end
  1256. end
  1257. end
  1258. function CamShake(time, freq)
  1259. coroutine.resume(coroutine.create(function()
  1260. local cam = game:GetService("Workspace").CurrentCamera
  1261. local time = 10
  1262. local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0)
  1263. if math.random(1, 2) == 1 then
  1264. seed = Vector3.new(-seed.x, seed.y, 0)
  1265. end
  1266. if math.random(1, 2) == 1 then
  1267. seed = Vector3.new(seed.x, -seed.y, 0)
  1268. end
  1269. cam.CoordinateFrame = CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(seed.x * time, seed.y * time, 0) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
  1270. for i = 1, time do
  1271. cam.CoordinateFrame = CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(-seed.x, -seed.y, 0) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
  1272. wait()
  1273. end
  1274. end))
  1275. end
  1276. local ora = false
  1277. function ORA()
  1278. attack = true
  1279. local S = CFuncs.Sound.Create("", Torso, 3, 1)
  1280. S.Looped = true
  1281. if ora == true then
  1282. while ora == true do
  1283. CFuncs.Sound.Create("200632136", HitboxL, 0.3, math.random(1, 1.2))
  1284. MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "260430117", 1)
  1285. for i = 0, 1, 0.8 do
  1286. swait()
  1287. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1288. PlayAnimationFromTable({
  1289. CFrame.new(-0.561874092, -0.346845925, -0.435822666, 0.64278698, -0.323744029, 0.694272816, 0, 0.906308115, 0.422617555, -0.766044974, -0.271653026, 0.582563102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1290. CFrame.new(8.9481473E-6, 1.49999249, 5.2684918E-6, 0.704669476, 0.0560214818, -0.707321048, -0.0868221819, 0.996195257, -0.0075956285, 0.704204142, 0.0667634308, 0.706852198) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1291. CFrame.new(1.97048378, 0.808467984, -0.254994273, -0.457079947, -0.7819345, 0.423859, 0.842444837, -0.227779076, 0.488266319, -0.285246044, 0.580254436, 0.762849629) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1292. CFrame.new(-1.18535733, 0.530705392, -0.713678956, 0.778861284, -0.400152355, 0.482962847, 0.492400557, -0.0868335962, -0.866026342, 0.388479888, 0.912325621, 0.129403993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1293. CFrame.new(0.708622813, -1.45549953, -0.199998885, 0.984808087, -0.167729571, -0.0449446738, 0.173646823, 0.951251328, 0.254887581, 1.4603138E-6, -0.258819878, 0.965925694) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1294. CFrame.new(-0.604502141, -1.943735, 5.15520573E-4, 0.982544005, 0.00845471025, 0.185841322, -0.0717865527, 0.938827574, 0.336824685, -0.17162481, -0.34428525, 0.923045695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1295. }, 0.8, false)
  1296. end
  1297. CFuncs.Sound.Create("200632136", HitboxR, 0.3, math.random(1, 1.2))
  1298. MagnitudeDamage(HitboxR, 5, 4, 10, 0, "Normal", "260430117", 1)
  1299. for i = 0, 1, 0.8 do
  1300. swait()
  1301. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1302. PlayAnimationFromTable({
  1303. CFrame.new(1.1920929E-6, -0.0170394331, -0.52941519, 0.70710516, -2.21270369E-7, -0.707108498, 0.18301405, 0.965925574, 0.183012888, 0.683014154, -0.258820117, 0.683010995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1304. CFrame.new(-1.22189522E-6, 1.49999356, 1.04308128E-6, 0.707110465, 0.122788236, 0.696360528, -1.4748274E-6, 0.98480773, -0.173648238, -0.707103193, 0.122787461, 0.696368098) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1305. CFrame.new(1.44562268, 0.333473027, -0.475224167, 0.907739162, 0.217196256, 0.358959734, 0.40125221, -0.199453548, -0.893991232, -0.122576535, 0.955528319, -0.268199235) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1306. CFrame.new(-1.884794, 0.881342709, -0.770847201, 0.0912726, 0.688403964, -0.719562054, -0.91795665, -0.221949756, -0.328776807, -0.386037856, 0.690535009, 0.611666858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1307. CFrame.new(0.789779902, -1.8586235, 0.161380947, 0.965926766, -0.258817255, -8.10623169E-6, 0.243211254, 0.907672405, 0.342022836, -0.0885141194, -0.330371499, 0.939691722) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1308. CFrame.new(-0.73783946, -1.45406294, -0.215006173, 0.882573366, -0.0180292428, 0.469829261, -0.163172901, 0.925412893, 0.342031717, -0.440952569, -0.378531486, 0.813802838) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1309. }, 0.8, false)
  1310. end
  1311. CFuncs.Sound.Create("200632136", HitboxL, 0.3, math.random(1, 1.2))
  1312. MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "260430117", 1)
  1313. for i = 0, 1, 0.8 do
  1314. swait()
  1315. -- RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1316. PlayAnimationFromTable({
  1317. CFrame.new(0.215482175, -0.0393944569, -0.126133978, 0.259671897, -0.351393819, 0.8994959, -0.075478971, 0.921212733, 0.381667405, -0.962742627, -0.167001322, 0.212690249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1318. CFrame.new(-1.26510859E-5, 1.49999118, -2.16066837E-7, 0.420251548, -0.0215960592, -0.90715003, -0.100918382, 0.992402375, -0.0703775883, 0.901778162, 0.12112467, 0.414879382) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1319. CFrame.new(1.81840861, 0.705381036, -0.347923756, -0.236346364, -0.883376777, 0.404705286, 0.945798516, -0.113677993, 0.304209948, -0.222726092, 0.454668403, 0.862362981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1320. CFrame.new(-1.21960759, 0.420275182, -0.728423595, -0.57802856, -0.255150676, 0.775100708, 0.665436089, -0.697164714, 0.266751111, 0.472311139, 0.669969678, 0.572767615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1321. CFrame.new(0.620917439, -1.53014767, -0.12091887, 0.707106113, 0.241845652, -0.66446346, -1.2293458E-6, 0.939692676, 0.342019886, 0.707107484, -0.241843566, 0.664462805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1322. CFrame.new(-0.873213649, -1.89646459, -0.100004375, 0.933012128, 0.353242815, -0.0686147735, -0.258823931, 0.791241407, 0.554028153, 0.249997303, -0.499155849, 0.829665601) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1323. }, 0.8, false)
  1324. end
  1325. CFuncs.Sound.Create("200632136", HitboxR, 0.3, math.random(1, 1.2))
  1326. MagnitudeDamage(HitboxR, 5, 4, 10, 0, "Normal", "260430117", 1)
  1327. for i = 0, 1, 0.8 do
  1328. swait()
  1329. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1330. PlayAnimationFromTable({
  1331. CFrame.new(0.299998224, -0.0468490347, -0.211314023, 0.642786682, -2.87348001E-7, -0.766045272, 0.323744863, 0.906307757, 0.271653205, 0.694272637, -0.42261824, 0.582562685) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1332. CFrame.new(2.71201134E-6, 1.4999969, 8.94069672E-7, 0.642777503, 0.133020476, 0.754416466, 4.31999706E-6, 0.984809279, -0.173647597, -0.766052961, 0.111620098, 0.633012772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1333. CFrame.new(1.27057993, 0.327670783, -0.599993467, 0.638493001, 0.280156553, -0.716825664, -0.769049883, 0.196164608, -0.608343422, -0.0298155248, 0.939697862, 0.340704083) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1334. CFrame.new(-1.86040878, 1.02262986, -0.452570885, 0.386218816, 0.717701018, -0.579433978, -0.403004408, -0.433759809, -0.805879354, -0.829712272, 0.544763446, 0.121709965) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1335. CFrame.new(0.779964924, -1.75316048, -0.0263362825, 0.826099217, -0.36394459, 0.43023771, 0.181541473, 0.894650102, 0.40822047, -0.533481896, -0.259124577, 0.805140793) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1336. CFrame.new(-0.724003315, -1.47219872, -0.266945302, 0.766038954, -0.166370958, 0.620890498, 4.09781933E-6, 0.965925932, 0.258819997, -0.642794192, -0.198263675, 0.739937425) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1337. }, 0.8, false)
  1338. end
  1339. CFuncs.Sound.Create("200632136", HitboxL, 0.3, math.random(1, 1.2))
  1340. MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "260430117", 1)
  1341. end
  1342. end
  1343. S:Stop()
  1344. local S2 = CFuncs.Sound.Create("", Torso, 1.5, 1)
  1345. for i = 0, 1, 0.13 do
  1346. swait()
  1347. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -3), 0.5)
  1348. PlayAnimationFromTable({
  1349. CFrame.new(2.68220901E-6, -0.0739577487, 0.0232374109, 0.707105994, -3.47710994E-7, -0.707107604, -0.122787997, 0.98480767, -0.122788213, 0.696364999, 0.173648596, 0.696363389) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1350. CFrame.new(-5.36441803E-7, 1.49999356, -1.28149986E-6, 0.707105994, -0.122788511, 0.696365297, -3.47710994E-7, 0.984808028, 0.173649326, -0.707107604, -0.122788727, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1351. CFrame.new(1.13747835, 0.382733107, -0.729447305, 0.579597414, 0.772029877, -0.260839432, -0.351051509, -0.0523141921, -0.934893906, -0.735411942, 0.633429527, 0.240701318) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1352. CFrame.new(-1.53455412, 0.605712295, -0.542039633, 0.786121905, 0.427828372, -0.446066588, -0.606968522, 0.398195386, -0.687771559, -0.116626531, 0.811420619, 0.572708428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1353. CFrame.new(0.903839946, -1.70734286, 0.373858094, 0.863655448, -0.430708885, 0.261895239, 0.187955216, 0.757234871, 0.625514567, -0.46773085, -0.491004646, 0.734943748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1354. CFrame.new(-0.596739769, -1.62411702, -0.0967329144, 0.725493789, -0.291957259, 0.623233199, -0.081900157, 0.86250174, 0.499382436, -0.683338165, -0.41334182, 0.601828396) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1355. }, 0.2, false)
  1356. end
  1357. CFuncs.Sound.Create("471881954", HitboxR, 1, 1)
  1358. MagnitudeDamage(HitboxR, 7, 10, 15, 50, "Normal", "610359590", 1)
  1359. for i = 0, 1, 0.1 do
  1360. swait()
  1361. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), 0.3)
  1362. PlayAnimationFromTable({
  1363. CFrame.new(-0.338160992, -0.0772590488, -0.484170675, 0.307024002, -0.153706044, 0.939207554, -0.403236002, 0.872901201, 0.274671286, -0.86205399, -0.463052958, 0.206021816) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1364. CFrame.new(-0.0502282679, 1.50051379, -0.0864891857, 0.502356887, -0.246090144, -0.828901231, -0.00520065427, 0.957766473, -0.287500501, 0.864644766, 0.148738697, 0.479860842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1365. CFrame.new(1.81698525, 1.20575511, -0.168038458, 0.0800605565, -0.859217465, 0.505307972, 0.457053572, -0.418860257, -0.784640014, 0.885828495, 0.293771386, 0.359173566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1366. CFrame.new(-1.66351938, 0.691055655, 0.203685582, 0.309526145, 0.793331623, -0.524231553, -0.937197804, 0.347743452, -0.0271089375, 0.160791725, 0.499699503, 0.851144433) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1367. CFrame.new(0.971616864, -1.6145575, 0.096719563, 0.544056833, -0.203144252, -0.814085484, 0.51142931, 0.849463344, 0.129818588, 0.665161908, -0.486975014, 0.566052973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1368. CFrame.new(-0.676943898, -1.44413579, 0.206094518, 0.884253025, 0.0570309162, -0.463512957, 0.209485695, 0.838620007, 0.502824426, 0.417387724, -0.541723251, 0.729605079) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1369. }, 0.6, false)
  1370. end
  1371. attack = false
  1372. end
  1373. function CastleCrusherFist()
  1374. attack = true
  1375. STDamage = true
  1376. local S2 = CFuncs.Sound.Create("", Torso, 1, 1)
  1377. for i = 0, 1, 0.1 do
  1378. swait()
  1379. Effects.Block.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  1380. Effects.Break.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  1381. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), 0.2)
  1382. PlayAnimationFromTable({
  1383. CFrame.new(-5.99771738E-7, -0.00717129931, 0.169464022, 0.422617912, -2.2671E-7, -0.906308055, -0.309975952, 0.939692557, -0.144544229, 0.851650834, 0.342020661, 0.397130787) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1384. CFrame.new(-0.0102166235, 1.52751005, -0.239579424, 0.456926107, -0.171424359, 0.872835577, -0.167732254, 0.94705075, 0.273807496, -0.87355268, -0.271512181, 0.403976858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1385. CFrame.new(0.944673777, 0.474064022, -0.539126158, 0.229199454, 0.762564063, 0.604949772, 0.809601307, 0.195682317, -0.553402781, -0.540382624, 0.616607308, -0.572522938) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1386. CFrame.new(-1.61232829, 0.309644789, -0.24482432, 0.455398798, 0.536860108, -0.710207343, -0.887026072, 0.205374956, -0.413530886, -0.076149486, 0.818293095, 0.569735885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1387. CFrame.new(1.08113468, -1.48232126, 0.656104684, 0.81421864, -0.517612338, 0.262917578, 0.175395042, 0.651024699, 0.738514543, -0.553430021, -0.555197835, 0.620862961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1388. CFrame.new(-0.427128136, -1.50760674, -0.0473105907, 0.804508269, -0.373179317, 0.462065101, -0.173640698, 0.596196175, 0.783836842, -0.567992628, -0.71083647, 0.414845526) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1389. }, 0.2, false)
  1390. end
  1391. MagnitudeDamage(HitboxR, 10, 50, 80, 100, "Normal", "610359515", 1)
  1392. Effects.Wave.Create(BrickColor.new("Light reddish violet"), RootPart.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.06)
  1393. CFuncs.Sound.Create("471881980", HitboxR, 1, 0.9)
  1394. CFuncs.Sound.Create("471881954", HitboxR, 1, 0.8)
  1395. for i = 0, 1, 0.08 do
  1396. swait()
  1397. Effects.Block.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  1398. Effects.Break.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  1399. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), 0.3)
  1400. PlayAnimationFromTable({
  1401. CFrame.new(-3.57627869E-7, -0.116980031, -2.22140098, 0.342020035, -6.11579551E-8, 0.939692736, -0.604023039, 0.766044259, 0.219846413, -0.71984607, -0.642787933, 0.262002468) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1402. CFrame.new(-1.13248825E-6, 1.49999046, 8.94069672E-7, 0.422608167, -0.383014679, -0.82140249, -1.36196613E-5, 0.906310022, -0.422613323, 0.906312764, 0.17861104, 0.383008778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1403. CFrame.new(1.72490048, 1.25688744, -0.021425128, -0.678134382, -0.731868863, 0.0670941696, 0.667953849, -0.575675249, 0.47163111, -0.306547582, 0.364645123, 0.879239857) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1404. CFrame.new(-1.70565486, 0.469353855, 0.162862837, 0.82686162, 0.55728358, 0.0757693052, -0.414878726, 0.513436973, 0.751176, 0.379712611, -0.652546048, 0.655748963) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1405. CFrame.new(0.757160306, -1.48393714, -0.193787217, 0.601814985, 0.305624545, -0.737842917, -2.98023224E-8, 0.923879623, 0.382683486, 0.798635662, -0.230304718, 0.556004763) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1406. CFrame.new(-0.908789515, -1.60188651, -0.0663503706, 0.696367741, 0.548584938, -0.462741733, -0.173660636, 0.7544052, 0.633021533, 0.696362019, -0.360454619, 0.620610356) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1407. }, 0.6, false)
  1408. end
  1409. STDamage = false
  1410. attack = false
  1411. end
  1412. function CastleCrusherFist()
  1413. attack = true
  1414. STDamage = true
  1415. local S2 = CFuncs.Sound.Create("", Torso, 1, 1)
  1416. for i = 0, 1, 0.1 do
  1417. swait()
  1418. Effects.Block.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  1419. Effects.Break.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  1420. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), 0.5)
  1421. PlayAnimationFromTable({
  1422. CFrame.new(-5.99771738E-7, -0.00717129931, 0.169464022, 0.422617912, -2.2671E-7, -0.906308055, -0.309975952, 0.939692557, -0.144544229, 0.851650834, 0.342020661, 0.397130787) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1423. CFrame.new(-0.0102166235, 1.52751005, -0.239579424, 0.456926107, -0.171424359, 0.872835577, -0.167732254, 0.94705075, 0.273807496, -0.87355268, -0.271512181, 0.403976858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1424. CFrame.new(0.944673777, 0.474064022, -0.539126158, 0.229199454, 0.762564063, 0.604949772, 0.809601307, 0.195682317, -0.553402781, -0.540382624, 0.616607308, -0.572522938) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1425. CFrame.new(-1.61232829, 0.309644789, -0.24482432, 0.455398798, 0.536860108, -0.710207343, -0.887026072, 0.205374956, -0.413530886, -0.076149486, 0.818293095, 0.569735885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1426. CFrame.new(1.08113468, -1.48232126, 0.656104684, 0.81421864, -0.517612338, 0.262917578, 0.175395042, 0.651024699, 0.738514543, -0.553430021, -0.555197835, 0.620862961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1427. CFrame.new(-0.427128136, -1.50760674, -0.0473105907, 0.804508269, -0.373179317, 0.462065101, -0.173640698, 0.596196175, 0.783836842, -0.567992628, -0.71083647, 0.414845526) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1428. }, 0.2, false)
  1429. end
  1430. Effects.Wave.Create(BrickColor.new("Light reddish violet"), RootPart.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.06)
  1431. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 140
  1432. CFuncs.Sound.Create("471881980", HitboxR, 1, 0.9)
  1433. CFuncs.Sound.Create("471881954", HitboxR, 1, 0.8)
  1434. for i = 0, 1, 0.08 do
  1435. swait()
  1436. MagnitudeDamage(HitboxR, 5, 50, 80, 100, "Normal", "610359515", 1)
  1437. Effects.Block.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  1438. Effects.Break.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  1439. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), 1)
  1440. PlayAnimationFromTable({
  1441. CFrame.new(-3.57627869E-7, -0.116980031, -2.22140098, 0.342020035, -6.11579551E-8, 0.939692736, -0.604023039, 0.766044259, 0.219846413, -0.71984607, -0.642787933, 0.262002468) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1442. CFrame.new(-1.13248825E-6, 1.49999046, 8.94069672E-7, 0.422608167, -0.383014679, -0.82140249, -1.36196613E-5, 0.906310022, -0.422613323, 0.906312764, 0.17861104, 0.383008778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1443. CFrame.new(1.72490048, 1.25688744, -0.021425128, -0.678134382, -0.731868863, 0.0670941696, 0.667953849, -0.575675249, 0.47163111, -0.306547582, 0.364645123, 0.879239857) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1444. CFrame.new(-1.70565486, 0.469353855, 0.162862837, 0.82686162, 0.55728358, 0.0757693052, -0.414878726, 0.513436973, 0.751176, 0.379712611, -0.652546048, 0.655748963) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1445. CFrame.new(0.757160306, -1.48393714, -0.193787217, 0.601814985, 0.305624545, -0.737842917, -2.98023224E-8, 0.923879623, 0.382683486, 0.798635662, -0.230304718, 0.556004763) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1446. CFrame.new(-0.908789515, -1.60188651, -0.0663503706, 0.696367741, 0.548584938, -0.462741733, -0.173660636, 0.7544052, 0.633021533, 0.696362019, -0.360454619, 0.620610356) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1447. }, 0.6, false)
  1448. end
  1449. STDamage = false
  1450. attack = false
  1451. end
  1452. function weld5(part0, part1, c0, c1)
  1453. local weeld = Instance.new("Weld", part0)
  1454. weeld.Part0 = part0
  1455. weeld.Part1 = part1
  1456. weeld.C0 = c0
  1457. weeld.C1 = c1
  1458. return weeld
  1459. end
  1460. local Grab = false
  1461. function GRABEMBOIGRABEM()
  1462. attack = true
  1463. gp = nil
  1464. con1 = HitboxR.Touched:connect(function(hit)
  1465. local ht = hit.Parent
  1466. local hum1 = ht:FindFirstChild("Humanoid")
  1467. if Grab == false then
  1468. if hum1 ~= nil and hit.Parent ~= Character then
  1469. hum1.PlatformStand = true
  1470. gp = ht
  1471. Grab = true
  1472. local asd = weld5(RightArm, ht:FindFirstChild("Torso"), CFrame.new(0, -1.5, 0), CFrame.new(0, 0, 0))
  1473. asd.Parent = RightArm
  1474. asd.Name = "asd"
  1475. asd.C0 = asd.C0 * CFrame.Angles(math.rad(-90), 0, 0)
  1476. CFuncs.Sound.Create("200632821", Torso, 1, 1)
  1477. elseif hum1 == nil then
  1478. con1:disconnect()
  1479. wait()
  1480. return
  1481. end
  1482. end
  1483. end)
  1484. for i = 0, 1, 0.2 do
  1485. swait()
  1486. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), 0.3)
  1487. PlayAnimationFromTable({
  1488. CFrame.new(-1.08022243E-4, -0.233785003, -0.0873367637, 0.499999821, -1.78813863E-7, -0.866025507, 0.150383934, 0.984807789, 0.0868239477, 0.852868676, -0.173648283, 0.492403716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1489. CFrame.new(-1.2665987E-7, 1.49999368, -1.02072954E-6, 0.573575675, 0.0713936985, 0.816035628, -5.01982868E-7, 0.996194899, -0.0871551931, -0.819152594, 0.049989678, 0.571393132) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1490. CFrame.new(1.47017705, 0.884583473, 0.0280318335, 0.886720777, -0.205462068, 0.414139926, 0.236241817, -0.568640172, -0.787933052, 0.397386849, 0.796513736, -0.455686152) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1491. CFrame.new(-1.76647317, 0.409804255, -0.03838256, 0.444113791, 0.836516619, -0.320940912, -0.836516619, 0.258818626, -0.482962757, -0.320940822, 0.482962757, 0.814704895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1492. CFrame.new(0.838749349, -1.98392951, 0.15807499, 0.830397308, -0.277826965, 0.48296237, 0.167731524, 0.951251447, 0.258818328, -0.53132534, -0.133914024, 0.836516857) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1493. CFrame.new(-0.811016142, -1.63281643, -0.179561377, 0.642214835, 0.00870995224, 0.76647532, -0.0151349902, 0.999884725, 0.00131897628, -0.766375303, -0.0124476701, 0.642272472) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1494. }, 0.3, false)
  1495. end
  1496. for i = 0, 1, 0.1 do
  1497. swait()
  1498. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -6), 0.3)
  1499. PlayAnimationFromTable({
  1500. CFrame.new(0.159273595, -0.292363107, -0.115490548, 0.0844330043, -0.144068986, 0.985959053, -0.357129037, 0.919379771, 0.164923266, -0.930231094, -0.366039604, 0.0261747837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1501. CFrame.new(4.81307507E-6, 1.49999106, -3.65450978E-6, 0.171444774, -0.100317284, -0.980072975, -0.0616287738, 0.991762042, -0.11229457, 0.983264267, 0.0796530023, 0.163850009) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1502. CFrame.new(1.73932612, 1.06159639, 0.141945362, -0.153680667, -0.913934886, 0.375639945, 0.659919798, -0.377877831, -0.649395287, 0.735450923, 0.148092732, 0.661196351) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1503. CFrame.new(-1.68730593, 0.429691374, -0.418232322, 0.633863091, 0.519853055, -0.57268703, -0.772902489, 0.453472316, -0.443829596, 0.028971523, 0.723958433, 0.689235032) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1504. CFrame.new(0.51381135, -1.74729896, 0.0663300753, 0.422899842, 0.615153313, -0.665388703, -0.0435856879, 0.747240186, 0.66312325, 0.905127704, -0.251433372, 0.342819571) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1505. CFrame.new(-0.991570175, -1.5009346, -0.1830419, 0.415304065, 0.586875141, -0.695054054, -0.166150108, 0.800146103, 0.576333642, 0.894380629, -0.123870395, 0.429813296) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1506. }, 0.3, false)
  1507. end
  1508. if Grab == true then
  1509. for i = 1, 5 do
  1510. for i = 0, 1, 0.35 do
  1511. swait()
  1512. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 13, -6), 0.3)
  1513. PlayAnimationFromTable({
  1514. CFrame.new(-0.0701122433, -0.336599797, -0.467321932, 0.694850504, -0.140219957, -0.70535183, 0.704946458, 0.326802045, 0.629484713, 0.142244101, -0.934633017, 0.325926095) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1515. CFrame.new(-3.05473804E-6, 1.49998987, 8.94069672E-7, 0.707109332, 0.122785509, 0.696362555, 1.49011612E-6, 0.984807491, -0.173649877, -0.707104206, 0.122789055, 0.696367502) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1516. CFrame.new(1.23286271, 0.549701929, -0.640782475, 0.740093768, 0.612683415, 0.277277708, 0.0735714883, 0.336068332, -0.938959956, -0.668469429, 0.715318501, 0.203645304) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1517. CFrame.new(-1.63418663, 0.202915072, -0.0286649466, 0.865367413, 0.490698665, 0.101754986, -0.445756227, 0.846484005, -0.291146517, -0.228999093, 0.206590697, 0.951251805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1518. CFrame.new(0.702593744, -1.71321297, 0.369734973, 0.965928972, -0.148447216, 0.212003857, 1.10641122E-6, 0.819153726, 0.573574424, -0.258809477, -0.554031372, 0.791244447) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1519. CFrame.new(-0.577289343, -1.34221494, -0.247686923, 0.766049445, -0.219846189, 0.604016602, 1.58697367E-6, 0.939692199, 0.342021465, -0.642781496, -0.262004316, 0.719851196) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1520. }, 0.4, false)
  1521. end
  1522. for i = 0, 1, 0.3 do
  1523. swait()
  1524. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -6), 0.3)
  1525. PlayAnimationFromTable({
  1526. CFrame.new(-0.170705646, -0.774955988, -0.472947001, 0.827218175, 0.130671635, 0.546475112, -0.561879098, 0.194839522, 0.803946257, -0.00142200035, -0.972091854, 0.234596446) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1527. CFrame.new(-1.76951289E-7, 1.49999058, 2.2649765E-6, 0.80180192, -0.161171481, -0.575445414, 0.176131338, 0.983905077, -0.0301590711, 0.571044207, -0.0771723837, 0.817283988) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1528. CFrame.new(1.59014189, 0.537312388, -0.263691217, 0.798337102, -0.524361372, 0.296147287, 0.455999702, 0.205153137, -0.866011977, 0.393347621, 0.826412499, 0.402889967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1529. CFrame.new(-1.41546631, 0.414666086, 0.337005794, 0.716736436, 0.581529975, 0.384852976, -0.56681174, 0.807305396, -0.164264664, -0.406218559, -0.100404784, 0.908243656) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1530. CFrame.new(0.793360233, -1.59947133, 0.0620805621, 0.876221955, -0.148448378, -0.458477885, 0.368687749, 0.81915307, 0.439383447, 0.310339272, -0.55403173, 0.772486985) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1531. CFrame.new(-0.535338402, -1.81867206, 0.817932665, 0.829598367, 0.11430642, -0.546535134, 0.32139504, 0.702652454, 0.634810925, 0.456587166, -0.702291727, 0.546181798) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1532. }, 0.7, false)
  1533. end
  1534. local hit, pos = rayCast(HitboxR.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1535. if hit ~= nil then
  1536. MagnitudeDamage(HitboxR, 5, 10, 30, 0, "Normal", "610359515", 1.3)
  1537. Effects.Block.Create(BrickColor.new("Light reddish violet"), CFrame.new(pos), 1, 1, 1, 0.7, 0.7, 0.7, 0.09, 1)
  1538. Effects.Wave.Create(BrickColor.new("Light reddish violet"), CFrame.new(pos), 1, 1, 1, 0.7, 0.7, 0.7, 0.09)
  1539. Effects.Sphere.Create(BrickColor.new("Light reddish violet"), CFrame.new(pos), 3, 3, 3, 5, 5, 5, 0.09)
  1540. end
  1541. end
  1542. end
  1543. for i, v in pairs(RightArm:GetChildren()) do
  1544. if v.Name == "asd" and v:IsA("Weld") then
  1545. v:Remove()
  1546. end
  1547. end
  1548. Grab = false
  1549. con1:disconnect()
  1550. attack = false
  1551. end
  1552. local IsWearingArmor = false
  1553. function Armor(Mode)
  1554. attack = true
  1555. if IsWearingArmor == false and Mode == "On" then
  1556. IsWearingArmor = true
  1557. Disappear()
  1558. swait(10)
  1559. ReappearArmorOnly()
  1560. Character.Humanoid.MaxHealth = 500
  1561. Character.Humanoid.Health = 500
  1562. AHandleRWeld.Part0 = Character["Right Arm"]
  1563. AHandleLWeld.Part0 = Character["Left Arm"]
  1564. for i, v in pairs(AdvancingFortress:GetChildren()) do
  1565. if v:IsA("BasePart") then
  1566. v.Transparency = 1
  1567. end
  1568. end
  1569. for i, v in pairs(Character:GetChildren()) do
  1570. if v:IsA("Accessory") then
  1571. v.Handle.Transparency = 1
  1572. end
  1573. end
  1574. elseif IsWearingArmor == true and Mode == "Off" then
  1575. IsWearingArmor = false
  1576. DisappearArmorOnly()
  1577. for i, v in pairs(Character:GetChildren()) do
  1578. if v:IsA("Accessory") then
  1579. v.Handle.Transparency = 0
  1580. end
  1581. end
  1582. swait(10)
  1583. Reappear()
  1584. Character.Humanoid.MaxHealth = 100
  1585. Character.Humanoid.Health = 100
  1586.  
  1587. AHandleRWeld.Part0 = RightArm
  1588. AHandleLWeld.Part0 = LeftArm
  1589.  
  1590. for i, v in pairs(AdvancingFortress:GetChildren()) do
  1591. if v:IsA("BasePart") then
  1592. v.Transparency = 0
  1593. end
  1594. end
  1595. end
  1596. attack = false
  1597. end
  1598. local ShieldMode = false
  1599. local ShieldCharge = false
  1600. function HoloHexShield()
  1601. attack = true
  1602. Shield.Parent = m
  1603. Shield.CanCollide = true
  1604. if ShieldMode == true then
  1605. while ShieldMode == true do
  1606. swait()
  1607. Effects.Elec.Create(Shield.CFrame, 6, 6, 6)
  1608. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  1609. PlayAnimationFromTable({
  1610. CFrame.new(-1.35600567E-6, -0.00759640103, -0.0868249983, 0.499999046, -1.78813579E-7, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1611. CFrame.new(1.49011612E-7, 1.4999963, -2.08616257E-7, 0.499999046, 0.0754797831, 0.862731695, -1.78813579E-7, 0.996196151, -0.0871563852, -0.866026044, 0.0435779616, 0.498097092) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1612. CFrame.new(1.50238657, 0.320674658, 0.252193451, 0.855209947, -0.376432747, -0.356249839, 0.469514668, 0.853786647, 0.224954769, 0.219480619, -0.35964793, 0.906907678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1613. CFrame.new(-0.944740474, 0.689363539, -0.718644142, 0.836517215, -0.545084715, 0.0558781698, -0.258834839, -0.482974619, -0.836504936, 0.482953727, 0.685287297, -0.545103252) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1614. CFrame.new(0.61525929, -1.85127568, 0.120779425, 0.928754449, -0.162676111, 0.333104134, 0.0394990072, 0.93689239, 0.347407103, -0.368597984, -0.309496939, 0.876555264) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1615. CFrame.new(-0.849455297, -1.60697818, -0.270956695, 0.696359396, -0.136922374, 0.704511464, -0.122786656, 0.944430828, 0.30491665, -0.707112312, -0.298836082, 0.640850842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1616. }, 0.3, false)
  1617. end
  1618. end
  1619. Shield.CanCollide = false
  1620. CFuncs.Sound.Create("200632211", HitboxR, 1, 0.8)
  1621. CFuncs.Sound.Create("200632875", HitboxR, 1, 0.9)
  1622. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 160
  1623. Effects.Wave.Create(BrickColor.new("Light reddish violet"), RootPart.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.06)
  1624. for i = 0, 1, 0.05 do
  1625. swait()
  1626. MagnitudeDamage(Shield, 5, 10, 15, 20, "Normal", "610359515", 1.3)
  1627. Effects.Elec.Create(Shield.CFrame, 6, 6, 6)
  1628. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -3), 1)
  1629. PlayAnimationFromTable({
  1630. CFrame.new(8.64267349E-7, -0.183445007, -0.748600185, 0.499999046, -1.19209105E-7, -0.866026044, 0.496732056, 0.819152176, 0.28678751, 0.709407032, -0.573576331, 0.409575343) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1631. CFrame.new(-7.15255737E-7, 1.50001967, -6.2584877E-7, 0.499999046, 0.36600244, 0.784893453, -1.19209105E-7, 0.90631634, -0.42262283, -0.866026044, 0.211310923, 0.453157306) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1632. CFrame.new(1.76569033, 0.610707581, 0.171269983, 0.658267856, -0.680293143, -0.322312057, 0.725086272, 0.457917482, 0.514355659, -0.202320263, -0.572288036, 0.794703186) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1633. CFrame.new(-1.07552779, 1.01543474, -0.975205183, 0.645357251, -0.653341353, -0.39580214, -0.64124006, -0.181770697, -0.745500326, 0.4151209, 0.734918237, -0.536255598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1634. CFrame.new(0.630614281, -1.76328135, 0.440194428, 0.866077662, -0.24334389, 0.436684549, -0.0614839792, 0.815044224, 0.57612747, -0.496114343, -0.525820255, 0.69092983) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1635. CFrame.new(-0.857700765, -1.25810766, -0.239681423, 0.499215126, -0.257185757, 0.827429712, -0.238765404, 0.877132356, 0.416689515, -0.832931936, -0.405579239, 0.376470625) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1636. }, 0.5, false)
  1637. end
  1638. Shield.Parent = nil
  1639. attack = false
  1640. end
  1641. Mouse.Button1Down:connect(function()
  1642. if attack == false and attacktype == 1 then
  1643. attacktype = 2
  1644. attackone()
  1645. elseif attack == false and attacktype == 2 then
  1646. attacktype = 1
  1647. attacktwo()
  1648. end
  1649. end)
  1650. game.Lighting.Outlines = false
  1651. function attackone()
  1652. attack = true
  1653. for i = 0, 1, 0.12 do
  1654. swait()
  1655. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  1656. PlayAnimationFromTable({
  1657. CFrame.new(1.51857734E-4, -0.310488015, -0.087417841, 0.707106054, 5.26835073E-8, -0.707107484, 0.122787014, 0.984807968, 0.122786865, 0.696365058, -0.173646957, 0.696363688) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1658. CFrame.new(0.101928703, 1.50244772, -0.0383823365, 0.76589334, 0.0762532279, 0.638430059, -0.0196644422, 0.995256186, -0.095281601, -0.642666996, 0.0604211651, 0.763759375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1659. CFrame.new(1.01774633, 0.557527065, -0.776187301, 0.541353703, 0.741649806, 0.396095604, 0.711713314, -0.153383806, -0.685520053, -0.447661191, 0.653015316, -0.610876858) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1660. CFrame.new(-1.07208586, 0.264054269, -0.716768324, 0.529938459, -0.260122895, -0.807156265, -0.752277017, 0.295165181, -0.589030504, 0.39146477, 0.919355154, -0.039265126) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1661. CFrame.new(0.81415844, -1.89738977, 0.144144416, 0.866025925, -0.171008825, 0.469845951, -1.40815973E-6, 0.939692497, 0.342020512, -0.499999285, -0.296199232, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1662. CFrame.new(-0.818738878, -1.59999573, -0.397991776, 0.642786622, 0.0667650178, 0.763130188, 4.3399632E-7, 0.99619472, -0.0871558338, -0.766045213, 0.0560229495, 0.640340626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1663. }, 0.3, false)
  1664. end
  1665. MagnitudeDamage(HitboxR, 7, 10, 15, math.random(1, 3), "Normal", "260430079", 1)
  1666. CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
  1667. RootPart.Velocity = RootPart.CFrame.lookVector * 40
  1668. for i = 0, 1, 0.11 do
  1669. swait()
  1670. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  1671. PlayAnimationFromTable({
  1672. CFrame.new(0.31380862, -0.320521832, 0.0252371654, 0.249517962, -0.150383011, 0.956622124, -0.0458769947, 0.984923244, 0.166798219, -0.967282891, -0.0855060965, 0.238856897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1673. CFrame.new(0.101926193, 1.50244832, -0.0383800864, 0.337979913, 0.0762555003, -0.938059092, -0.0828148723, 0.995255768, 0.051067099, 0.937502801, 0.0604255944, 0.342691481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1674. CFrame.new(1.96121001, 0.774859428, -0.462411612, 0.340120375, -0.92077136, 0.191045195, 0.466549307, -0.0111669078, -0.884424806, 0.816486418, 0.389942825, 0.42578721) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1675. CFrame.new(-1.36170578, 0.526111126, -0.597925961, 0.81348151, -0.212761745, -0.541276693, -0.539894938, 0.0697831511, -0.838834763, 0.216243982, 0.974609077, -0.0581016839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1676. CFrame.new(0.970680714, -1.68610644, -0.0975568295, 0.579166114, -0.127570763, -0.805166125, 0.110368893, 0.990856647, -0.0776019096, 0.807703912, -0.0439208932, 0.587950349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1677. CFrame.new(-0.827146292, -1.8113209, -0.0556658059, 0.816036701, 0.217413262, -0.535551846, -0.0871567726, 0.962250471, 0.257832885, 0.571391284, -0.163724124, 0.804180741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1678. }, 0.45, false)
  1679. end
  1680. attack = false
  1681. end
  1682. function attacktwo()
  1683. attack = true
  1684. for i = 0, 1, 0.12 do
  1685. swait()
  1686. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  1687. PlayAnimationFromTable({
  1688. CFrame.new(-0.0382043272, -0.447743475, -0.209081307, 0.653245032, -0.0733856931, 0.753581822, -0.271655023, 0.906307638, 0.323743671, -0.706735075, -0.416198224, 0.572105408) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1689. CFrame.new(-2.74181366E-6, 1.49999321, -3.4570694E-6, 0.707105815, -0.183012873, -0.683013678, -8.7171793E-7, 0.965925694, -0.258819759, 0.707107782, 0.183013588, 0.683011472) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1690. CFrame.new(1.65075588, 0.743636727, -0.356577665, 0.542998552, -0.115416825, 0.831764221, 0.839699984, 0.0834951103, -0.536593378, -0.00751632452, 0.989801884, 0.142253295) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1691. CFrame.new(-1.08620656, -0.00580590963, -0.864283919, 0.656464815, -0.698875248, 0.283949524, 0.478162557, 0.0943745971, -0.873186052, 0.583450615, 0.708990037, 0.396129608) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1692. CFrame.new(0.856426239, -1.40340364, -0.356423855, 0.707105279, -0.122788861, -0.696365654, 9.42498446E-7, 0.98480767, -0.173648372, 0.707108438, 0.122787014, 0.696362913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1693. CFrame.new(-0.695387185, -1.90375674, -0.304245114, 0.92541647, 0.246137589, -0.288133472, -0.173648298, 0.951251149, 0.254887551, 0.336824656, -0.185843274, 0.923044682) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1694. }, 0.34, false)
  1695. end
  1696. MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1, 3), "Normal", "260430079", 1.1)
  1697. CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
  1698. RootPart.Velocity = RootPart.CFrame.lookVector * 40
  1699. for i = 0, 1, 0.12 do
  1700. swait()
  1701. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  1702. PlayAnimationFromTable({
  1703. CFrame.new(-0.479634404, -0.393727064, -0.220339894, 0.248309121, 0.219825819, -0.94340837, 0.019257009, 0.972597659, 0.231695861, 0.968489468, -0.0756994039, 0.237271711) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1704. CFrame.new(-4.01586294E-6, 1.4999907, -1.59628689E-6, 0.237956509, -0.0991817266, 0.966198623, 0.22414881, 0.973527908, 0.0447304621, -0.945057809, 0.205928385, 0.253888786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1705. CFrame.new(1.08192515, 0.657660127, -1.1749661, 0.228772208, 0.493058115, 0.839379132, 0.874719322, 0.27430138, -0.399530977, -0.427234828, 0.825622678, -0.368534833) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1706. CFrame.new(-1.23054802, 1.29996836, -0.754827142, 0.94838953, -0.316170156, 0.0243683457, -0.269034386, -0.84291333, -0.465958893, 0.167862713, 0.43535465, -0.88447094) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1707. CFrame.new(0.839919031, -1.81287205, 0.0102108568, 0.808574855, -0.267538428, 0.524051666, 0.171010748, 0.95905602, 0.22575888, -0.562994003, -0.0929245204, 0.821220458) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1708. CFrame.new(-0.846072078, -1.7213496, -0.247524291, 0.693717241, 0.0689389557, 0.716940701, -0.0478171073, 0.997620881, -0.0496601462, -0.718658566, 1.68083934E-4, 0.695363283) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1709. }, 0.45, false)
  1710. end
  1711. attack = false
  1712. end
  1713. function findNearestTorso(pos)
  1714. local list = game.Workspace:children()
  1715. local torso
  1716. local dist = 1000
  1717. local temp, human, temp2
  1718. for x = 1, #list do
  1719. temp2 = list[x]
  1720. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1721. temp = temp2:findFirstChild("Torso")
  1722. human = temp2:findFirstChild("Humanoid")
  1723. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  1724. local dohit = true
  1725. if dohit == true then
  1726. torso = temp
  1727. dist = (temp.Position - pos).magnitude
  1728. end
  1729. end
  1730. end
  1731. end
  1732. return torso, dist
  1733. end
  1734. function TrueAim(aim)
  1735. local target, distance = findNearestTorso(Mouse.Hit.p)
  1736. local tehcf = HitboxR.CFrame * CFrame.fromEulerAnglesXYZ(1.57, 0, 0).lookVector
  1737. if aim ~= nil then
  1738. tehcf = aim
  1739. end
  1740. table.insert(Effects, {
  1741. tehcf,
  1742. "Shoot",
  1743. 30,
  1744. HitboxR.Position,
  1745. 10,
  1746. 15,
  1747. 0,
  1748. 3,
  1749. HitboxR,
  1750. target
  1751. })
  1752. end
  1753. function FireProjectiles()
  1754. attack = true
  1755. Humanoid.WalkSpeed = 20
  1756. CFuncs.Sound.Create("300915902", HitboxR, 1, 0.8)
  1757. for i = 0, 1, 0.1 do
  1758. swait()
  1759. Effects.Elec.Create(HitboxR.CFrame, 2, 2, 2)
  1760. PlayAnimationFromTable({
  1761. CFrame.new(0, -0.100000001, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1762. CFrame.new(0, 1.49999201, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1763. CFrame.new(0.874554753, 1.14087927, -1.06730831, -0.166365892, 0.198266983, 0.965925813, 0.797995508, -0.548363924, 0.250000268, 0.579245627, 0.812396049, -0.0669871047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1764. CFrame.new(-0.257126778, 1.24225974, -0.962940335, 0.692363203, -0.593008757, -0.411064416, -0.708803177, -0.665577948, -0.233675212, -0.135024026, 0.453151852, -0.88114804) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1765. CFrame.new(0.604643881, -1.9909004, 0.0280392915, 0.962250233, -0.0841861367, -0.258818984, 0.0871560201, 0.996194661, 4.23252061E-7, 0.257834047, -0.0225580372, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1766. CFrame.new(-0.604644895, -1.99090064, 0.0280393362, 0.962250233, 0.0841861367, 0.258818984, -0.0871560201, 0.996194661, 4.23252061E-7, -0.257834047, -0.0225580372, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1767. }, 0.3, false)
  1768. end
  1769. for i = 0, 1, 0.1 do
  1770. swait()
  1771. Effects.Elec.Create(HitboxR.CFrame, 3, 3, 3)
  1772. Effects.Block.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 1, 1, 1, 0.1)
  1773. Effects.Sphere2.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 1, 1, 1, 0.1)
  1774. PlayAnimationFromTable({
  1775. CFrame.new(0, -0.100000001, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1776. CFrame.new(0, 1.49999201, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1777. CFrame.new(0.661153734, 0.568759024, -0.827975571, -0.166752055, 0.025078943, 0.985679924, 0.98324734, -0.0704026297, 0.168131784, 0.0736110285, 0.99720335, -0.012919019) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1778. CFrame.new(-0.390097797, 0.861622274, -0.554995477, 0.351840883, -0.837056041, -0.418981194, -0.935129642, -0.294365793, -0.197183579, 0.0417199843, 0.461178988, -0.886325777) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1779. CFrame.new(0.604644954, -1.9909004, 0.0280390829, 0.962250233, -0.0841861367, -0.258818984, 0.0871560201, 0.996194661, 4.23252061E-7, 0.257834047, -0.0225580372, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1780. CFrame.new(-0.604644775, -1.99090064, 0.0280380547, 0.962250233, 0.0841861367, 0.258818984, -0.0871560201, 0.996194661, 4.23252061E-7, -0.257834047, -0.0225580372, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1781. }, 0.2, false)
  1782. end
  1783. for i = 1, 10 do
  1784. for i = 0, 1, 0.3 do
  1785. swait()
  1786. Effects.Elec.Create(HitboxR.CFrame, 3, 3, 3)
  1787. Effects.Sphere2.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 1, 1, 1, 0.1)
  1788. PlayAnimationFromTable({
  1789. CFrame.new(0, -0.100000001, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1790. CFrame.new(0, 1.49999201, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1791. CFrame.new(0.661153734, 0.568759024, -0.827975571, -0.166752055, 0.025078943, 0.985679924, 0.98324734, -0.0704026297, 0.168131784, 0.0736110285, 0.99720335, -0.012919019) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1792. CFrame.new(-0.390097797, 0.861622274, -0.554995477, 0.351840883, -0.837056041, -0.418981194, -0.935129642, -0.294365793, -0.197183579, 0.0417199843, 0.461178988, -0.886325777) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1793. CFrame.new(0.604644954, -1.9909004, 0.0280390829, 0.962250233, -0.0841861367, -0.258818984, 0.0871560201, 0.996194661, 4.23252061E-7, 0.257834047, -0.0225580372, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1794. CFrame.new(-0.604644775, -1.99090064, 0.0280380547, 0.962250233, 0.0841861367, 0.258818984, -0.0871560201, 0.996194661, 4.23252061E-7, -0.257834047, -0.0225580372, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1795. }, 0.3, false)
  1796. end
  1797. CFuncs.Sound.Create("300916105", HitboxR, 1, 1.2)
  1798. CFuncs.Sound.Create("300916014", HitboxR, 1, 1)
  1799. Effects.Sphere2.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 2, 2, 2, 0.07)
  1800. local MouseLook = CFrame.new((HitboxR.Position + Mouse.Hit.p) / 2, Mouse.Hit.p)
  1801. TrueAim(MouseLook.lookVector)
  1802. for i = 0, 1, 0.3 do
  1803. swait()
  1804. Effects.Elec.Create(HitboxR.CFrame, 3, 3, 3)
  1805. Effects.Sphere2.Create(BrickColor.new("Light reddish violet"), HitboxR.CFrame, 1, 1, 1, 1, 1, 1, 0.1)
  1806. PlayAnimationFromTable({
  1807. CFrame.new(1.90734863E-6, -0.25291419, 0.238341585, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1808. CFrame.new(0, 1.49999189, -1.1920929E-6, 1, 0, 0, 0, 0.98480767, 0.173648626, 0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1809. CFrame.new(0.689965963, 0.767623663, -0.856841147, -0.544456005, 0.160545677, 0.823281765, 0.798456132, -0.201499581, 0.567332089, 0.256973624, 0.966241658, -0.0184810348) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1810. CFrame.new(-0.392649293, 0.920519292, -0.977094412, 0.403439909, -0.887421727, -0.222977459, -0.91384387, -0.378501445, -0.147058249, 0.0461054072, 0.263095737, -0.963667512) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1811. CFrame.new(0.598512471, -1.89166105, 0.0173719227, 0.962250233, -0.061308533, -0.265171409, 0.0871564373, 0.992403805, 0.0868248865, 0.257834017, -0.106658652, 0.960284173) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1812. CFrame.new(-0.598512232, -1.89166129, 0.0173728764, 0.962250233, 0.061308533, 0.265171409, -0.0871564373, 0.992403805, 0.0868248865, -0.257834017, -0.106658652, 0.960284173) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1813. }, 0.3, false)
  1814. end
  1815. end
  1816. Humanoid.WalkSpeed = 20
  1817. attack = false
  1818. end
  1819. SHRA=false
  1820.  
  1821. Check=false
  1822. Mouse.KeyDown:connect(function(k)
  1823. k=k:byte()
  1824. if k==48 then
  1825. for _,v in pairs(Character:GetChildren()) do
  1826. if v.className=='Tool' then
  1827. h=Instance.new('Explosion',Character)
  1828. h.BlastPressure=0
  1829. h.Position=v.Handle.Position
  1830. v:remove()
  1831. end
  1832. end
  1833. end
  1834. end)
  1835.  
  1836.  
  1837. savepoints=Instance.new("Folder",Character)
  1838. hand=true -- collect hands
  1839. Mouse.KeyDown:connect(function(k)
  1840. k = k:lower()
  1841. if k=='e' then
  1842. CFuncs.Sound.Create(920181099,Torso,5,1)--756352322
  1843. v=Bitten
  1844. if v~=nil then
  1845. h=Instance.new('Explosion',v.Parent)
  1846. h.BlastPressure=0
  1847. h.Position=v.Parent.HumanoidRootPart.Position
  1848. v.Health=v.Health-50 -- damage
  1849. if v.Health==0 and hand==true then
  1850. hand=false
  1851. g=workspace:findFirstChild(v.Parent.Name.."'s hand")
  1852. if g~=nil and g:IsA('Part') then
  1853.  
  1854. else
  1855. G=Instance.new('Part')
  1856. G.CFrame=v.Parent.HumanoidRootPart.CFrame*CFrame.new(0,1,0)
  1857. G.Name=v.Parent.Name.."'s hand"
  1858. G.Parent=workspace
  1859. G.BrickColor=v.Parent['Left Arm'].BrickColor
  1860. G.Size=Vector3.new(2,2,1)
  1861. int=Instance.new('StringValue',G)
  1862. int.Name='A Hand For a Stand'
  1863. int.Value=v.Parent.Name
  1864. M=Instance.new('FileMesh')
  1865. M.Parent=G
  1866. M.Scale=Vector3.new(.5,.5,.5)
  1867. M.MeshId='http://www.roblox.com/asset/?id=32054761'
  1868. cc=Instance.new('ClickDetector',G)
  1869. cc.MouseHoverEnter:connect(function(h)
  1870. if h==Player then
  1871. hand=true
  1872. Tool=Instance.new('Tool',Player.Backpack)
  1873. Tool.Name='Hand'
  1874. Tool.GripPos=Vector3.new(0,0.5,0)
  1875. Tool.GripRight=Vector3.new(-1,0,0)
  1876. Tool.GripUp=Vector3.new(0,0,1)
  1877. Tool.GripForward=Vector3.new(0,-1,0)
  1878. Tool.CanBeDropped=false
  1879. Tool.Name=int.Value.."'s hand"
  1880. Part=Instance.new('Part',Tool)
  1881. Part.BrickColor=cc.Parent.BrickColor
  1882. Part.Name='Handle'
  1883. meko=Instance.new('FileMesh',Part)
  1884. meko.Scale=Vector3.new(.3,.3,.3)
  1885. meko.MeshId='http://www.roblox.com/asset/?id=32054761'
  1886. cc.Parent:remove()
  1887. end
  1888. end)
  1889. end
  1890. end
  1891. end
  1892. Bitten=nil
  1893.  
  1894. elseif k=='y' then-- BITES THE DUST
  1895. CFuncs.Sound.Create(756352322,Torso,10,1)--756352322
  1896. v=Bitten
  1897. if v~=nil then
  1898. -- get player positions n' stuff
  1899. for _,v in pairs(workspace:GetChildren()) do
  1900. y=v:findFirstChild('HumanoidRootPart')
  1901. if v~=Character and y~=nil and v:IsA('Model') then
  1902. j=y:clone()
  1903. j.Name=v.Name
  1904. j.CanCollide=false
  1905. j.Parent=savepoints
  1906. j.Anchored=true
  1907. j.CFrame=y.CFrame
  1908. end
  1909. end
  1910.  
  1911. wait(1)
  1912. CFuncs.Sound.Create(920181099,Torso,10,1)--756352322
  1913. CFuncs.Sound.Create(919941001,v.Parent.Torso,10,1)--756352322
  1914. for _,g in pairs(savepoints:GetChildren()) do
  1915. tar=workspace:findFirstChild(g.Name)
  1916. if tar~=nil then
  1917. tar.HumanoidRootPart.CFrame= g.CFrame
  1918. g:remove()
  1919. end
  1920. end
  1921. h=Instance.new('Explosion',v.Parent)
  1922. h.BlastPressure=0
  1923. h.Position=v.Parent.HumanoidRootPart.Position
  1924. v.Parent:BreakJoints()
  1925. if v.Health==0 and hand==true then
  1926. hand=false
  1927. g=workspace:findFirstChild(v.Parent.Name.."'s hand")
  1928. if g~=nil and g:IsA('Part') then
  1929.  
  1930. else
  1931. G=Instance.new('Part')
  1932. G.CFrame=v.Parent.HumanoidRootPart.CFrame*CFrame.new(0,1,0)
  1933. G.Name=v.Parent.Name.."'s hand"
  1934. G.Parent=workspace
  1935. G.BrickColor=v.Parent['Left Arm'].BrickColor
  1936. G.Size=Vector3.new(2,2,1)
  1937. int=Instance.new('StringValue',G)
  1938. int.Name='A Hand For a Stand'
  1939. int.Value=v.Parent.Name
  1940. M=Instance.new('FileMesh')
  1941. M.Parent=G
  1942. M.Scale=Vector3.new(.5,.5,.5)
  1943. M.MeshId='http://www.roblox.com/asset/?id=32054761'
  1944. cc=Instance.new('ClickDetector',G)
  1945. cc.MouseHoverEnter:connect(function(h)
  1946. if h==Player then
  1947. hand=true
  1948. Tool=Instance.new('Tool',Player.Backpack)
  1949. Tool.Name='Hand'
  1950. Tool.GripPos=Vector3.new(0,0.5,0)
  1951. Tool.GripRight=Vector3.new(-1,0,0)
  1952. Tool.GripUp=Vector3.new(0,0,1)
  1953. Tool.GripForward=Vector3.new(0,-1,0)
  1954. Tool.CanBeDropped=false
  1955. Tool.Name=int.Value.."'s hand"
  1956. Part=Instance.new('Part',Tool)
  1957. Part.BrickColor=cc.Parent.BrickColor
  1958. Part.Name='Handle'
  1959. meko=Instance.new('FileMesh',Part)
  1960. meko.Scale=Vector3.new(.3,.3,.3)
  1961. meko.MeshId='http://www.roblox.com/asset/?id=32054761'
  1962. cc.Parent:remove()
  1963. end
  1964. end)
  1965. end
  1966. end
  1967. end
  1968. Bitten=nil
  1969. end
  1970.  
  1971. if k=='r' then
  1972. if lknives==false then
  1973. lknives=true
  1974. Chat('Enabled')
  1975. else lknives=false Chat('Disabled')
  1976.  
  1977. end
  1978. elseif k=='t' then
  1979. for _,v in pairs(Character:GetChildren()) do
  1980. if v.Name=='Sheer Heart Attack' then
  1981. h=Instance.new('Explosion',Character)
  1982. h.BlastPressure=0
  1983. h.Position=v.Position
  1984. h.BlastRadius=15
  1985. v:remove()
  1986. SHRA=false
  1987. end
  1988. end
  1989. end
  1990. -- if k=='e' then
  1991. -- Character.Torso.CFrame=Mouse.Hit*CFrame.new(0,2,0)
  1992. -- J=Instance.new('Sound',Torso)
  1993. -- J.SoundId='rbxassetid://1228181736'
  1994. -- J.Volume=2
  1995. -- J:play()
  1996. -- end
  1997. if attack == false and ora == false and k == "z" and IsWearingArmor == false and Invisible == false then
  1998. ora = true
  1999. ORA()
  2000. elseif attack == false and k == "x" and IsWearingArmor == false and Invisible == false then
  2001. GRABEMBOIGRABEM()
  2002. elseif k == "q" then
  2003. -- FireProjectiles()--thats lame
  2004. if changeidle==1 then
  2005. changeidle=2
  2006. else changeidle=1
  2007. end
  2008. elseif k=='g' and not attack and not taunt then
  2009. attack=true
  2010. taunt=true
  2011. tfk=CFuncs.Sound.Create(846221985, Torso, 1.5, 1)
  2012. wait(2)
  2013. attack=false
  2014. taunt=false
  2015.  
  2016. elseif attack == false and k == "f" and Invisible == false and IsWearingArmor == false then
  2017. Invisible = true
  2018. Effects.Sphere.Create(BrickColor.new("Light reddish violet"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2019. Effects.Block.Create(BrickColor.new("Light reddish violet"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.1, 1)
  2020. Disappear()
  2021. elseif attack == false and k == "f" and Invisible == true and IsWearingArmor == false then
  2022. Invisible = false
  2023. Effects.Sphere.Create(BrickColor.new("Light reddish violet"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.08)
  2024.  
  2025. for i = 1, 2 do
  2026. Effects.Block.Create(BrickColor.new("Light reddish violet"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.1, 1)
  2027. end
  2028. for i = 1, 20 do
  2029. Effects.Break.Create(BrickColor.new("Light reddish violet"), Torso.CFrame, 1, 1, 1)
  2030. end
  2031. Reappear()
  2032. G=Instance.new('Sound',Torso)
  2033. G.Name='FLEF'
  2034. G.SoundId='rbxassetid://142716851'
  2035. G.Volume=3
  2036. G:Play()
  2037. elseif attack == false and ShieldMode == false and k == "c" and IsWearingArmor == false and Invisible == false then
  2038. ShieldMode = true
  2039. HoloHexShield()
  2040. elseif attack == false and k == "v" and IsWearingArmor == false and Invisible == false then
  2041. CastleCrusherFist()
  2042. end
  2043. if k == "[" and IsWearingArmor == false and Invisible == false then
  2044. Armor("On")
  2045. end
  2046. if k == "]" and IsWearingArmor == true and Invisible == false then
  2047. Armor("Off")
  2048. end
  2049.  
  2050. end)
  2051. Mouse.KeyUp:connect(function(k)
  2052. k = k:lower()
  2053. if attack == true and ora == true and k == "z" and IsWearingArmor == false then
  2054. ora = false
  2055. elseif attack == true and ShieldMode == true and k == "c" and IsWearingArmor == false then
  2056. ShieldMode = false
  2057. end
  2058. end)
  2059. -- coroutine.resume(coroutine.create(function(Part, Part2)
  2060. -- while Part.Parent ~= nil do
  2061. -- swait(math.random(100, 150))
  2062. -- for i = 0, 1, 0.2 do
  2063. -- wait()
  2064. -- Eye1.Mesh.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  2065. -- Eye2.Mesh.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  2066. -- end
  2067. -- for i = 0, 1, 0.2 do
  2068. -- swait()
  2069. -- Eye1.Mesh.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  2070. -- Eye2.Mesh.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  2071. -- end
  2072. -- end
  2073. -- end), Eye1, Eye2)
  2074. tfk=CFuncs.Sound.Create(1265445941, Torso, 1.5, 1)
  2075. tfk.Name='THEME'
  2076. tfk.Looped=true
  2077. changeidle=1
  2078. for _,v in pairs(m:GetChildren()) do
  2079. if m:IsA('Part') then
  2080. m.BrickColor=BrickColor.new('Really black')
  2081. end
  2082. end
  2083. Character.Animate.Disabled=true
  2084. taunt=false
  2085. while true do
  2086.  
  2087. --[[ local c=table.getn(Bitten)
  2088. if c>0 and Check==true then
  2089. wait()
  2090. local c=table.getn(Bitten)
  2091. print('Checking')
  2092. for i=1, #Bitten do
  2093. print(i)
  2094. table.remove(Bitten,i)
  2095. end
  2096. end--]]
  2097. --sound stopping instance
  2098. for _,v in pairs(Torso:GetChildren()) do
  2099. if v.Name=='FLEF' and v.TimePosition>2.5 then
  2100. v:remove()
  2101. end
  2102. end
  2103. swait()
  2104. for i, v in pairs(Character:children()) do
  2105. if v:IsA("Part") and IsWearingArmor == true then
  2106. v.Anchored = false
  2107. end
  2108. end
  2109. for i, v in pairs(AdvancingFortress:GetChildren()) do
  2110. if v:IsA("Part") then
  2111. v.Material = "SmoothPlastic"
  2112. v.CanCollide = false
  2113. elseif v:IsA("Humanoid") then
  2114. v:remove()
  2115. elseif v:IsA("Accessory") then
  2116. v:remove()
  2117. elseif v:IsA("Shirt") then
  2118. v:remove()
  2119. elseif v:IsA("Pants") then
  2120. v:remove()
  2121. elseif v:IsA("Script") or v:IsA("LocalScript") then
  2122. v:remove()
  2123. elseif v:IsA("BodyColors") then
  2124. v:remove()
  2125. end
  2126. end
  2127.  
  2128. if attack and taunt then -- taunt anim
  2129. Anim='Taunt'
  2130. PlayAnimationFromTable({
  2131. CFrame.new(0,0,0) * CFrame.new(0, -.5+math.cos(sine/2)/5, 0) * CFrame.Angles(0, -1, 0),
  2132. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0+math.cos(sine/1)/2.5, 1+math.cos(sine/2)/5, .5+math.cos(sine/2)/5),
  2133. CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(3, 0, 2.5),
  2134. CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(3, 0,-2),
  2135. CFrame.new(.5,-2,0) * CFrame.new(0.3, 0.4-math.cos(sine/2)/5, -0.5) * CFrame.Angles(0, 0, 0.3),
  2136. CFrame.new(-.5,-2,0) * CFrame.new(-0.3, 0.4-math.cos(sine/2)/5, -0.5) * CFrame.Angles(-0, 0, -0.3)
  2137. }, 0.3, false)
  2138. end
  2139. --[[ AHandleR.Transparency = 1
  2140. AHandleL.Transparency = 1
  2141. RootPart.Transparency = 1
  2142. HitboxR.Transparency = 1
  2143. HitboxL.Transparency = 1--]]
  2144. Head.BrickColor = BrickColor.new("Pastel brown")
  2145. Torso.BrickColor = BrickColor.new("Pastel brown")
  2146. RightArm.BrickColor = BrickColor.new("Pastel brown")
  2147. LeftArm.BrickColor = BrickColor.new("Pastel brown")
  2148. RightLeg.BrickColor = BrickColor.new("Pastel brown")
  2149. LeftLeg.BrickColor = BrickColor.new("Pastel brown")
  2150. RootPart.Anchored = false
  2151. Torsovelocity = (Character.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2152. velocity = Character.HumanoidRootPart.Velocity.y
  2153. sine = sine + change
  2154. Shield.Anchored = true
  2155. Shield.CFrame = Shield.CFrame:lerp(RootPart.CFrame * CFrame.new(0, 0, -3.2), 1)
  2156. local hit, pos = rayCast(Character.HumanoidRootPart.Position, CFrame.new(Character.HumanoidRootPart.Position, Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2157. if Character.HumanoidRootPart.Velocity.y > 1 and hit == nil then
  2158. Anim = "Jump"
  2159. if attack == false then
  2160. -- RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(-2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2161. PlayAnimationFromTable({
  2162. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(.5, -1, 0),
  2163. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(1, 1, 0),
  2164. CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 1),
  2165. CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1),
  2166. CFrame.new(.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2167. CFrame.new(-.5,-2,0) * CFrame.new(0, 0.5, -0.3) * CFrame.Angles(-.5, 0, 0)
  2168. }, 0.3, false)
  2169. end
  2170. elseif Character.HumanoidRootPart.Velocity.y < -1 and hit == nil then
  2171. Anim = "Fall"
  2172. if attack == false then
  2173. -- RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(-2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2174. PlayAnimationFromTable({
  2175. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(.5, 0, 0),
  2176. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(-.5, 0, 0),
  2177. CFrame.new(1.5,0,0) * CFrame.new(-1, 0, -.3) * CFrame.Angles(1.5, 0, -1.5),
  2178. CFrame.new(-1.5,0,0) * CFrame.new(1, 0, -.5) * CFrame.Angles(3, 0, 1),
  2179. CFrame.new(.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2180. CFrame.new(-.5,-2,0) * CFrame.new(0, 0.5, -0.3) * CFrame.Angles(-.5, 0, 0)
  2181. }, 0.3, false)
  2182. end
  2183. elseif Torsovelocity < 1 and hit ~= nil then
  2184. Anim = "Idle"
  2185. if changeidle==1 then
  2186. if attack == false then
  2187. change = 1
  2188. --RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(-2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2189. PlayAnimationFromTable({
  2190. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0),
  2191. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -0.5, 0),
  2192. CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.5),
  2193. CFrame.new(-1.5,0,0) * CFrame.new(0.5, -.2, 0) * CFrame.Angles(0.3, 0,0.5),
  2194. CFrame.new(.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2195. CFrame.new(-.5,-2,0) * CFrame.new(0, 0, -0) * CFrame.Angles(-0, 0, 0)
  2196. }, 0.3, false)
  2197. end
  2198. elseif changeidle==2 then
  2199. change = 1
  2200. if not attack then
  2201. -- RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(-2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2202. PlayAnimationFromTable({
  2203. CFrame.new(0,0,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2204. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2205. CFrame.new(1.5,0,0) * CFrame.new(-1.2, 0, -.3) * CFrame.Angles(1.5, 0, -1.5),
  2206. CFrame.new(-1.5,0,0) * CFrame.new(1.5, 0.3, -.5) * CFrame.Angles(3, 0, 1),
  2207. CFrame.new(.5,-2,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2208. CFrame.new(-.5,-2,0) * CFrame.new(0, 0, -0) * CFrame.Angles(-.5, 0, 0)
  2209. }, 0.3, false)
  2210. end
  2211. end
  2212. elseif Torsovelocity > 2 and hit ~= nil then
  2213. Anim = "Walk"
  2214. if attack == false then
  2215. -- RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(-2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2216. PlayAnimationFromTable({
  2217. CFrame.new(0,0,0) * CFrame.new(0, 0+math.cos(sine/4)/8, 0) * CFrame.Angles(0, 0, 0),
  2218. CFrame.new(0,1.5,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2219. CFrame.new(1.5,0,0) * CFrame.new(0, 0, 0+math.cos(sine/8)) * CFrame.Angles(0-math.cos(sine/8),0,0),
  2220. CFrame.new(-1.5,0,0) * CFrame.new(0, 0, 0-math.cos(sine/8)) * CFrame.Angles(0+math.cos(sine/8),0,0),
  2221. CFrame.new(.5,-2,0) * CFrame.new(0, 0, 0-math.cos(sine/8)) * CFrame.Angles(0+math.cos(sine/8), 0, 0),
  2222. CFrame.new(-.5,-2,0) * CFrame.new(0, 0, 0+math.cos(sine/8)) * CFrame.Angles(0-math.cos(sine/8), 0, 0)
  2223. }, 0.3, false)
  2224. end
  2225. end
  2226. if 0 < #Effects then
  2227. for e = 1, #Effects do
  2228. if Effects[e] ~= nil then
  2229. local Thing = Effects[e]
  2230. if Thing ~= nil then
  2231. local Part = Thing[1]
  2232. local Mode = Thing[2]
  2233. local Delay = Thing[3]
  2234. local IncX = Thing[4]
  2235. local IncY = Thing[5]
  2236. local IncZ = Thing[6]
  2237. if Thing[2] == "Shoot" then
  2238. local Look = Thing[1]
  2239. local move = 30
  2240. if Thing[8] == 3 then
  2241. move = 10
  2242. end
  2243. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  2244. if Thing[10] ~= nil then
  2245. da = pos
  2246. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  2247. cfa = CFrame.new(Thing[4], pos)
  2248. tehCF = cfa:lerp(cf2, 0.2)
  2249. Thing[1] = tehCF.lookVector
  2250. end
  2251. local mag = (Thing[4] - pos).magnitude
  2252. Effects.Head.Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  2253. if Thing[8] == 2 then
  2254. Effects.Ring.Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  2255. end
  2256. Thing[4] = Thing[4] + Look * move
  2257. Thing[3] = Thing[3] - 1
  2258. if 2 < Thing[5] then
  2259. Thing[5] = Thing[5] - 0.3
  2260. Thing[6] = Thing[6] - 0.3
  2261. end
  2262. if hit ~= nil then
  2263. Thing[3] = 0
  2264. if Thing[8] == 1 or Thing[8] == 3 then
  2265. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2266. elseif Thing[8] == 2 then
  2267. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2268. if hit.Parent:findFirstChild("Humanoid") ~= nil or hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  2269. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Light reddish violet"), "Reference", Vector3.new())
  2270. ref.Anchored = true
  2271. ref.CFrame = CFrame.new(pos)
  2272. CFuncs.Sound.Create("161006093", ref, 1, 1.2)
  2273. game:GetService("Debris"):AddItem(ref, 0.2)
  2274. Effects.Block.Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  2275. Effects.Ring.Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  2276. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  2277. end
  2278. end
  2279. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Light reddish violet"), "Reference", Vector3.new())
  2280. ref.Anchored = true
  2281. ref.CFrame = CFrame.new(pos)
  2282. Effects.Sphere.Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  2283. game:GetService("Debris"):AddItem(ref, 1)
  2284. end
  2285. if Thing[3] <= 0 then
  2286. table.remove(Effects, e)
  2287. end
  2288. end
  2289. if Thing[2] == "FireWave" then
  2290. if Thing[3] <= Thing[4] then
  2291. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  2292. Thing[3] = Thing[3] + 1
  2293. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  2294. else
  2295. Part.Parent = nil
  2296. table.remove(Effects, e)
  2297. end
  2298. end
  2299. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  2300. if Thing[1].Transparency <= 1 then
  2301. if Thing[2] == "Block1" then
  2302. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2303. Mesh = Thing[7]
  2304. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2305. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2306. elseif Thing[2] == "Block2" then
  2307. Thing[1].CFrame = Thing[1].CFrame
  2308. Mesh = Thing[7]
  2309. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2310. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2311. elseif Thing[2] == "Fire" then
  2312. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  2313. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2314. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2315. elseif Thing[2] == "Cylinder" then
  2316. Mesh = Thing[7]
  2317. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2318. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2319. elseif Thing[2] == "Blood" then
  2320. Mesh = Thing[7]
  2321. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  2322. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2323. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2324. elseif Thing[2] == "Elec" then
  2325. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  2326. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2327. elseif Thing[2] == "Disappear" then
  2328. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2329. elseif Thing[2] == "Shatter" then
  2330. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2331. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2332. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2333. Thing[6] = Thing[6] + Thing[5]
  2334. end
  2335. else
  2336. Part.Parent = nil
  2337. table.remove(Effects, e)
  2338. end
  2339. end
  2340. end
  2341. end
  2342. end
  2343. end
  2344. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement