Advertisement
maskyman

otherdio

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