Advertisement
maskyman

zw

Mar 20th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Edit by UserID 131443620 on ROBLOX--
  2. --Don't leak, please!!!--
  3. print("The time of heaven is now upon us!")
  4.  
  5. --https://github.com/Mokiros/roblox-FE-compatibility
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. print("FE Compatibility code V2 by Mokiros")
  11. local RealPlayer = RealPlayer
  12. script.Parent = RealPlayer.Character
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local Disconnect_Function = function(this)
  16. this[1].Functions[this[2]] = nil
  17. end
  18. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  19. local FakeEvent_Metatable = {__index={
  20. Connect = function(this,f)
  21. local i = tostring(math.random(0,10000))
  22. while this.Functions[i] do
  23. i = tostring(math.random(0,10000))
  24. end
  25. this.Functions[i] = f
  26. return setmetatable({this,i},Disconnect_Metatable)
  27. end
  28. }}
  29. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  30. local function fakeEvent()
  31. return setmetatable({Functions={}},FakeEvent_Metatable)
  32. end
  33.  
  34. --Creating fake input objects with fake variables
  35. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  36. FakeMouse.keyUp = FakeMouse.KeyUp
  37. FakeMouse.keyDown = FakeMouse.KeyDown
  38. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  39. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  40. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  41. end}
  42. --Merged 2 functions into one by checking amount of arguments
  43. CAS.UnbindAction = CAS.BindAction
  44.  
  45. --This function will trigger the events that have been :Connect()'ed
  46. local function TriggerEvent(self,ev,...)
  47. for _,f in pairs(self[ev].Functions) do
  48. f(...)
  49. end
  50. end
  51. FakeMouse.TriggerEvent = TriggerEvent
  52. UIS.TriggerEvent = TriggerEvent
  53.  
  54. --Client communication
  55. local Event = Instance.new("RemoteEvent")
  56. Event.Name = "UserInput_Event"
  57. Event.OnServerEvent:Connect(function(plr,io)
  58. if plr~=RealPlayer then return end
  59. FakeMouse.Target = io.Target
  60. FakeMouse.Hit = io.Hit
  61. if not io.isMouse then
  62. local b = io.UserInputState == Enum.UserInputState.Begin
  63. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  64. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  65. end
  66. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  67. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  68. end
  69. for _,t in pairs(CAS.Actions) do
  70. for _,k in pairs(t.Keys) do
  71. if k==io.KeyCode then
  72. t.Function(t.Name,io.UserInputState,io)
  73. end
  74. end
  75. end
  76. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  77. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  78. end
  79. end)
  80. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  81. local Mouse = owner:GetMouse()
  82. local UIS = game:GetService("UserInputService")
  83. local input = function(io,RobloxHandled)
  84. if RobloxHandled then return end
  85. --Since InputObject is a client-side instance, we create and pass table instead
  86. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  87. end
  88. UIS.InputBegan:Connect(input)
  89. UIS.InputEnded:Connect(input)
  90.  
  91. local h,t
  92. --Give the server mouse data every second frame, but only if the values changed
  93. --If player is not moving their mouse, client won't fire events
  94. local HB = game:GetService("RunService").Heartbeat
  95. while true do
  96. if h~=Mouse.Hit or t~=Mouse.Target then
  97. h,t=Mouse.Hit,Mouse.Target
  98. Event:FireServer({isMouse=true,Target=t,Hit=h})
  99. end
  100. --Wait 2 frames
  101. for i=1,2 do
  102. HB:Wait()
  103. end
  104. end]==],script)
  105.  
  106. ----Sandboxed game object that allows the usage of client-side methods and services
  107. --Real game object
  108. local RealGame = game
  109.  
  110. --Metatable for fake service
  111. local FakeService_Metatable = {
  112. __index = function(self,k)
  113. local s = rawget(self,"_RealService")
  114. if s then
  115. return typeof(s[k])=="function"
  116. and function(_,...)return s[k](s,...)end or s[k]
  117. end
  118. end,
  119. __newindex = function(self,k,v)
  120. local s = rawget(self,"_RealService")
  121. if s then s[k]=v end
  122. end
  123. }
  124. local function FakeService(t,RealService)
  125. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  126. return setmetatable(t,FakeService_Metatable)
  127. end
  128.  
  129. --Fake game object
  130. local FakeGame = {
  131. GetService = function(self,s)
  132. return rawget(self,s) or RealGame:GetService(s)
  133. end,
  134. Players = FakeService({
  135. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  136. },"Players"),
  137. UserInputService = FakeService(UIS,"UserInputService"),
  138. ContextActionService = FakeService(CAS,"ContextActionService"),
  139. RunService = FakeService({
  140. _btrs = {},
  141. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  142. BindToRenderStep = function(self,name,_,fun)
  143. self._btrs[name] = self.Heartbeat:Connect(fun)
  144. end,
  145. UnbindFromRenderStep = function(self,name)
  146. self._btrs[name]:Disconnect()
  147. end,
  148. },"RunService")
  149. }
  150. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  151. FakeGame.service = FakeGame.GetService
  152. FakeService(FakeGame,game)
  153. --Changing owner to fake player object to support owner:GetMouse()
  154. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  155. end
  156.  
  157. do
  158. local filteredMessages = { ['___'] = '___' };
  159. local onPropertyChanged = function (obj)
  160. if (obj:isDescendantOf (workspace)) then
  161. local objText = obj.Text;
  162.  
  163. if (objText ~= '___' and objText:find '(%S)') then
  164. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  165. obj.Text = filteredMessages [objText];
  166. elseif (not filteredMessages [objText]) then
  167. obj.Text = '___';
  168.  
  169. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  170.  
  171. filteredMessages [objText] = filtered;
  172. filteredMessages [filtered] = filtered;
  173.  
  174. obj.Text = filtered;
  175. end;
  176. end;
  177. end;
  178. end;
  179.  
  180. local newInstance = Instance.new;
  181. Instance = {
  182. new = function (class, parent)
  183. local obj = newInstance (class, parent);
  184.  
  185. if (pcall (function()return obj.Text;end)) then
  186. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  187. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  188. end;
  189.  
  190. return obj;
  191. end;
  192. };
  193. end;
  194. plr = owner
  195. char = plr.Character
  196.  
  197.  
  198. local Head = char.Head
  199.  
  200. zw = Instance.new("Sound", char.Head)
  201. zw.SoundId = "https://www.roblox.com/asset/?id=616576400"
  202. zw.Volume = 10
  203. ugoki = Instance.new("Sound", char.Head)
  204. ugoki.SoundId = "https://www.roblox.com/asset/?id=1054568598"
  205. ugoki.Volume = 10
  206. move = Instance.new("Sound", char.Head)
  207. move.SoundId = "https://www.roblox.com/asset/?id=864569342"
  208. move.Volume = 10
  209. z = Instance.new("Sound", char.Head)
  210. z.SoundId = "https://www.roblox.com/asset/?id=730085432"
  211. z.Volume = 6
  212. z.Looped = true
  213. one = Instance.new("Sound", char.Head)
  214. one.SoundId = "https://www.roblox.com/asset/?id=877368036"
  215. one.Volume = 10
  216. two = Instance.new("Sound", char.Head)
  217. two.SoundId = "https://www.roblox.com/asset/?id=877368433"
  218. two.Volume = 10
  219. three = Instance.new("Sound", char.Head)
  220. three.SoundId = "https://www.roblox.com/asset/?id=794070439"
  221. three.Volume = 10
  222. four = Instance.new("Sound", char.Head)
  223. four.SoundId = "https://www.roblox.com/asset/?id=962038258"
  224. four.Volume = 10
  225. five = Instance.new("Sound", char.Head)
  226. five.SoundId = "https://www.roblox.com/asset/?id=794068813"
  227. five.Volume = 10
  228. six = Instance.new("Sound", char.Head)
  229. six.SoundId = "https://www.roblox.com/asset/?id=962030665"
  230. six.Volume = 10
  231. seven = Instance.new("Sound", char.Head)
  232. seven.SoundId = "https://www.roblox.com/asset/?id=962029774"
  233. seven.Volume = 10
  234. eight = Instance.new("Sound", char.Head)
  235. eight.SoundId = "https://www.roblox.com/asset/?id=877367823"
  236. eight.Volume = 10
  237. nine = Instance.new("Sound", char.Head)
  238. nine.SoundId = "https://www.roblox.com/asset/?id=794076177"
  239. nine.Volume = 10
  240. ten = Instance.new("Sound", char.Head)
  241. ten.SoundId = "https://www.roblox.com/asset/?id=445339523"
  242. ten.Volume = 10
  243. xd = Instance.new("Sound", char.Head)
  244. xd.SoundId = "rbxassetid://930292558"
  245. xd.Volume = 10
  246. xd.Looped = true
  247.  
  248. base = Instance.new("ScreenGui",plr.PlayerGui)
  249. bbg = Instance.new("BillboardGui",plr.Character.Head)
  250. bbg.Size = UDim2.new(0,200,0,50)
  251. bbg.StudsOffset = Vector3.new(0,3,0)
  252. bbgTl = Instance.new("TextLabel",bbg)
  253. bbgTl.BackgroundTransparency = 1
  254. bbgTl.Size = UDim2.new(10,0,1,0)
  255. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  256. bbgTl.Font = "Garamond"
  257. bbgTl.Text = " "
  258. bbgTl.TextSize = 25
  259. bbgTl.TextStrokeColor3 = Color3.new(255, 231, 160)
  260. bbgTl.TextColor3 = Color3.new(255, 246, 123)
  261. bbgTl.TextStrokeTransparency = 0
  262. bbgTl.TextWrapped = true
  263. plr.Chatted:connect(function(msg)
  264. bbgTl.Text = msg
  265. wait(5)
  266. if bbgTl.Text == msg then
  267. bbgTl.Text = " "
  268. end
  269. end)
  270.  
  271. local Orin = "rbxassetid://1250061532"
  272. Head.face.Texture = Orin
  273. spawn(function()
  274. while wait() do
  275. char["Body Colors"].HeadColor = BrickColor.new("Quill grey")
  276. char["Body Colors"].TorsoColor = BrickColor.new("Quill grey")
  277. char["Body Colors"].LeftArmColor = BrickColor.new("Quill grey")
  278. char["Body Colors"].RightArmColor = BrickColor.new("Quill grey")
  279. char["Body Colors"].LeftLegColor = BrickColor.new("Quill grey")
  280. char["Body Colors"].RightLegColor = BrickColor.new("Quill grey")
  281. end
  282. end)
  283.  
  284. shirt = Instance.new("Shirt", char)
  285. shirt.Name = "Shirt"
  286. pants = Instance.new("Pants", char)
  287. pants.Name = "Pants"
  288. char.Shirt.ShirtTemplate = "rbxassetid://751273816"
  289. char.Pants.PantsTemplate = "rbxassetid://746124715"
  290.  
  291. for i, v in pairs(char:GetChildren()) do
  292. if v.ClassName == "Accessory" then
  293. v:Remove()
  294. end
  295. end
  296.  
  297. Hat3 = Instance.new("Model")
  298. Hat3.Parent = char
  299. Hat3.Name = "Hat3"
  300. rh = Instance.new("Part")
  301. rh.Parent = Hat3
  302. rh.BrickColor = BrickColor.new("Really black")
  303. rh.Locked = true
  304. rh.CanCollide = false
  305. mesh = Instance.new("SpecialMesh")
  306. rh.formFactor = "Symmetric"
  307. mesh.MeshType = "FileMesh"
  308. mesh.MeshId = "rbxassetid://431511681"
  309. mesh.TextureId = "rbxassetid://431511684"
  310. mesh.Parent = rh
  311. local weld = Instance.new("Weld")
  312. weld.Parent = rh
  313. weld.Part0 = rh
  314. weld.Part1 =char.Head
  315. weld.C0 = CFrame.new(0, 0.67, 0.5)*CFrame.Angles(0, 3, 0)
  316. mesh.Scale = Vector3.new(0.0032,0.0035, 0.0032)
  317. Hat3.Part.Transparency = 0
  318.  
  319. Hat = Instance.new("Model")
  320. Hat.Parent = char
  321. Hat.Name = "Hat"
  322. rh = Instance.new("Part")
  323. rh.Parent = Hat
  324. rh.BrickColor = BrickColor.new("Quill grey")
  325. rh.Locked = true
  326. rh.CanCollide = false
  327. mesh = Instance.new("SpecialMesh")
  328. rh.formFactor = "Symmetric"
  329. mesh.MeshType = "FileMesh"
  330. mesh.MeshId = "rbxassetid://955724194"
  331. mesh.Parent = rh
  332. local weld = Instance.new("Weld")
  333. weld.Parent = rh
  334. weld.Part0 = rh
  335. weld.Part1 =char.Head
  336. weld.C0 = CFrame.new(0, -0.5, 0)*CFrame.Angles(12.4, 0, 0)
  337. mesh.Scale = Vector3.new(0.03,0.028, 0.03)
  338.  
  339. Pipe = Instance.new("Model")
  340. Pipe.Parent = char
  341. Pipe.Name = "Pipe"
  342. rh = Instance.new("Part")
  343. rh.Parent = Pipe
  344. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  345. rh.Locked = true
  346. rh.CanCollide = false
  347. mesh = Instance.new("SpecialMesh")
  348. rh.formFactor = "Symmetric"
  349. mesh.MeshType = "FileMesh"
  350. mesh.MeshId = "rbxassetid://956069283"
  351. mesh.Parent = rh
  352. local weld = Instance.new("Weld")
  353. weld.Parent = rh
  354. weld.Part0 = rh
  355. weld.Part1 =char.Head
  356. weld.C0 = CFrame.new(0, -0.5, -0.5)*CFrame.Angles(12.4, 0, 0)
  357. mesh.Scale = Vector3.new(0.04,0.04, 0.04)
  358.  
  359. Armor = Instance.new("Model")
  360. Armor.Parent = char
  361. Armor.Name = "Armor"
  362. rh = Instance.new("Part")
  363. rh.Parent = Armor
  364. rh.BrickColor = BrickColor.new("Quill grey")
  365. rh.Locked = true
  366. rh.CanCollide = false
  367. mesh = Instance.new("SpecialMesh")
  368. rh.formFactor = "Symmetric"
  369. mesh.MeshType = "FileMesh"
  370. mesh.MeshId = "rbxassetid://958074736"
  371. mesh.Parent = rh
  372. local weld = Instance.new("Weld")
  373. weld.Parent = rh
  374. weld.Part0 = rh
  375. weld.Part1 =char.Torso
  376. weld.C0 = CFrame.new(0, 0.1, 0.5)*CFrame.Angles(12.4, 0, 0)
  377. mesh.Scale = Vector3.new(0.01,0.01,0.01)
  378.  
  379. armban1 = Instance.new("Model")
  380. armban1.Parent = char
  381. armban1.Name = "armban1"
  382. rh = Instance.new("Part")
  383. rh.Parent = armban1
  384. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  385. rh.Locked = true
  386. rh.CanCollide = false
  387. mesh = Instance.new("SpecialMesh")
  388. rh.formFactor = "Symmetric"
  389. mesh.MeshType = "FileMesh"
  390. mesh.MeshId = "rbxassetid://958788075"
  391. mesh.Parent = rh
  392. local weld = Instance.new("Weld")
  393. weld.Parent = rh
  394. weld.Part0 = rh
  395. weld.Part1 =char.Torso
  396. weld.C0 = CFrame.new(-0.6, -0.28, 0)*CFrame.Angles(12.4, 0, 0)
  397. mesh.Scale = Vector3.new(0.015,0.015,0.015)
  398.  
  399. armban2 = Instance.new("Model")
  400. armban2.Parent = char
  401. armban2.Name = "armban2"
  402. rh = Instance.new("Part")
  403. rh.Parent = armban2
  404. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  405. rh.Locked = true
  406. rh.CanCollide = false
  407. mesh = Instance.new("SpecialMesh")
  408. rh.formFactor = "Symmetric"
  409. mesh.MeshType = "FileMesh"
  410. mesh.MeshId = "rbxassetid://958788277"
  411. mesh.Parent = rh
  412. local weld = Instance.new("Weld")
  413. weld.Parent = rh
  414. weld.Part0 = rh
  415. weld.Part1 =char.Torso
  416. weld.C0 = CFrame.new(0.6, -0.28, 0)*CFrame.Angles(12.4, 0, 0)
  417. mesh.Scale = Vector3.new(0.015,0.015,0.015)
  418.  
  419. lhip = Instance.new("Model")
  420. lhip.Parent = char
  421. lhip.Name = "lhip"
  422. rh = Instance.new("Part")
  423. rh.Parent = lhip
  424. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  425. rh.Locked = true
  426. rh.CanCollide = false
  427. mesh = Instance.new("SpecialMesh")
  428. rh.formFactor = "Symmetric"
  429. mesh.MeshType = "FileMesh"
  430. mesh.MeshId = "rbxassetid://971395227"
  431. mesh.Parent = rh
  432. local weld = Instance.new("Weld")
  433. weld.Parent = rh
  434. weld.Part0 = rh
  435. weld.Part1 =char.Torso
  436. weld.C0 = CFrame.new(1, 1, 0)*CFrame.Angles(12.4, 0, 0)
  437. mesh.Scale = Vector3.new(0.02,0.02,0.02)
  438.  
  439. rhip = Instance.new("Model")
  440. rhip.Parent = char
  441. rhip.Name = "rhip"
  442. rh = Instance.new("Part")
  443. rh.Parent = rhip
  444. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  445. rh.Locked = true
  446. rh.CanCollide = false
  447. mesh = Instance.new("SpecialMesh")
  448. rh.formFactor = "Symmetric"
  449. mesh.MeshType = "FileMesh"
  450. mesh.MeshId = "rbxassetid://971396150"
  451. mesh.Parent = rh
  452. local weld = Instance.new("Weld")
  453. weld.Parent = rh
  454. weld.Part0 = rh
  455. weld.Part1 =char.Torso
  456. weld.C0 = CFrame.new(-1, 1, 0)*CFrame.Angles(12.4, 0, 0)
  457. mesh.Scale = Vector3.new(0.02,0.02,0.02)
  458.  
  459. h1 = Instance.new("Model")
  460. h1.Parent = char
  461. h1.Name = "h1"
  462. rh = Instance.new("Part")
  463. rh.Parent = h1
  464. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  465. rh.Locked = true
  466. rh.CanCollide = false
  467. mesh = Instance.new("SpecialMesh")
  468. rh.formFactor = "Symmetric"
  469. mesh.MeshType = "FileMesh"
  470. mesh.MeshId = "rbxassetid://964265074"
  471. mesh.Parent = rh
  472. local weld = Instance.new("Weld")
  473. weld.Parent = rh
  474. weld.Part0 = rh
  475. weld.Part1 =char.Head
  476. weld.C0 = CFrame.new(0, -0.6, 0.6)*CFrame.Angles(14, 0, 0)
  477. mesh.Scale = Vector3.new(0.002,0.002,0.002)
  478.  
  479. h2 = Instance.new("Model")
  480. h2.Parent = char
  481. h2.Name = "h2"
  482. rh = Instance.new("Part")
  483. rh.Parent = h2
  484. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  485. rh.Locked = true
  486. rh.CanCollide = false
  487. mesh = Instance.new("SpecialMesh")
  488. rh.formFactor = "Symmetric"
  489. mesh.MeshType = "FileMesh"
  490. mesh.MeshId = "rbxassetid://964265074"
  491. mesh.Parent = rh
  492. local weld = Instance.new("Weld")
  493. weld.Parent = rh
  494. weld.Part0 = rh
  495. weld.Part1 =char.Torso
  496. weld.C0 = CFrame.new(0, -0.6, 1.2)*CFrame.Angles(14, 0, 0)
  497. mesh.Scale = Vector3.new(0.005,0.005,0.005)
  498.  
  499. h3 = Instance.new("Model")
  500. h3.Parent = char
  501. h3.Name = "h3"
  502. rh = Instance.new("Part")
  503. rh.Parent = h3
  504. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  505. rh.Locked = true
  506. rh.CanCollide = false
  507. mesh = Instance.new("SpecialMesh")
  508. rh.formFactor = "Symmetric"
  509. mesh.MeshType = "FileMesh"
  510. mesh.MeshId = "rbxassetid://964265074"
  511. mesh.Parent = rh
  512. local weld = Instance.new("Weld")
  513. weld.Parent = rh
  514. weld.Part0 = rh
  515. weld.Part1 = char["Right Leg"]
  516. weld.C0 = CFrame.new(0.2, -0.8, 0)*CFrame.Angles(14, 0.2, 0)
  517. mesh.Scale = Vector3.new(0.003,0.003, 0.003)
  518.  
  519. h4 = Instance.new("Model")
  520. h4.Parent = char
  521. h4.Name = "h4"
  522. rh = Instance.new("Part")
  523. rh.Parent = h4
  524. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  525. rh.Locked = true
  526. rh.CanCollide = false
  527. mesh = Instance.new("SpecialMesh")
  528. rh.formFactor = "Symmetric"
  529. mesh.MeshType = "FileMesh"
  530. mesh.MeshId = "rbxassetid://964265074"
  531. mesh.Parent = rh
  532. local weld = Instance.new("Weld")
  533. weld.Parent = rh
  534. weld.Part0 = rh
  535. weld.Part1 = char["Left Leg"]
  536. weld.C0 = CFrame.new(-0.2, -0.8, 0)*CFrame.Angles(14, -0.2, 0)
  537. mesh.Scale = Vector3.new(0.003,0.003, 0.003)
  538.  
  539.  
  540. pack = Instance.new("Model")
  541. pack.Parent = char
  542. pack.Name = "pack"
  543. rh = Instance.new("Part")
  544. rh.Parent = pack
  545. rh.BrickColor = BrickColor.new("Tr. Flu. Yellow")
  546. rh.Locked = true
  547. rh.CanCollide = false
  548. mesh = Instance.new("SpecialMesh")
  549. rh.formFactor = "Symmetric"
  550. mesh.MeshType = "FileMesh"
  551. mesh.MeshId = "rbxassetid://882255459"
  552. mesh.Parent = rh
  553. local weld = Instance.new("Weld")
  554. weld.Parent = rh
  555. weld.Part0 = rh
  556. weld.Part1 = char.Torso
  557. weld.C0 = CFrame.new(0, -0.8, -0.5)*CFrame.Angles(0, 0, 0)
  558. mesh.Scale = Vector3.new(0.018,0.0125,0.02)
  559.  
  560. hand1 = Instance.new("Model")
  561. hand1.Parent = char
  562. hand1.Name = "hand1"
  563. rh = Instance.new("Part")
  564. rh.Parent = hand1
  565. rh.BrickColor = BrickColor.new("Quill grey")
  566. rh.Locked = true
  567. rh.CanCollide = false
  568. mesh = Instance.new("SpecialMesh")
  569. rh.formFactor = "Symmetric"
  570. mesh.MeshType = "FileMesh"
  571. mesh.MeshId = "rbxassetid://1208185808"
  572. mesh.Parent = rh
  573. local weld = Instance.new("Weld")
  574. weld.Parent = rh
  575. weld.Part0 = rh
  576. weld.Part1 = char["Right Arm"]
  577. weld.C0 = CFrame.new(-0.05, 0.6, 0.635)*CFrame.Angles(0, 1.5, 0)
  578. mesh.Scale = Vector3.new(0.07,0.07, 0.07)
  579.  
  580. hand2 = Instance.new("Model")
  581. hand2.Parent = char
  582. hand2.Name = "hand2"
  583. rh = Instance.new("Part")
  584. rh.Parent = hand2
  585. rh.BrickColor = BrickColor.new("Quill grey")
  586. rh.Locked = true
  587. rh.CanCollide = false
  588. mesh = Instance.new("SpecialMesh")
  589. rh.formFactor = "Symmetric"
  590. mesh.MeshType = "FileMesh"
  591. mesh.MeshId = "rbxassetid://1208185808"
  592. mesh.Parent = rh
  593. local weld = Instance.new("Weld")
  594. weld.Parent = rh
  595. weld.Part0 = rh
  596. weld.Part1 = char["Left Arm"]
  597. weld.C0 = CFrame.new(0.05, 0.6, 0.635)*CFrame.Angles(0, -1.5, 0)
  598. mesh.Scale = Vector3.new(0.07,0.07, 0.07)
  599.  
  600.  
  601. New = function(Object, Parent, Name, Data)
  602. local Object = Instance.new(Object)
  603. for Index, Value in pairs(Data or {}) do
  604. Object[Index] = Value
  605. end
  606. Object.Parent = Parent
  607. Object.Name = Name
  608. return Object
  609. end
  610.  
  611. mse.KeyDown:connect(function(key)
  612. key = key:lower()
  613. if key == "p" then
  614. canworld = true
  615. one:Play()
  616. end
  617. end
  618. )
  619.  
  620. mse.KeyDown:connect(function(key)
  621. key = key:lower()
  622. if key == "j" then
  623. canworld = true
  624. two:Play()
  625. end
  626. end
  627. )
  628.  
  629. mse.KeyDown:connect(function(key)
  630. key = key:lower()
  631. if key == "k" then
  632. canworld = true
  633. three:Play()
  634. end
  635. end
  636. )
  637.  
  638. mse.KeyDown:connect(function(key)
  639. key = key:lower()
  640. if key == "l" then
  641. canworld = true
  642. four:Play()
  643. end
  644. end
  645. )
  646.  
  647. mse.KeyDown:connect(function(key)
  648. key = key:lower()
  649. if key == "n" then
  650. canworld = true
  651. five:Play()
  652. end
  653. end
  654. )
  655.  
  656. mse.KeyDown:connect(function(key)
  657. key = key:lower()
  658. if key == "m" then
  659. canworld = true
  660. six:Play()
  661. end
  662. end
  663. )
  664.  
  665. mse.KeyDown:connect(function(key)
  666. key = key:lower()
  667. if key == "," then
  668. canworld = true
  669. seven:Play()
  670. end
  671. end
  672. )
  673.  
  674. mse.KeyDown:connect(function(key)
  675. key = key:lower()
  676. if key == "." then
  677. canworld = true
  678. eight:Play()
  679. end
  680. end
  681. )
  682.  
  683. mse.KeyDown:connect(function(key)
  684. key = key:lower()
  685. if key == "r" then
  686. canworld = true
  687. nine:Play()
  688. end
  689. end
  690. )
  691.  
  692. mse.KeyDown:connect(function(key)
  693. key = key:lower()
  694. if key == "t" then
  695. canworld = true
  696. ten:Play()
  697. end
  698. end
  699. )
  700.  
  701. mse.KeyDown:connect(function(key)
  702. key = key:lower()
  703. if key == "y" then
  704. canworld = true
  705. laugh = CFuncs.Sound.Create("1384420463")
  706. laugh.Volume = 7
  707. bbgTl.Text = "*laughs in japanese*"
  708. wait(10)
  709. bbgTl.Text = " "
  710. end
  711. end
  712. )
  713.  
  714. function clerp(a,b,c,d)
  715. for i = 0,d,.01 do
  716. a.CFrame = CFrame.new(b:lerp(c,i))
  717. wait()
  718. end
  719. end
  720. function slerp(a2,b2,c2,d2)
  721. for i2 = 0,d2,.01 do
  722. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  723. wait()
  724. end
  725. end
  726. part = nil
  727. mse.KeyDown:connect(function(key)
  728. if key == "e" and part == nil then
  729.  
  730. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mse.hit.p.X,mse.hit.p.Y+1.5,mse.hit.p.Z),plr.Character.Torso.CFrame.p)
  731. end
  732. end
  733. )
  734.  
  735. mse.KeyDown:connect(function(key)
  736. if key == "e" and part == nil then
  737.  
  738. bam = CFuncs.Sound.Create("1180230203")
  739. bam.Volume = 10
  740. Instance.new("DistortionSoundEffect", bam).Level = 0.1
  741.  
  742. end
  743. end
  744. )
  745.  
  746. mse.KeyDown:connect(function(key)
  747. if key == "e" and part == nil then
  748.  
  749. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  750. cce.Saturation = -2.5
  751. wait(0.000004)
  752. cce.Saturation = 0
  753. end
  754. end
  755. )
  756.  
  757. canworld = true
  758. mse.KeyDown:connect(function(key)
  759. key = key:lower()
  760. if key == "g" then
  761. if canworld == false then return end
  762. if canworld then
  763. canworld = false
  764. zwoh = CFuncs.Sound.Create("1193182658")
  765. zwoh.Volume = 7
  766.  
  767. bbgTl.Text = "「THE WORLD: OVER HEAVEN」!"
  768. local function spawnpart()
  769. sphere = Instance.new("Part")
  770. --game.Debris:AddItem(sphere,3)
  771. local sm = Instance.new("SpecialMesh", sphere)
  772. sm.MeshType = "Sphere"
  773. sphere.Transparency = 1
  774. sphere.Anchored = true
  775. sphere.CanCollide = false
  776. sphere.Material = "Neon"
  777. sphere.BrickColor = BrickColor.new("White")
  778. end
  779. wait(1.5)
  780. xd:Play()
  781.  
  782. local function weld(lol)
  783. local weld = Instance.new("Weld", plr.Character.Torso)
  784. weld.Part0 = plr.Character.Torso
  785. weld.Part1 = lol
  786. weld.C0 = plr.Character.Torso.CFrame:inverse()
  787. weld.C1 = lol.CFrame:inverse()
  788. end
  789. wait(1.4)
  790. spawnpart()
  791. for i, v in pairs(game.Players:GetChildren()) do
  792. t = v.Character:FindFirstChild("Torso")
  793. if t then
  794. t.Anchored = true
  795. plr.Character:FindFirstChild("Torso").Anchored = false
  796. end
  797. RA = v.Character:FindFirstChild("Right Arm")
  798. if RA then
  799. RA.Anchored = true
  800. plr.Character:FindFirstChild("Right Arm").Anchored = false
  801. end
  802. LA = v.Character:FindFirstChild("Left Arm")
  803. if LA then
  804. LA.Anchored = true
  805. plr.Character:FindFirstChild("Left Arm").Anchored = false
  806. end
  807. RL = v.Character:FindFirstChild("Right Leg")
  808. if RL then
  809. RL.Anchored = true
  810. plr.Character:FindFirstChild("Right Leg").Anchored = false
  811. end
  812. LL = v.Character:FindFirstChild("Left Leg")
  813. if LL then
  814. LL.Anchored = true
  815. plr.Character:FindFirstChild("Left Leg").Anchored = false
  816. end
  817. end
  818.  
  819. weld(sphere)
  820. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  821. cce.Saturation = -1.6
  822. --game.Debris:AddItem(cce, 5)
  823. sphere.Parent = game.Workspace
  824. for i = 1,10 do
  825. sphere.Size = sphere.Size + Vector3.new(100,100,100)
  826. wait()
  827. end
  828. --wait(5)
  829.  
  830. wait(2)
  831. bbgTl.Text = " "
  832. end
  833. end
  834. end)
  835.  
  836. mse.KeyDown:connect(function(key)
  837. key = key:lower()
  838. if key == "h" then
  839. canworld = true
  840. ugoki:Play()
  841. wait(.5)
  842. move:Play()
  843. xd:Stop()
  844. bbgTl.Text = "..Time resumes once again."
  845. for i, v in pairs(game.Players:GetChildren()) do
  846. t = v.Character:FindFirstChild("Torso")
  847. if t then
  848. t.Anchored = false
  849. end
  850. RA = v.Character:FindFirstChild("Right Arm")
  851. if RA then
  852. RA.Anchored = false
  853. end
  854. LA = v.Character:FindFirstChild("Left Arm")
  855. if LA then
  856. LA.Anchored = false
  857. end
  858. RL = v.Character:FindFirstChild("Right Leg")
  859. if RL then
  860. RL.Anchored = false
  861. end
  862. LL = v.Character:FindFirstChild("Left Leg")
  863. if LL then
  864. LL.Anchored = false
  865. end
  866. end
  867.  
  868. cce.Saturation = -1.5
  869. wait(0.01)
  870. cce.Saturation = -1.4
  871. wait(0.01)
  872. cce.Saturation = -1.3
  873. wait(0.01)
  874. cce.Saturation = -1.2
  875. wait(0.01)
  876. cce.Saturation = -1.1
  877. wait(0.01)
  878. cce.Saturation = -1
  879. wait(0.01)
  880. cce.Saturation = -0.9
  881. wait(0.01)
  882. cce.Saturation = -0.8
  883. wait(0.01)
  884. cce.Saturation = -0.7
  885. wait(0.01)
  886. cce.Saturation = -0.6
  887. wait(0.01)
  888. cce.Saturation = -0.5
  889. wait(0.01)
  890. cce.Saturation = -0.4
  891. wait(0.01)
  892. cce.Saturation = -0.3
  893. wait(0.01)
  894. cce.Saturation = -0.2
  895. wait(0.01)
  896. cce.Saturation = -0.1
  897. wait(0.01)
  898. cce.Saturation = 0
  899.  
  900.  
  901.  
  902. wait(0.5)
  903. bbgTl.Text = " "
  904.  
  905. sphere:Destroy()
  906. end
  907. end)
  908.  
  909.  
  910.  
  911. Effects = {}
  912. local Player = game.Players.localPlayer
  913. local Character = Player.Character
  914. Character.Archivable = true
  915. AdvancingFortress = Character:Clone()
  916. AdvancingFortress.Parent = Character
  917. torso = AdvancingFortress.Torso
  918. hum = AdvancingFortress.Humanoid
  919. AdvancingFortress.Name = "Advancing Fortress"
  920. pl = AdvancingFortress
  921. local FOrin = "rbxassetid://541645615"
  922. AdvancingFortress.Head.face.Texture = FOrin
  923. Character["Advancing Fortress"].Hat3:Destroy()
  924. Character["Advancing Fortress"].Hat.Part.Transparency = 1
  925. Character["Advancing Fortress"].Pipe.Part.Transparency = 1
  926. Character["Advancing Fortress"].Armor.Part.Transparency = 1
  927. Character["Advancing Fortress"].armban1.Part.Transparency = 1
  928. Character["Advancing Fortress"].armban2.Part.Transparency = 1
  929. Character["Advancing Fortress"].lhip.Part.Transparency = 1
  930. Character["Advancing Fortress"].rhip.Part.Transparency = 1
  931. Character["Advancing Fortress"].h1.Part.Transparency = 1
  932. Character["Advancing Fortress"].h2.Part.Transparency = 1
  933. Character["Advancing Fortress"].h3.Part.Transparency = 1
  934. Character["Advancing Fortress"].h4.Part.Transparency = 1
  935. Character["Advancing Fortress"].pack.Part.Transparency = 1
  936. Character["Advancing Fortress"].hand1.Part.Transparency = 1
  937. Character["Advancing Fortress"].hand2.Part.Transparency = 1
  938. AdvancingFortress.Head.face.Transparency = 1
  939. Character.Hat:Destroy()
  940. Character.Pipe:Destroy()
  941. Character.Armor:Destroy()
  942. Character.armban1:Destroy()
  943. Character.armban2:Destroy()
  944. Character.lhip:Destroy()
  945. Character.rhip:Destroy()
  946. Character.h1:Destroy()
  947. Character.h2:Destroy()
  948. Character.h3:Destroy()
  949. Character.h4:Destroy()
  950. Character.pack:Destroy()
  951. Character.hand1:Destroy()
  952. Character.hand2:Destroy()
  953. for i, v in pairs(AdvancingFortress:GetChildren()) do
  954. if v:IsA("BasePart") then
  955. v.Transparency = 1
  956. end
  957. end
  958. local Humanoid = AdvancingFortress.Humanoid
  959. local Mouse = Player:GetMouse()
  960. local LeftArm = AdvancingFortress["Left Arm"]
  961. local RightArm = AdvancingFortress["Right Arm"]
  962. local LeftLeg = AdvancingFortress["Left Leg"]
  963. local RightLeg = AdvancingFortress["Right Leg"]
  964. local Head = AdvancingFortress.Head
  965. local Torso = AdvancingFortress.Torso
  966. local Camera = game.Workspace.CurrentCamera
  967. local RootPart = AdvancingFortress.HumanoidRootPart
  968. local RootJoint = RootPart.RootJoint
  969. local attack = false
  970. local Anim = "Idle"
  971. local attacktype = 1
  972. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  973. local velocity = RootPart.Velocity.y
  974. local sine = 0
  975. local change = 1
  976. local Create = LoadLibrary("RbxUtility").Create
  977. local TimeStop = false
  978. local m = Create("Model")({
  979. Parent = AdvancingFortress,
  980. Name = "WeaponModel"
  981. })
  982.  
  983. AdvancingFortress.Head.Name = "FHead"
  984. AdvancingFortress.Torso.Name = "FTorso"
  985. AdvancingFortress.HumanoidRootPart.Name = "FHumanoidRootPart"
  986. Humanoid.Animator.Parent = nil
  987. AdvancingFortress.Animate.Parent = nil
  988. local function newMotor(part0, part1, c0, c1)
  989. local w = Create("Weld")({
  990. Parent = part0,
  991. Part0 = part0,
  992. Part1 = part1,
  993. C0 = c0,
  994. C1 = c1
  995. })
  996. return w
  997. end
  998. function clerp(a, b, t)
  999. return a:lerp(b, t)
  1000. end
  1001. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1002. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1003. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  1004. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  1005. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  1006. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  1007. RootJoint.C1 = CFrame.new(0, 0, 0)
  1008. RootJoint.C0 = CFrame.new(0, 0, 0)
  1009. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1010. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1011. local rarmc1 = RW.C1
  1012. local larmc1 = LW.C1
  1013. local rlegc1 = RH.C1
  1014. local llegc1 = LH.C1
  1015. local resetc1 = false
  1016. function PlayAnimationFromTable(table, speed, bool)
  1017. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  1018. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  1019. RW.C0 = clerp(RW.C0, table[3], speed)
  1020. LW.C0 = clerp(LW.C0, table[4], speed)
  1021. RH.C0 = clerp(RH.C0, table[5], speed)
  1022. LH.C0 = clerp(LH.C0, table[6], speed)
  1023. if bool == true and resetc1 == false then
  1024. resetc1 = true
  1025. RootJoint.C1 = RootJoint.C1
  1026. Torso.Neck.C1 = Torso.Neck.C1
  1027. RW.C1 = rarmc1
  1028. LW.C1 = larmc1
  1029. RH.C1 = rlegc1
  1030. LH.C1 = llegc1
  1031. end
  1032. end
  1033. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  1034. script:WaitForChild("Heartbeat")
  1035. frame = 0.03333333333333333
  1036. tf = 0
  1037. allowframeloss = false
  1038. tossremainder = false
  1039. lastframe = tick()
  1040. script.Heartbeat:Fire()
  1041. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1042. tf = tf + s
  1043. if tf >= frame then
  1044. if allowframeloss then
  1045. script.Heartbeat:Fire()
  1046. lastframe = tick()
  1047. else
  1048. for i = 1, math.floor(tf / frame) do
  1049. script.Heartbeat:Fire()
  1050. end
  1051. lastframe = tick()
  1052. end
  1053. if tossremainder then
  1054. tf = 0
  1055. else
  1056. tf = tf - frame * math.floor(tf / frame)
  1057. end
  1058. end
  1059. end)
  1060. function swait(num)
  1061. if num == 0 or num == nil then
  1062. ArtificialHB.Event:wait()
  1063. else
  1064. for i = 0, num do
  1065. ArtificialHB.Event:wait()
  1066. end
  1067. end
  1068. end
  1069. function RemoveOutlines(part)
  1070. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1071. end
  1072. CFuncs = {
  1073. Part = {
  1074. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1075. local Part = Create("Part")({
  1076. Parent = Parent,
  1077. Reflectance = Reflectance,
  1078. Transparency = Transparency,
  1079. CanCollide = false,
  1080. Locked = true,
  1081. BrickColor = BrickColor.new(tostring(BColor)),
  1082. Name = Name,
  1083. Size = Size,
  1084. Material = Material
  1085. })
  1086. RemoveOutlines(Part)
  1087. return Part
  1088. end
  1089. },
  1090. Mesh = {
  1091. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1092. local Msh = Create(Mesh)({
  1093. Parent = Part,
  1094. Offset = OffSet,
  1095. Scale = Scale
  1096. })
  1097. if Mesh == "SpecialMesh" then
  1098. Msh.MeshType = MeshType
  1099. Msh.MeshId = MeshId
  1100. end
  1101. return Msh
  1102. end
  1103. },
  1104. Weld = {
  1105. Create = function(Parent, Part0, Part1, C0, C1)
  1106. local Weld = Create("Weld")({
  1107. Parent = Parent,
  1108. Part0 = Part0,
  1109. Part1 = Part1,
  1110. C0 = C0,
  1111. C1 = C1
  1112. })
  1113. return Weld
  1114. end
  1115. },
  1116. Sound = {
  1117. Create = function(id, par, vol, pit)
  1118. local Sound = Create("Sound")({
  1119. Volume = vol,
  1120. Pitch = pit or 1,
  1121. SoundId = "rbxassetid://" .. id,
  1122. Parent = par or workspace
  1123. })
  1124. Sound:play()
  1125. game:GetService("Debris"):AddItem(Sound, 130)
  1126. return Sound
  1127. end
  1128. },
  1129. Decal = {
  1130. Create = function(Color, Texture, Transparency, Name, Parent)
  1131. local Decal = Create("Decal")({
  1132. Color3 = Color,
  1133. Texture = "rbxassetid://" .. Texture,
  1134. Transparency = Transparency,
  1135. Name = Name,
  1136. Parent = Parent
  1137. })
  1138. return Decal
  1139. end
  1140. },
  1141. BillboardGui = {
  1142. Create = function(Parent, Image, Position, Size)
  1143. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  1144. BillPar.CFrame = CFrame.new(Position)
  1145. local Bill = Create("BillboardGui")({
  1146. Parent = BillPar,
  1147. Adornee = BillPar,
  1148. Size = UDim2.new(1, 0, 1, 0),
  1149. SizeOffset = Vector2.new(Size, Size)
  1150. })
  1151. local d = Create("ImageLabel", Bill)({
  1152. Parent = Bill,
  1153. BackgroundTransparency = 1,
  1154. Size = UDim2.new(1, 0, 1, 0),
  1155. Image = "rbxassetid://" .. Image
  1156. })
  1157. return BillPar
  1158. end
  1159. },
  1160. ParticleEmitter = {
  1161. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1162. local Particle = Create("ParticleEmitter")({
  1163. Parent = Parent,
  1164. Color = ColorSequence.new(Color1, Color2),
  1165. LightEmission = LightEmission,
  1166. Size = Size,
  1167. Texture = Texture,
  1168. Transparency = Transparency,
  1169. ZOffset = ZOffset,
  1170. Acceleration = Accel,
  1171. Drag = Drag,
  1172. LockedToPart = LockedToPart,
  1173. VelocityInheritance = VelocityInheritance,
  1174. EmissionDirection = EmissionDirection,
  1175. Enabled = Enabled,
  1176. Lifetime = LifeTime,
  1177. Rate = Rate,
  1178. Rotation = Rotation,
  1179. RotSpeed = RotSpeed,
  1180. Speed = Speed,
  1181. VelocitySpread = VelocitySpread
  1182. })
  1183. return Particle
  1184. end
  1185. },
  1186. CreateTemplate = {}
  1187. }
  1188. function rayCast(Position, Direction, Range, Ignore)
  1189. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1190. end
  1191. function FindNearestTorso(pos)
  1192. local list = game.Workspace:children()
  1193. local torso
  1194. local dist = 1000
  1195. local temp, human, temp2
  1196. for x = 1, #list do
  1197. temp2 = list[x]
  1198. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1199. temp = temp2:findFirstChild("Torso")
  1200. human = temp2:findFirstChild("Humanoid")
  1201. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  1202. local dohit = true
  1203. if dohit == true then
  1204. torso = temp
  1205. dist = (temp.Position - pos).magnitude
  1206. end
  1207. end
  1208. end
  1209. end
  1210. return torso, dist
  1211. end
  1212. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1213. if hit.Parent == nil then
  1214. return
  1215. end
  1216. local h = hit.Parent:FindFirstChild("Humanoid")
  1217. for _, v in pairs(hit.Parent:children()) do
  1218. if v:IsA("Humanoid") then
  1219. h = v
  1220. end
  1221. end
  1222. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1223. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1224. return
  1225. end
  1226. local c = Create("ObjectValue")({
  1227. Name = "creator",
  1228. Value = game:service("Players").LocalPlayer,
  1229. Parent = h
  1230. })
  1231. game:GetService("Debris"):AddItem(c, 0.5)
  1232. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1233. local Damage = math.random(minim, maxim)
  1234. local blocked = false
  1235. local block = hit.Parent:findFirstChild("Block")
  1236. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1237. blocked = true
  1238. block.Value = block.Value - 1
  1239. print(block.Value)
  1240. end
  1241. if TimeStop == false then
  1242. h.Health = h.Health - Damage
  1243. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Tr. Flu. Yellow").Color)
  1244. elseif TimeStop == true then
  1245. repeat wait() until TimeStop == false
  1246. h.Health = h.Health - Damage / 2
  1247. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Tr. Flu. Yellow").Color)
  1248. end
  1249. if Type == "Knockdown" then
  1250. local hum = hit.Parent.Humanoid
  1251. hum.PlatformStand = true
  1252. coroutine.resume(coroutine.create(function(HHumanoid)
  1253. swait(1)
  1254. HHumanoid.PlatformStand = false
  1255. end), hum)
  1256. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1257. local bodvol = Create("BodyVelocity")({
  1258. velocity = angle * knockback,
  1259. P = 5000,
  1260. maxForce = Vector3.new(8000, 8000, 8000),
  1261. Parent = hit
  1262. })
  1263. local rl = Create("BodyAngularVelocity")({
  1264. P = 3000,
  1265. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1266. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1267. Parent = hit
  1268. })
  1269. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1270. game:GetService("Debris"):AddItem(rl, 0.5)
  1271. elseif Type == "Normal" then
  1272. local vp = Create("BodyVelocity")({
  1273. P = 500,
  1274. maxForce = Vector3.new(math.huge, 0, math.huge),
  1275. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1276. })
  1277. if knockback > 0 then
  1278. vp.Parent = hit.Parent.Torso
  1279. end
  1280. game:GetService("Debris"):AddItem(vp, 0.5)
  1281. elseif Type == "Up" then
  1282. local bodyVelocity = Create("BodyVelocity")({
  1283. velocity = Vector3.new(0, 20, 0),
  1284. P = 5000,
  1285. maxForce = Vector3.new(8000, 8000, 8000),
  1286. Parent = hit
  1287. })
  1288. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1289. elseif Type == "DarkUp" then
  1290. coroutine.resume(coroutine.create(function()
  1291. for i = 0, 1, 0.1 do
  1292. swait()
  1293. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  1294. end
  1295. end))
  1296. local bodyVelocity = Create("BodyVelocity")({
  1297. velocity = Vector3.new(0, 20, 0),
  1298. P = 5000,
  1299. maxForce = Vector3.new(8000, 8000, 8000),
  1300. Parent = hit
  1301. })
  1302. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1303. elseif Type == "Snare" then
  1304. local bp = Create("BodyPosition")({
  1305. P = 2000,
  1306. D = 100,
  1307. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1308. position = hit.Parent.Torso.Position,
  1309. Parent = hit.Parent.Torso
  1310. })
  1311. game:GetService("Debris"):AddItem(bp, 1)
  1312. elseif Type == "Freeze" then
  1313. local BodPos = Create("BodyPosition")({
  1314. P = 50000,
  1315. D = 1000,
  1316. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1317. position = hit.Parent.Torso.Position,
  1318. Parent = hit.Parent.Torso
  1319. })
  1320. local BodGy = Create("BodyGyro")({
  1321. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1322. P = 20000,
  1323. Parent = hit.Parent.Torso,
  1324. cframe = hit.Parent.Torso.CFrame
  1325. })
  1326. hit.Parent.Torso.Anchored = true
  1327. coroutine.resume(coroutine.create(function(Part)
  1328. swait(1.5)
  1329. Part.Anchored = false
  1330. end), hit.Parent.Torso)
  1331. game:GetService("Debris"):AddItem(BodPos, 3)
  1332. game:GetService("Debris"):AddItem(BodGy, 3)
  1333. end
  1334. local debounce = Create("BoolValue")({
  1335. Name = "DebounceHit",
  1336. Parent = hit.Parent,
  1337. Value = true
  1338. })
  1339. game:GetService("Debris"):AddItem(debounce, Delay)
  1340. c = Create("ObjectValue")({
  1341. Name = "creator",
  1342. Value = Player,
  1343. Parent = h
  1344. })
  1345. game:GetService("Debris"):AddItem(c, 0.5)
  1346. end
  1347. end
  1348. function ShowDamage(Pos, Text, Time, Color)
  1349. local Rate = 0.03333333333333333
  1350. local Pos = Pos or Vector3.new(0, 0, 0)
  1351. local Text = Text or ""
  1352. local Time = Time or 2
  1353. local Color = Color or Color3.new(1, 0, 1)
  1354. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1355. EffectPart.Anchored = true
  1356. local BillboardGui = Create("BillboardGui")({
  1357. Size = UDim2.new(3, 0, 3, 0),
  1358. Adornee = EffectPart,
  1359. Parent = EffectPart
  1360. })
  1361. local TextLabel = Create("TextLabel")({
  1362. BackgroundTransparency = 1,
  1363. Size = UDim2.new(1, 0, 1, 0),
  1364. Text = Text,
  1365. Font = "SciFi",
  1366. TextColor3 = Color,
  1367. TextScaled = true,
  1368. Parent = BillboardGui
  1369. })
  1370. game.Debris:AddItem(EffectPart, Time)
  1371. EffectPart.Parent = game:GetService("Workspace")
  1372. delay(0, function()
  1373. local Frames = Time / Rate
  1374. for Frame = 1, Frames do
  1375. wait(Rate)
  1376. local Percent = Frame / Frames
  1377. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1378. TextLabel.TextTransparency = Percent
  1379. end
  1380. if EffectPart and EffectPart.Parent then
  1381. EffectPart:Destroy()
  1382. end
  1383. end)
  1384. end
  1385. local STDamage = false
  1386. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  1387. for _, c in pairs(workspace:children()) do
  1388. local hum = c:findFirstChild("Humanoid")
  1389. if hum ~= nil then
  1390. local head = c:findFirstChild("Torso")
  1391. if head ~= nil then
  1392. local targ = head.Position - Part.Position
  1393. local mag = targ.magnitude
  1394. if Magnitude >= mag and c.Name ~= Player.Name then
  1395. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  1396. if STDamage == true then
  1397. for i = 1, 3 do
  1398. Effects.Block.Create(BrickColor.new("Maroon"), head.CFrame, 1, 1, 1, 4, 4, 4, 0.07, 1)
  1399. end
  1400. for i = 1, 10 do
  1401. CamShake(1, 70000)
  1402. Effects.Break.Create(BrickColor.new("Maroon"), head.CFrame, 1, 1, 1)
  1403. end
  1404. elseif STDamage == false then
  1405. CamShake(1, 90000)
  1406. Effects.Block.Create(BrickColor.new("Maroon"), head.CFrame, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.07, 1)
  1407. for i = 1, 2 do
  1408. Effects.Break.Create(BrickColor.new("Maroon"), head.CFrame, 0.4, 0.4, 0.4)
  1409. end
  1410. end
  1411. end
  1412. end
  1413. end
  1414. end
  1415. end
  1416. HHandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "HHandle", Vector3.new(1.09999979, 0.299999923, 1.0999999))
  1417. 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))
  1418. Eye1 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Really black", "Eye1", Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1419. 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))
  1420. CFuncs.Mesh.Create("SpecialMesh", Eye1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1421. Eye2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Really black", "Eye2", Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1422. 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))
  1423. CFuncs.Mesh.Create("SpecialMesh", Eye2, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1424. THandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "THandle", Vector3.new(1, 0.799999893, 1))
  1425. 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))
  1426. AHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "AHandleR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
  1427. 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))
  1428. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "HitboxR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
  1429. 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))
  1430. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.200000003, 0.899999976, 1.01999998))
  1431. 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))
  1432. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1433. 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))
  1434. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1435. 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))
  1436. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(1.20000005, 0.800000012, 1.20000005))
  1437. 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))
  1438. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.200000003, 0.699999988, 1.01999998))
  1439. 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))
  1440. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.300000012, 0.699999988, 1.01999998))
  1441. 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))
  1442. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.200000003, 0.699999928, 0.520000041))
  1443. 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))
  1444. HitboxR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "HitboxR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
  1445. 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))
  1446. AHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "AHandleL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
  1447. 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))
  1448. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "HitboxL", Vector3.new(0.800000072, 0.800000012, 1.22000003))
  1449. 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))
  1450. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1451. 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))
  1452. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.200000003, 0.699999928, 0.520000041))
  1453. 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))
  1454. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1455. 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))
  1456. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(1.20000005, 0.800000012, 1.20000005))
  1457. 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))
  1458. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.200000003, 0.899999976, 1.01999998))
  1459. 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))
  1460. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.200000003, 0.699999988, 1.01999998))
  1461. 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))
  1462. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.300000012, 0.699999988, 1.01999998))
  1463. 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))
  1464. LHandleR = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "LHandleR", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  1465. 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))
  1466. HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "HitboxR", Vector3.new(0.799999952, 0.800000012, 1.22000003))
  1467. HitboxLWeld = 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))
  1468. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.800000012, 0.800000012, 0.200000003))
  1469. 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))
  1470. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  1471. 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))
  1472. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(1.02999997, 0.699999928, 1.19000006))
  1473. 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))
  1474. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.400000006, 1.20000005, 0.200000003))
  1475. 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))
  1476. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Quill grey", "Part", Vector3.new(0.800000131, 1.20000005, 0.800000012))
  1477. 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))
  1478. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1479. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1480. 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))
  1481. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1482. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1483. 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))
  1484. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1485. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1486. 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))
  1487. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1488. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1489. 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))
  1490. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1491. LHandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "LHandleL", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  1492. 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))
  1493. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1494. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(1.02999997, 1.00999999, 1.19000006))
  1495. 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))
  1496. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.400000006, 1.20000005, 0.300000012))
  1497. 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))
  1498. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(1.02999997, 0.699999928, 1.19000006))
  1499. 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))
  1500. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Quill grey", "Part", Vector3.new(0.800000131, 1.20000005, 0.800000012))
  1501. 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))
  1502. CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1503. Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Part", Vector3.new(0.800000012, 0.800000012, 0.300000012))
  1504. 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))
  1505. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1506. 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))
  1507. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1508. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1509. 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))
  1510. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1511. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1512. 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))
  1513. CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1514. Wedge = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Tr. Flu. Yellow", "Wedge", Vector3.new(0.300000012, 0.200000003, 0.200000003))
  1515. 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))
  1516. Shield = CFuncs.Part.Create(m, "Neon", 0, 0, "Tr. Flu. Yellow", "Part", Vector3.new(9.1, 8.5, 0.2))
  1517. CFuncs.Mesh.Create("SpecialMesh", Shield, "FileMesh", "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(0.04, 0.04, 0.04))
  1518. Shield.Parent = nil
  1519. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  1520. Effects = {
  1521. Block = {
  1522. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1523. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1524. prt.Anchored = true
  1525. prt.CFrame = cframe
  1526. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1527. game:GetService("Debris"):AddItem(prt, 10)
  1528. if Type == 1 or Type == nil then
  1529. table.insert(Effects, {
  1530. prt,
  1531. "Block1",
  1532. delay,
  1533. x3,
  1534. y3,
  1535. z3,
  1536. msh
  1537. })
  1538. elseif Type == 2 then
  1539. table.insert(Effects, {
  1540. prt,
  1541. "Block2",
  1542. delay,
  1543. x3,
  1544. y3,
  1545. z3,
  1546. msh
  1547. })
  1548. end
  1549. end
  1550. },
  1551. Cylinder = {
  1552. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1553. local prt = CFuncs.Part .. Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  1554. prt.Anchored = true
  1555. prt.CFrame = cframe
  1556. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1557. game:GetService("Debris"):AddItem(prt, 2)
  1558. Effects[#Effects + 1] = {
  1559. prt,
  1560. "Cylinder",
  1561. delay,
  1562. x3,
  1563. y3,
  1564. z3
  1565. }
  1566. end
  1567. },
  1568. Head = {
  1569. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1570. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1571. prt.Anchored = true
  1572. prt.CFrame = cframe
  1573. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1574. game:GetService("Debris"):AddItem(prt, 10)
  1575. table.insert(Effects, {
  1576. prt,
  1577. "Cylinder",
  1578. delay,
  1579. x3,
  1580. y3,
  1581. z3,
  1582. msh
  1583. })
  1584. end
  1585. },
  1586. Sphere = {
  1587. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1588. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1589. prt.Anchored = true
  1590. prt.CFrame = cframe
  1591. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1592. game:GetService("Debris"):AddItem(prt, 10)
  1593. table.insert(Effects, {
  1594. prt,
  1595. "Cylinder",
  1596. delay,
  1597. x3,
  1598. y3,
  1599. z3,
  1600. msh
  1601. })
  1602. end
  1603. },
  1604. Sphere2 = {
  1605. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1606. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1607. prt.Anchored = true
  1608. prt.CFrame = cframe
  1609. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1610. game:GetService("Debris"):AddItem(prt, 10)
  1611. table.insert(Effects, {
  1612. prt,
  1613. "Cylinder",
  1614. delay,
  1615. x3,
  1616. y3,
  1617. z3,
  1618. msh
  1619. })
  1620. end
  1621. },
  1622. Elec = {
  1623. Create = function(cff, x, y, z)
  1624. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Tr. Flu. Yellow"), "Part", Vector3.new(1, 1, 1))
  1625. prt.Anchored = true
  1626. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1627. prt.CFrame = CFrame.new(prt.Position)
  1628. game:GetService("Debris"):AddItem(prt, 2)
  1629. local xval = math.random() / 2
  1630. local yval = math.random() / 2
  1631. local zval = math.random() / 2
  1632. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1633. table.insert(Effects, {
  1634. prt,
  1635. "Elec",
  1636. 0.1,
  1637. x,
  1638. y,
  1639. z,
  1640. xval,
  1641. yval,
  1642. zval
  1643. })
  1644. end
  1645. },
  1646. Ring = {
  1647. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1648. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1649. prt.Anchored = true
  1650. prt.CFrame = cframe
  1651. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1652. game:GetService("Debris"):AddItem(prt, 10)
  1653. table.insert(Effects, {
  1654. prt,
  1655. "Cylinder",
  1656. delay,
  1657. x3,
  1658. y3,
  1659. z3,
  1660. msh
  1661. })
  1662. end
  1663. },
  1664. Wave = {
  1665. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1666. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1667. prt.Anchored = true
  1668. prt.CFrame = cframe
  1669. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1670. game:GetService("Debris"):AddItem(prt, 10)
  1671. table.insert(Effects, {
  1672. prt,
  1673. "Cylinder",
  1674. delay,
  1675. x3,
  1676. y3,
  1677. z3,
  1678. msh
  1679. })
  1680. end
  1681. },
  1682. Break = {
  1683. Create = function(brickcolor, cframe, x1, y1, z1)
  1684. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1685. prt.Anchored = true
  1686. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1687. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1688. local num = math.random(10, 50) / 1000
  1689. game:GetService("Debris"):AddItem(prt, 10)
  1690. table.insert(Effects, {
  1691. prt,
  1692. "Shatter",
  1693. num,
  1694. prt.CFrame,
  1695. math.random() - math.random(),
  1696. 0,
  1697. math.random(50, 100) / 100
  1698. })
  1699. end
  1700. },
  1701. Fire = {
  1702. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1703. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1704. prt.Anchored = true
  1705. prt.CFrame = cframe
  1706. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1707. game:GetService("Debris"):AddItem(prt, 10)
  1708. table.insert(Effects, {
  1709. prt,
  1710. "Fire",
  1711. delay,
  1712. 1,
  1713. 1,
  1714. 1,
  1715. msh
  1716. })
  1717. end
  1718. },
  1719. FireWave = {
  1720. Create = function(brickcolor, cframe, x1, y1, z1)
  1721. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1722. prt.Anchored = true
  1723. prt.CFrame = cframe
  1724. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1725. local d = Create("Decal")({
  1726. Parent = prt,
  1727. Texture = "rbxassetid://26356434",
  1728. Face = "Top"
  1729. })
  1730. local d = Create("Decal")({
  1731. Parent = prt,
  1732. Texture = "rbxassetid://26356434",
  1733. Face = "Bottom"
  1734. })
  1735. game:GetService("Debris"):AddItem(prt, 10)
  1736. table.insert(Effects, {
  1737. prt,
  1738. "FireWave",
  1739. 1,
  1740. 30,
  1741. math.random(400, 600) / 100,
  1742. msh
  1743. })
  1744. end
  1745. },
  1746. Lightning = {
  1747. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1748. local magz = (p0 - p1).magnitude
  1749. local curpos = p0
  1750. local trz = {
  1751. -ofs,
  1752. ofs
  1753. }
  1754. for i = 1, tym do
  1755. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1756. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1757. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1758. li.Material = "Neon"
  1759. if tym == i then
  1760. local magz2 = (curpos - p1).magnitude
  1761. li.Size = Vector3.new(th, th, magz2)
  1762. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1763. table.insert(Effects, {
  1764. li,
  1765. "Disappear",
  1766. last
  1767. })
  1768. else
  1769. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1770. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1771. game.Debris:AddItem(li, 10)
  1772. table.insert(Effects, {
  1773. li,
  1774. "Disappear",
  1775. last
  1776. })
  1777. end
  1778. end
  1779. end
  1780. },
  1781. EffectTemplate = {}
  1782. }
  1783. local Invisible = true
  1784. function Reappear()
  1785. for _, i in pairs(AdvancingFortress:children()) do
  1786. if i:IsA("BasePart") then
  1787. coroutine.resume(coroutine.create(function(Part)
  1788. for i = 0, 1, 0.3 do
  1789. swait()
  1790. Part.Transparency = -i
  1791. end
  1792. Part.Transparency = 0
  1793. end), i)
  1794. end
  1795. end
  1796. for _, i in pairs(m:children()) do
  1797. if i:IsA("BasePart") then
  1798. coroutine.resume(coroutine.create(function(Part)
  1799. for i = 0, 1, 0.3 do
  1800. swait()
  1801. Part.Transparency = i
  1802. end
  1803. Part.Transparency = 0
  1804. end), i)
  1805. end
  1806. end
  1807. end
  1808. function ReappearArmorOnly()
  1809. for _, i in pairs(m:children()) do
  1810. if i:IsA("BasePart") then
  1811. coroutine.resume(coroutine.create(function(Part)
  1812. for i = 0, 1, 0.3 do
  1813. swait()
  1814. Part.Transparency = i
  1815. end
  1816. Part.Transparency = 0
  1817. end), i)
  1818. end
  1819. end
  1820. end
  1821. function Disappear()
  1822. for _, i in pairs(AdvancingFortress:children()) do
  1823. if i:IsA("BasePart") then
  1824. coroutine.resume(coroutine.create(function(Part)
  1825. for i = 0, 1, 0.3 do
  1826. swait()
  1827. Part.Transparency = i
  1828. end
  1829. Part.Transparency = 1
  1830. end), i)
  1831. end
  1832. end
  1833. for _, i in pairs(m:children()) do
  1834. if i:IsA("BasePart") then
  1835. coroutine.resume(coroutine.create(function(Part)
  1836. for i = 0, 1, 0.3 do
  1837. swait()
  1838. Part.Transparency = i
  1839. end
  1840. Part.Transparency = 1
  1841. end), i)
  1842. end
  1843. end
  1844. end
  1845. function DisappearArmorOnly()
  1846. for _, i in pairs(m:children()) do
  1847. if i:IsA("BasePart") then
  1848. coroutine.resume(coroutine.create(function(Part)
  1849. for i = 0, 1, 0.3 do
  1850. swait()
  1851. Part.Transparency = i
  1852. end
  1853. Part.Transparency = 1
  1854. end), i)
  1855. end
  1856. end
  1857. end
  1858. function CamShake(time, freq)
  1859. coroutine.resume(coroutine.create(function()
  1860. local cam = game:GetService("Workspace").CurrentCamera
  1861. local time = 10
  1862. local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0)
  1863. if math.random(1, 2) == 1 then
  1864. seed = Vector3.new(-seed.x, seed.y, 0)
  1865. end
  1866. if math.random(1, 2) == 1 then
  1867. seed = Vector3.new(seed.x, -seed.y, 0)
  1868. end
  1869. 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)
  1870. for i = 1, time do
  1871. 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)
  1872. wait()
  1873. end
  1874. end))
  1875. end
  1876.  
  1877. local bigg = false
  1878. function PE()
  1879. pep = Instance.new("ParticleEmitter")
  1880. pep.Name = "pep"
  1881. pep.Lifetime = NumberRange.new(1)
  1882. pep.Rate = 5
  1883. pep.Texture = "rbxassetid://298768656"
  1884. pep.VelocitySpread = 60
  1885. pep.Parent = char.Head
  1886. end
  1887.  
  1888. local ora = false
  1889. function ORA()
  1890. attack = true
  1891. local S = CFuncs.Sound.Create("601465752", Torso, 1, 1)
  1892. S.Looped = true
  1893. S.Volume = 10
  1894. if ora == true then
  1895. while ora == true do
  1896. CFuncs.Sound.Create("200632136", HitboxL, 0.3, math.random(1, 1.2))
  1897. MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "131070686", 1)
  1898. for i = 0, 1, 0.8 do
  1899. swait()
  1900. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1901. PlayAnimationFromTable({
  1902. 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),
  1903. 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),
  1904. 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),
  1905. 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),
  1906. 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),
  1907. 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)
  1908. }, 0.8, false)
  1909. end
  1910. CFuncs.Sound.Create("200632136", HitboxR, 0.3, math.random(1, 1.2))
  1911. MagnitudeDamage(HitboxR, 5, 4, 10, 0, "Normal", "131070686", 1)
  1912. for i = 0, 1, 0.8 do
  1913. swait()
  1914. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1915. PlayAnimationFromTable({
  1916. 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),
  1917. 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),
  1918. 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),
  1919. 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),
  1920. 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),
  1921. 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)
  1922. }, 0.8, false)
  1923. end
  1924. CFuncs.Sound.Create("200632136", HitboxL, 0.3, math.random(1, 1.2))
  1925. MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "131070686", 1)
  1926. for i = 0, 1, 0.8 do
  1927. swait()
  1928. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1929. PlayAnimationFromTable({
  1930. 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),
  1931. 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),
  1932. 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),
  1933. 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),
  1934. 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),
  1935. 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)
  1936. }, 0.8, false)
  1937. end
  1938. CFuncs.Sound.Create("200632136", HitboxR, 0.3, math.random(1, 1.2))
  1939. MagnitudeDamage(HitboxR, 5, 4, 10, 0, "Normal", "131070686", 1)
  1940. for i = 0, 1, 0.8 do
  1941. swait()
  1942. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -4), 0.5)
  1943. PlayAnimationFromTable({
  1944. 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),
  1945. 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),
  1946. 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),
  1947. 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),
  1948. 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),
  1949. 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)
  1950. }, 0.8, false)
  1951. end
  1952. CFuncs.Sound.Create("200632136", HitboxL, 0.3, math.random(1, 1.2))
  1953. MagnitudeDamage(HitboxL, 5, 4, 10, 0, "Normal", "131070686", 1)
  1954. end
  1955. end
  1956. S:Stop()
  1957. local S2 = CFuncs.Sound.Create("1277342512", Torso, 1.5, 1)
  1958.  
  1959. S2.Volume = 10
  1960. for i = 0, 1, 0.13 do
  1961. swait()
  1962. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -3), 0.5)
  1963. PlayAnimationFromTable({
  1964. 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),
  1965. 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),
  1966. 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),
  1967. 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),
  1968. 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),
  1969. 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)
  1970. }, 0.2, false)
  1971. end
  1972. CFuncs.Sound.Create("471881954", HitboxR, 1, 1)
  1973. MagnitudeDamage(HitboxR, 7, 10, 15, 50, "Normal", "610359590", 1)
  1974. for i = 0, 1, 0.1 do
  1975. swait()
  1976. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), 0.3)
  1977. PlayAnimationFromTable({
  1978. 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),
  1979. 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),
  1980. 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),
  1981. 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),
  1982. 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),
  1983. 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)
  1984. }, 0.6, false)
  1985. end
  1986. attack = false
  1987. end
  1988. function CastleCrusherFist()
  1989. attack = true
  1990. STDamage = true
  1991. local S3 = CFuncs.Sound.Create("1368114767", Torso, 1, 1)
  1992. Instance.new("DistortionSoundEffect", S3).Level = 0
  1993. for i = 0, 1, 0.1 do
  1994. S3.Volume = 10
  1995. swait()
  1996. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  1997. Effects.Break.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  1998. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), 0.2)
  1999. PlayAnimationFromTable({
  2000. 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),
  2001. 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),
  2002. 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),
  2003. 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),
  2004. 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),
  2005. 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)
  2006. }, 0.2, false)
  2007. end
  2008. MagnitudeDamage(HitboxR, 100, 40, 170, 190, "Normal", "705598350", 5)
  2009. Effects.Wave.Create(BrickColor.new("Tr. Flu. Yellow"), 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)
  2010. CFuncs.Sound.Create("471881980", HitboxR, 1, 0.9)
  2011. CFuncs.Sound.Create("471881954", HitboxR, 1, 0.8)
  2012.  
  2013. for i = 0, 1, 0.08 do
  2014. swait()
  2015. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  2016. Effects.Break.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  2017. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), 0.3)
  2018. PlayAnimationFromTable({
  2019. 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),
  2020. 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),
  2021. 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),
  2022. 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),
  2023. 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),
  2024. 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)
  2025. }, 0.6, false)
  2026. end
  2027. STDamage = false
  2028. attack = false
  2029. end
  2030. function CastleCrusherFist()
  2031. attack = true
  2032. STDamage = true
  2033. local S2 = CFuncs.Sound.Create("1368114767", Torso, 1, 1)
  2034. Instance.new("DistortionSoundEffect", S2).Level = 0
  2035. for i = 0, 1, 0.1 do
  2036. S2.Volume = 10
  2037. swait()
  2038. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  2039. Effects.Break.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  2040. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), 0.5)
  2041. PlayAnimationFromTable({
  2042. 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),
  2043. 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),
  2044. 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),
  2045. 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),
  2046. 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),
  2047. 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)
  2048. }, 0.2, false)
  2049. end
  2050. Effects.Wave.Create(BrickColor.new("Tr. Flu. Yellow"), 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)
  2051. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 200
  2052. CFuncs.Sound.Create("471881980", HitboxR, 1, 0.9)
  2053. CFuncs.Sound.Create("471881954", HitboxR, 1, 0.8)
  2054. for i = 0, 1, 0.08 do
  2055. swait()
  2056. MagnitudeDamage(HitboxR, 5, 50, 80, 100, "Normal", "705598350", 1)
  2057. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1)
  2058. Effects.Break.Create(BrickColor.new("Tr. Flu. Yellow"), HitboxR.CFrame, 0.5, 0.5, 0.5)
  2059. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -5), 1)
  2060. PlayAnimationFromTable({
  2061. 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),
  2062. 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),
  2063. 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),
  2064. 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),
  2065. 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),
  2066. 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)
  2067. }, 0.6, false)
  2068. end
  2069. STDamage = false
  2070. attack = false
  2071. end
  2072. function weld5(part0, part1, c0, c1)
  2073. local weeld = Instance.new("Weld", part0)
  2074. weeld.Part0 = part0
  2075. weeld.Part1 = part1
  2076. weeld.C0 = c0
  2077. weeld.C1 = c1
  2078. return weeld
  2079. end
  2080. local Grab = false
  2081. function GRABEMBOIGRABEM()
  2082. attack = true
  2083. gp = nil
  2084. con1 = HitboxR.Touched:connect(function(hit)
  2085. local ht = hit.Parent
  2086. local hum1 = ht:FindFirstChild("Humanoid")
  2087. if Grab == false then
  2088. if hum1 ~= nil and hit.Parent ~= Character then
  2089. hum1.PlatformStand = true
  2090. gp = ht
  2091. Grab = true
  2092. local asd = weld5(RightArm, ht:FindFirstChild("Head"), CFrame.new(0, -1.5, 0), CFrame.new(0, 0, 0))
  2093. asd.Parent = RightArm
  2094. asd.Name = "asd"
  2095. asd.C0 = asd.C0 * CFrame.Angles(math.rad(-90), 0, 0)
  2096. CFuncs.Sound.Create("200632821", Torso, 1, 1)
  2097. CFuncs.Sound.Create("957028076", Torso, 1, 1)
  2098. elseif hum1 == nil then
  2099. con1:disconnect()
  2100. wait()
  2101. return
  2102. end
  2103. end
  2104. end)
  2105. for i = 0, 1, 0.2 do
  2106. swait()
  2107. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -2), 0.3)
  2108. PlayAnimationFromTable({
  2109. 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),
  2110. 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),
  2111. 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),
  2112. 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),
  2113. 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),
  2114. 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)
  2115. }, 0.3, false)
  2116. end
  2117. for i = 0, 1, 0.1 do
  2118. swait()
  2119. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -6), 0.3)
  2120. PlayAnimationFromTable({
  2121. 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),
  2122. 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),
  2123. 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),
  2124. 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),
  2125. 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),
  2126. 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)
  2127. }, 0.3, false)
  2128. end
  2129. if Grab == true then
  2130. for i = 1, 5 do
  2131. for i = 0, 1, 0.35 do
  2132. swait()
  2133. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 13, -6), 0.3)
  2134. PlayAnimationFromTable({
  2135. 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),
  2136. 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),
  2137. 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),
  2138. 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),
  2139. 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),
  2140. 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)
  2141. }, 0.4, false)
  2142. end
  2143. for i = 0, 1, 0.3 do
  2144. swait()
  2145. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, -6), 0.3)
  2146. PlayAnimationFromTable({
  2147. 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),
  2148. 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),
  2149. 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),
  2150. 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),
  2151. 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),
  2152. 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)
  2153. }, 0.7, false)
  2154. end
  2155. local hit, pos = rayCast(HitboxR.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  2156. if hit ~= nil then
  2157. MagnitudeDamage(HitboxR, 5, 10, 30, 0, "Normal", "610359515", 1.3)
  2158. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), CFrame.new(pos), 1, 1, 1, 0.7, 0.7, 0.7, 0.09, 1)
  2159. Effects.Wave.Create(BrickColor.new("Tr. Flu. Yellow"), CFrame.new(pos), 1, 1, 1, 0.7, 0.7, 0.7, 0.09)
  2160. Effects.Sphere.Create(BrickColor.new("Tr. Flu. Yellow"), CFrame.new(pos), 3, 3, 3, 5, 5, 5, 0.09)
  2161. end
  2162. end
  2163. end
  2164. for i, v in pairs(RightArm:GetChildren()) do
  2165. if v.Name == "asd" and v:IsA("Weld") then
  2166. v:Remove()
  2167. end
  2168. end
  2169. Grab = false
  2170. con1:disconnect()
  2171. attack = false
  2172. end
  2173. local IsWearingArmor = false
  2174. function Armor(Mode)
  2175. attack = true
  2176. if IsWearingArmor == false and Mode == "On" then
  2177. IsWearingArmor = true
  2178. Disappear()
  2179. swait(10)
  2180. ReappearArmorOnly()
  2181. CFuncs.Sound.Create("710036613")
  2182. Character.Humanoid.MaxHealth = math.huge
  2183. Character.Humanoid.Health = math.huge
  2184. HHandleWeld.Part0 = Character.Head
  2185. THandleWeld.Part0 = Character.Torso
  2186. AHandleRWeld.Part0 = Character["Right Arm"]
  2187. AHandleLWeld.Part0 = Character["Left Arm"]
  2188. LHandleRWeld.Part0 = Character["Right Leg"]
  2189. LHandleLWeld.Part0 = Character["Left Leg"]
  2190. for i, v in pairs(AdvancingFortress:GetChildren()) do
  2191. if v:IsA("BasePart") then
  2192. v.Transparency = 1
  2193. end
  2194. end
  2195. for i, v in pairs(Character:GetChildren()) do
  2196. if v:IsA("Accessory") then
  2197. v.Handle.Transparency = 1
  2198. for i, v in pairs(Character:GetChildren()) do
  2199. if v:IsA("Model") then
  2200. v.Handle.Transparency = 1
  2201. end
  2202. end
  2203. end
  2204. end
  2205. elseif IsWearingArmor == true and Mode == "Off" then
  2206. IsWearingArmor = false
  2207. DisappearArmorOnly()
  2208. for i, v in pairs(Character:GetChildren()) do
  2209. if v:IsA("Accessory") then
  2210. v.Handle.Transparency = 0
  2211. for i, v in pairs(Character:GetChildren()) do
  2212. if v:IsA("Model") then
  2213. v.Handle.Transparency = 0
  2214. end
  2215. end
  2216. end
  2217. end
  2218. swait(10)
  2219. Reappear()
  2220. Character.Humanoid.MaxHealth = math.huge
  2221. Character.Humanoid.Health = math.huge
  2222. HHandleWeld.Part0 = Head
  2223. THandleWeld.Part0 = Torso
  2224. AHandleRWeld.Part0 = RightArm
  2225. AHandleLWeld.Part0 = LeftArm
  2226. LHandleRWeld.Part0 = RightLeg
  2227. LHandleLWeld.Part0 = LeftLeg
  2228. for i, v in pairs(AdvancingFortress:GetChildren()) do
  2229. if v:IsA("BasePart") then
  2230. v.Transparency = 0
  2231. end
  2232. end
  2233. end
  2234. attack = false
  2235. end
  2236.  
  2237.  
  2238. local ShieldMode = false
  2239. local ShieldCharge = false
  2240. function HoloHexShield()
  2241. attack = true
  2242. Shield.Parent = m
  2243. Shield.CanCollide = true
  2244. if ShieldMode == true then
  2245. while ShieldMode == true do
  2246. swait()
  2247. Effects.Elec.Create(Shield.CFrame, 6, 6, 6)
  2248. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  2249. PlayAnimationFromTable({
  2250. 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),
  2251. 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),
  2252. 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),
  2253. 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),
  2254. 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),
  2255. 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)
  2256. }, 0.3, false)
  2257. end
  2258. end
  2259. Shield.CanCollide = false
  2260. CFuncs.Sound.Create("200632211", HitboxR, 1, 0.8)
  2261. CFuncs.Sound.Create("200632875", HitboxR, 1, 0.9)
  2262. CFuncs.Sound.Create("794070439", HitboxR, 1, 0.9)
  2263. Character.HumanoidRootPart.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 160
  2264. Effects.Wave.Create(BrickColor.new("Tr. Flu. Yellow"), 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)
  2265. for i = 0, 1, 0.05 do
  2266. swait()
  2267. MagnitudeDamage(Shield, 5, 10, 15, 20, "Normal", "610359515", 1.3)
  2268. Effects.Elec.Create(Shield.CFrame, 6, 6, 6)
  2269. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -3), 1)
  2270. PlayAnimationFromTable({
  2271. 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),
  2272. 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),
  2273. 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),
  2274. 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),
  2275. 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),
  2276. 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)
  2277. }, 0.5, false)
  2278. end
  2279. Shield.Parent = nil
  2280. attack = false
  2281. end
  2282. Mouse.Button1Down:connect(function()
  2283. if attack == false and attacktype == 1 and IsWearingArmor == false and Invisible == false then
  2284. attacktype = 2
  2285. attackone()
  2286. elseif attack == false and attacktype == 2 and IsWearingArmor == false and Invisible == false then
  2287. attacktype = 1
  2288. attacktwo()
  2289. end
  2290. end)
  2291. game.Lighting.Outlines = false
  2292. function attackone()
  2293. attack = true
  2294. for i = 0, 1, 0.12 do
  2295. swait()
  2296. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  2297. PlayAnimationFromTable({
  2298. 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),
  2299. 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),
  2300. 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),
  2301. 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),
  2302. 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),
  2303. 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)
  2304. }, 0.3, false)
  2305. end
  2306. MagnitudeDamage(HitboxR, 7, 10, 15, math.random(1, 3), "Normal", "131070686", 1)
  2307. CFuncs.Sound.Create("200632136", HitboxR, 1, 1)
  2308. RootPart.Velocity = RootPart.CFrame.lookVector * 40
  2309. for i = 0, 1, 0.11 do
  2310. swait()
  2311. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  2312. PlayAnimationFromTable({
  2313. 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),
  2314. 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),
  2315. 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),
  2316. 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),
  2317. 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),
  2318. 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)
  2319. }, 0.45, false)
  2320. end
  2321. attack = false
  2322. end
  2323. function attacktwo()
  2324. attack = true
  2325. for i = 0, 1, 0.12 do
  2326. swait()
  2327. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  2328. PlayAnimationFromTable({
  2329. 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),
  2330. 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),
  2331. 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),
  2332. 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),
  2333. 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),
  2334. 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)
  2335. }, 0.34, false)
  2336. end
  2337. MagnitudeDamage(HitboxL, 7, 10, 15, math.random(1, 3), "Normal", "131070686", 1.1)
  2338. CFuncs.Sound.Create("200632136", HitboxL, 1, 1)
  2339. RootPart.Velocity = RootPart.CFrame.lookVector * 40
  2340. for i = 0, 1, 0.12 do
  2341. swait()
  2342. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(0, 1.3, -4), 0.3)
  2343. PlayAnimationFromTable({
  2344. 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),
  2345. 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),
  2346. 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),
  2347. 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),
  2348. 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),
  2349. 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)
  2350. }, 0.45, false)
  2351. end
  2352. attack = false
  2353. end
  2354.  
  2355. Mouse.KeyDown:connect(function(k)
  2356. k = k:lower()
  2357. if attack == false and ora == false and k == "z" and IsWearingArmor == false and Invisible == false then
  2358. ora = true
  2359. ORA()
  2360. elseif k == ";" and bigg == false then
  2361. bigg = true
  2362. PE()
  2363. z:Play()
  2364.  
  2365. elseif k == ";" and bigg == true then
  2366. bigg = false
  2367. pep:Destroy()
  2368. z:Stop()
  2369. elseif attack == false and k == "x" and IsWearingArmor == false and Invisible == false then
  2370. GRABEMBOIGRABEM()
  2371.  
  2372. elseif attack == false and k == "f" and Invisible == false and IsWearingArmor == false then
  2373. Invisible = true
  2374. Character["Advancing Fortress"].Hat.Part.Transparency = 1
  2375. Character["Advancing Fortress"].Pipe.Part.Transparency = 1
  2376. Character["Advancing Fortress"].Armor.Part.Transparency = 1
  2377. Character["Advancing Fortress"].armban1.Part.Transparency = 1
  2378. Character["Advancing Fortress"].armban2.Part.Transparency = 1
  2379. Character["Advancing Fortress"].lhip.Part.Transparency = 1
  2380. Character["Advancing Fortress"].rhip.Part.Transparency = 1
  2381. Character["Advancing Fortress"].h1.Part.Transparency = 1
  2382. Character["Advancing Fortress"].h2.Part.Transparency = 1
  2383. Character["Advancing Fortress"].h3.Part.Transparency = 1
  2384. Character["Advancing Fortress"].h4.Part.Transparency = 1
  2385. Character["Advancing Fortress"].pack.Part.Transparency = 1
  2386. Character["Advancing Fortress"].hand1.Part.Transparency = 1
  2387. Character["Advancing Fortress"].hand2.Part.Transparency = 1
  2388. Character["Advancing Fortress"].FHead.face.Transparency = 1
  2389. Effects.Sphere.Create(BrickColor.new("Tr. Flu. Yellow"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  2390. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.1, 1)
  2391. Disappear()
  2392. elseif attack == false and k == "f" and Invisible == true and IsWearingArmor == false then
  2393. Invisible = false
  2394. CFuncs.Sound.Create("1033003355", Torso, 1, 1)
  2395. Character["Advancing Fortress"].Hat.Part.Transparency = 0
  2396. Character["Advancing Fortress"].Pipe.Part.Transparency = 0
  2397. Character["Advancing Fortress"].Armor.Part.Transparency = 0
  2398. Character["Advancing Fortress"].armban1.Part.Transparency = 0
  2399. Character["Advancing Fortress"].armban2.Part.Transparency = 0
  2400. Character["Advancing Fortress"].lhip.Part.Transparency = 0
  2401. Character["Advancing Fortress"].rhip.Part.Transparency = 0
  2402. Character["Advancing Fortress"].h1.Part.Transparency = 0
  2403. Character["Advancing Fortress"].h2.Part.Transparency = 0
  2404. Character["Advancing Fortress"].h3.Part.Transparency = 0
  2405. Character["Advancing Fortress"].h4.Part.Transparency = 0
  2406. Character["Advancing Fortress"].pack.Part.Transparency = 0
  2407. Character["Advancing Fortress"].hand1.Part.Transparency = 0
  2408. Character["Advancing Fortress"].hand2.Part.Transparency = 0
  2409. Character["Advancing Fortress"].FHead.face.Transparency = 0
  2410. Effects.Sphere.Create(BrickColor.new("Tr. Flu. Yellow"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.08)
  2411. for i = 1, 2 do
  2412. Effects.Block.Create(BrickColor.new("Tr. Flu. Yellow"), Torso.CFrame, 1, 1, 1, 4, 4, 4, 0.1, 1)
  2413. end
  2414. for i = 1, 20 do
  2415. Effects.Break.Create(BrickColor.new("Tr. Flu. Yellow"), Torso.CFrame, 1, 1, 1)
  2416. end
  2417. Reappear()
  2418. elseif attack == false and ShieldMode == false and k == "c" and IsWearingArmor == false and Invisible == false then
  2419. ShieldMode = true
  2420. HoloHexShield()
  2421. elseif attack == false and k == "v" and IsWearingArmor == false and Invisible == false then
  2422. CastleCrusherFist()
  2423. end
  2424. if k == "[" and IsWearingArmor == false and Invisible == false then
  2425. Armor("On")
  2426. Character["Advancing Fortress"].Hat.Part.Transparency = 1
  2427. Character["Advancing Fortress"].Pipe.Part.Transparency = 1
  2428. Character["Advancing Fortress"].Armor.Part.Transparency = 1
  2429. Character["Advancing Fortress"].armban1.Part.Transparency = 1
  2430. Character["Advancing Fortress"].armban2.Part.Transparency = 1
  2431. Character["Advancing Fortress"].lhip.Part.Transparency = 1
  2432. Character["Advancing Fortress"].rhip.Part.Transparency = 1
  2433. Character["Advancing Fortress"].h1.Part.Transparency = 1
  2434. Character["Advancing Fortress"].h2.Part.Transparency = 1
  2435. Character["Advancing Fortress"].h3.Part.Transparency = 1
  2436. Character["Advancing Fortress"].h4.Part.Transparency = 1
  2437. Character["Advancing Fortress"].pack.Part.Transparency = 1
  2438. Character["Advancing Fortress"].hand1.Part.Transparency = 1
  2439. Character["Advancing Fortress"].hand2.Part.Transparency = 1
  2440. Character["Advancing Fortress"].FHead.face.Transparency = 1
  2441. end
  2442. if k == "]" and IsWearingArmor == true and Invisible == false then
  2443. Armor("Off")
  2444. Character["Advancing Fortress"].Hat.Part.Transparency = 0
  2445. Character["Advancing Fortress"].Pipe.Part.Transparency = 0
  2446. Character["Advancing Fortress"].Armor.Part.Transparency = 0
  2447. Character["Advancing Fortress"].armban1.Part.Transparency = 0
  2448. Character["Advancing Fortress"].armban2.Part.Transparency = 0
  2449. Character["Advancing Fortress"].lhip.Part.Transparency = 0
  2450. Character["Advancing Fortress"].rhip.Part.Transparency = 0
  2451. Character["Advancing Fortress"].h1.Part.Transparency = 0
  2452. Character["Advancing Fortress"].h2.Part.Transparency = 0
  2453. Character["Advancing Fortress"].h3.Part.Transparency = 0
  2454. Character["Advancing Fortress"].h4.Part.Transparency = 0
  2455. Character["Advancing Fortress"].pack.Part.Transparency = 0
  2456. Character["Advancing Fortress"].hand1.Part.Transparency = 0
  2457. Character["Advancing Fortress"].hand2.Part.Transparency = 0
  2458. Character["Advancing Fortress"].FHead.face.Transparency = 0
  2459. end
  2460. end)
  2461. Mouse.KeyUp:connect(function(k)
  2462. k = k:lower()
  2463. if attack == true and ora == true and k == "z" and IsWearingArmor == false then
  2464. ora = false
  2465. elseif attack == true and ShieldMode == true and k == "c" and IsWearingArmor == false then
  2466. ShieldMode = false
  2467. end
  2468. end)
  2469. coroutine.resume(coroutine.create(function(Part, Part2)
  2470. while Part.Parent ~= nil do
  2471. swait(math.random(100, 150))
  2472. for i = 0, 1, 0.2 do
  2473. wait()
  2474. Eye1.Mesh.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  2475. Eye2.Mesh.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  2476. end
  2477. for i = 0, 1, 0.2 do
  2478. swait()
  2479. Eye1.Mesh.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  2480. Eye2.Mesh.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  2481. end
  2482. end
  2483. end), Eye1, Eye2)
  2484. while true do
  2485. swait()
  2486. for i, v in pairs(Character:children()) do
  2487. if v:IsA("Part") and IsWearingArmor == true then
  2488. v.Anchored = false
  2489. end
  2490. end
  2491. for i, v in pairs(AdvancingFortress:GetChildren()) do
  2492. if v:IsA("Part") then
  2493. v.Material = "SmoothPlastic"
  2494. v.CanCollide = false
  2495. elseif v:IsA("Humanoid") then
  2496. v:remove()
  2497. elseif v:IsA("Accessory") then
  2498. v:remove()
  2499. elseif v:IsA("Shirt") then
  2500. v:remove()
  2501. elseif v:IsA("Pants") then
  2502. v:remove()
  2503. elseif v:IsA("Script") or v:IsA("LocalScript") then
  2504. v:remove()
  2505. elseif v:IsA("BodyColors") then
  2506. v:remove()
  2507. elseif v:IsA("ShirtGraphic") then
  2508. v:remove()
  2509. end
  2510. end
  2511. HHandle.Transparency = 1
  2512. THandle.Transparency = 1
  2513. AHandleR.Transparency = 1
  2514. AHandleL.Transparency = 1
  2515. LHandleR.Transparency = 1
  2516. LHandleL.Transparency = 1
  2517. RootPart.Transparency = 1
  2518. HitboxR.Transparency = 1
  2519. HitboxL.Transparency = 1
  2520. Head.BrickColor = BrickColor.new("Lily white")
  2521. Torso.BrickColor = BrickColor.new("Lily white")
  2522. RightArm.BrickColor = BrickColor.new("Lily white")
  2523. LeftArm.BrickColor = BrickColor.new("Lily white")
  2524. RightLeg.BrickColor = BrickColor.new("Lily white")
  2525. LeftLeg.BrickColor = BrickColor.new("Lily white")
  2526. RootPart.Anchored = true
  2527. Torsovelocity = (Character.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2528. velocity = Character.HumanoidRootPart.Velocity.y
  2529. sine = sine + change
  2530. Shield.Anchored = true
  2531. Shield.CFrame = Shield.CFrame:lerp(RootPart.CFrame * CFrame.new(0, 0, -3.2), 1)
  2532. local hit, pos = rayCast(Character.HumanoidRootPart.Position, CFrame.new(Character.HumanoidRootPart.Position, Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2533. if Character.HumanoidRootPart.Velocity.y > 1 and hit == nil then
  2534. Anim = "Jump"
  2535. if attack == false then
  2536. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2537. PlayAnimationFromTable({
  2538. CFrame.new(0, 0.00872418843, 0.0292903651, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2539. CFrame.new(0, 1.49999177, -1.49011612E-7, 1, 0, 0, 0, 0.98480767, 0.173648626, 0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2540. CFrame.new(1.64140427, 0.273908556, 0.192029893, 0.946035206, -0.31541416, 0.0743736848, 0.284469575, 0.91821146, 0.275617331, -0.155224368, -0.239586651, 0.958386064) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2541. CFrame.new(-1.59350562, 0.239538491, 0.192243189, 0.935008764, 0.347148597, -0.0724328309, -0.312019885, 0.902400434, 0.297181845, 0.168529674, -0.255267143, 0.952069581) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2542. CFrame.new(0.602718651, -1.95556056, 0.410092652, 0.978475571, 0.0150757888, -0.205834776, 0.0853612274, 0.878464639, 0.470120817, 0.187906027, -0.477568805, 0.85826844) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2543. CFrame.new(-0.41903314, -1.41877925, -0.229210436, 0.962251842, -0.0299757104, 0.270510197, -0.084186092, 0.912393093, 0.400567293, -0.258819073, -0.408219665, 0.875425339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  2544. }, 0.3, false)
  2545. end
  2546. elseif Character.HumanoidRootPart.Velocity.y < -1 and hit == nil then
  2547. Anim = "Fall"
  2548. if attack == false then
  2549. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2550. PlayAnimationFromTable({
  2551. CFrame.new(0, -0.0366669223, -0.0478199311, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2552. CFrame.new(0, 1.58110774, -0.115850762, 1, 0, 0, 0, 0.98480767, 0.173647821, 0, -0.173647821, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2553. CFrame.new(1.72150326, 0.610064566, 0.0891361833, 0.724097908, -0.685675204, 0.0743751749, 0.645872176, 0.711960018, 0.275611937, -0.241932437, -0.151533186, 0.958387375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2554. CFrame.new(-1.69228244, 0.568353653, 0.082095027, 0.759895504, 0.646005511, -0.0724337399, -0.601845145, 0.741260946, 0.297183931, 0.24567467, -0.182231784, 0.952074111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2555. CFrame.new(0.60271728, -1.95556188, 0.410093039, 0.978470623, -0.00292155147, -0.206365243, 0.0853614658, 0.916095972, 0.391767859, 0.187905625, -0.400949359, 0.896622121) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2556. CFrame.new(-0.453899324, -1.81726217, -0.229221463, 0.962255239, -0.00628663599, 0.272094905, -0.0841865242, 0.943832874, 0.319526881, -0.258820891, -0.33037129, 0.90767473) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  2557. }, 0.3, false)
  2558. end
  2559. elseif Torsovelocity < 1 and hit ~= nil then
  2560. Anim = "Idle"
  2561. if attack == false then
  2562. change = 1
  2563. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2564. PlayAnimationFromTable({
  2565. CFrame.new(0.1, -0.00190299738, -0.0435779989, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2566. CFrame.new(0.1, 1.49999213, 3.27825546E-7, 1, 0, 0, 0, 0.99619478, 0.0871553123, 0, -0.0871553123, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2567. CFrame.new(1.74141297, 0.173907071, -0.107973814, 0.946035922, -0.270955235, 0.177766502, 0.284470022, 0.957103431, -0.055051513, -0.155224428, 0.102649838, 0.982532144) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2568. CFrame.new(-1.49350157, 0.139536366, -0.107754946, 0.935009062, 0.284010828, -0.212358981, -0.312018842, 0.943447471, -0.11203292, 0.168530986, 0.171011835, 0.970748305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2569. CFrame.new(0.702711678, -1.89952374, -0.0967197716, 0.978471398, -0.0562333167, -0.198576227, 0.0853610933, 0.986278713, 0.141314447, 0.187904745, -0.155223012, 0.969844699) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2570. CFrame.new(-0.519029164, -1.90815639, -0.0860156417, 0.962250412, 0.0410595387, 0.269051194, -0.0841863081, 0.984977186, 0.150772721, -0.258818805, -0.167731494, 0.951251626) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  2571. }, 0.3, false)
  2572. end
  2573. elseif Torsovelocity > 2 and hit ~= nil then
  2574. Anim = "Walk"
  2575. if attack == false then
  2576. RootPart.CFrame = RootPart.CFrame:lerp(Character.HumanoidRootPart.CFrame * CFrame.new(2, 1 + 0.5 * math.cos(sine / 20), 3), 0.5)
  2577. PlayAnimationFromTable({
  2578. CFrame.new(0, -0.0234659836, -0.171147972, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2579. CFrame.new(0, 1.49999166, 1.1920929E-7, 1, 0, 0, 0, 0.98480773, -0.173648983, 0, 0.173648953, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2580. CFrame.new(1.60905385, 0.122740321, 0.227665678, 0.946036339, -0.320693314, 0.0465966538, 0.284468234, 0.89069742, 0.354595304, -0.155219615, -0.322205007, 0.93385905) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2581. CFrame.new(-1.55878484, 0.127169654, 0.148623466, 0.93500936, 0.339513272, -0.102411598, -0.312018752, 0.924868107, 0.217401206, 0.168527737, -0.171317667, 0.970695019) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2582. CFrame.new(0.585851789, -1.60362172, -0.143285036, 0.978476226, 0.0150748575, -0.205834031, 0.0853618756, 0.878461003, 0.470117748, 0.187905103, -0.477570593, 0.858265638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2583. CFrame.new(-0.563320339, -1.90456724, 0.225245774, 0.982039452, -0.00800410938, 0.188514173, -0.0707257539, 0.910641074, 0.407099873, -0.174927384, -0.413120717, 0.893718541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  2584. }, 0.3, false)
  2585. end
  2586. end
  2587. if 0 < #Effects then
  2588. for e = 1, #Effects do
  2589. if Effects[e] ~= nil then
  2590. local Thing = Effects[e]
  2591. if Thing ~= nil then
  2592. local Part = Thing[1]
  2593. local Mode = Thing[2]
  2594. local Delay = Thing[3]
  2595. local IncX = Thing[4]
  2596. local IncY = Thing[5]
  2597. local IncZ = Thing[6]
  2598. if Thing[2] == "Shoot" then
  2599. local Look = Thing[1]
  2600. local move = 30
  2601. if Thing[8] == 3 then
  2602. move = 10
  2603. end
  2604. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  2605. if Thing[10] ~= nil then
  2606. da = pos
  2607. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  2608. cfa = CFrame.new(Thing[4], pos)
  2609. tehCF = cfa:lerp(cf2, 0.2)
  2610. Thing[1] = tehCF.lookVector
  2611. end
  2612. local mag = (Thing[4] - pos).magnitude
  2613. 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)
  2614. if Thing[8] == 2 then
  2615. 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)
  2616. end
  2617. Thing[4] = Thing[4] + Look * move
  2618. Thing[3] = Thing[3] - 1
  2619. if 2 < Thing[5] then
  2620. Thing[5] = Thing[5] - 0.3
  2621. Thing[6] = Thing[6] - 0.3
  2622. end
  2623. if hit ~= nil then
  2624. Thing[3] = 0
  2625. if Thing[8] == 1 or Thing[8] == 3 then
  2626. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2627. elseif Thing[8] == 2 then
  2628. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2629. if hit.Parent:findFirstChild("Humanoid") ~= nil or hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  2630. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Tr. Flu. Yellow"), "Reference", Vector3.new())
  2631. ref.Anchored = true
  2632. ref.CFrame = CFrame.new(pos)
  2633. CFuncs.Sound.Create("161006093", ref, 1, 1.2)
  2634. game:GetService("Debris"):AddItem(ref, 0.2)
  2635. 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)
  2636. 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)
  2637. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  2638. end
  2639. end
  2640. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Tr. Flu. Yellow"), "Reference", Vector3.new())
  2641. ref.Anchored = true
  2642. ref.CFrame = CFrame.new(pos)
  2643. Effects.Sphere.Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  2644. game:GetService("Debris"):AddItem(ref, 1)
  2645. end
  2646. if Thing[3] <= 0 then
  2647. table.remove(Effects, e)
  2648. end
  2649. end
  2650. if Thing[2] == "FireWave" then
  2651. if Thing[3] <= Thing[4] then
  2652. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  2653. Thing[3] = Thing[3] + 1
  2654. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  2655. else
  2656. Part.Parent = nil
  2657. table.remove(Effects, e)
  2658. end
  2659. end
  2660. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  2661. if Thing[1].Transparency <= 1 then
  2662. if Thing[2] == "Block1" then
  2663. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2664. Mesh = Thing[7]
  2665. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2666. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2667. elseif Thing[2] == "Block2" then
  2668. Thing[1].CFrame = Thing[1].CFrame
  2669. Mesh = Thing[7]
  2670. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2671. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2672. elseif Thing[2] == "Fire" then
  2673. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  2674. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2675. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2676. elseif Thing[2] == "Cylinder" then
  2677. Mesh = Thing[7]
  2678. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2679. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2680. elseif Thing[2] == "Blood" then
  2681. Mesh = Thing[7]
  2682. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  2683. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2684. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2685. elseif Thing[2] == "Elec" then
  2686. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  2687. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2688. elseif Thing[2] == "Disappear" then
  2689. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2690. elseif Thing[2] == "Shatter" then
  2691. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2692. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2693. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2694. Thing[6] = Thing[6] + Thing[5]
  2695. end
  2696. else
  2697. Part.Parent = nil
  2698. table.remove(Effects, e)
  2699.  
  2700. end
  2701. end
  2702. end
  2703. end
  2704. end
  2705. end
  2706. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement