Christoffer07700Extr

fake terragod FE

Jul 31st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.94 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running...")
  167.  
  168. --//====================================================\\--
  169. --|| CREATED BY SHACKLUSTER
  170. --\\====================================================//--
  171.  
  172.  
  173.  
  174. local createstuff = function()
  175. local stuff = Instance.new("Model")
  176. local collar = Instance.new("Part")
  177. local mesh = Instance.new("FileMesh")
  178. local part = Instance.new("Part")
  179. local mesh_2 = Instance.new("CylinderMesh")
  180. local weld = Instance.new("ManualWeld")
  181. local eye = Instance.new("Part")
  182. local mesh_3 = Instance.new("SpecialMesh")
  183. local decal = Instance.new("Decal")
  184. local hood = Instance.new("Part")
  185. local mesh_4 = Instance.new("FileMesh")
  186. local pillar = Instance.new("Part")
  187. local rock = Instance.new("Part")
  188. local core = Instance.new("Attachment")
  189. local emit = Instance.new("ParticleEmitter")
  190. local mesh_5 = Instance.new("FileMesh")
  191. local rockspike = Instance.new("Part")
  192. local mesh_6 = Instance.new("SpecialMesh")
  193. local shield = Instance.new("Part")
  194. local core_2 = Instance.new("Attachment")
  195. local spinepart = Instance.new("Part")
  196. local mesh_7 = Instance.new("FileMesh")
  197. local pants = Instance.new("Pants")
  198. local shirt = Instance.new("Shirt")
  199. local emit_2 = Instance.new("ParticleEmitter")
  200. local vortex = Instance.new("ParticleEmitter")
  201. local wave = Instance.new("ParticleEmitter")
  202.  
  203. stuff.Name = "Stuff"
  204. stuff.Parent = workspace
  205. collar.Size = Vector3.new(2.06, 0.2, 2.06)
  206. collar.Name = "Collar"
  207. collar.Material = Enum.Material.Metal
  208. collar.TopSurface = Enum.SurfaceType.Smooth
  209. collar.BottomSurface = Enum.SurfaceType.Smooth
  210. collar.Parent = stuff
  211. collar.CFrame = CFrame.new(5.8, 46.2, -39.9)
  212. mesh.MeshId = "rbxassetid://1861264141"
  213. mesh.Parent = collar
  214. part.Size = Vector3.new(1.3, 0.2, 1.3)
  215. part.BrickColor = BrickColor.new("Really black")
  216. part.Color = Color3.new(0.109804, 0.0823529, 0.117647)
  217. part.Material = Enum.Material.Metal
  218. part.TopSurface = Enum.SurfaceType.Smooth
  219. part.BottomSurface = Enum.SurfaceType.Smooth
  220. part.Parent = collar
  221. part.CFrame = CFrame.new(5.8, 46.2, -39.9)
  222. mesh_2.Scale = Vector3.new(1.1, 1.1, 1.1)
  223. mesh_2.Parent = part
  224. weld.Part0 = collar
  225. weld.Name = "Weld"
  226. weld.Part1 = part
  227. weld.Parent = collar
  228. eye.Anchored = true
  229. eye.Size = Vector3.new(2, 2, 2)
  230. eye.BottomSurface = Enum.SurfaceType.Smooth
  231. eye.Material = Enum.Material.SmoothPlastic
  232. eye.Color = Color3.new(0.972549, 0.972549, 0.972549)
  233. eye.Name = "Eye"
  234. eye.TopSurface = Enum.SurfaceType.Smooth
  235. eye.BrickColor = BrickColor.new("Institutional white")
  236. eye.Parent = stuff
  237. eye.CFrame = CFrame.new(9.8, 45.845, -47.125) * CFrame.Angles(0, 0, 0)
  238. mesh_3.MeshType = Enum.MeshType.Sphere
  239. mesh_3.Parent = eye
  240. decal.Texture = "http://www.roblox.com/asset/?id=743271416"
  241. decal.Parent = eye
  242. hood.Size = Vector3.new(2.919, 2.394, 2.891)
  243. hood.BottomSurface = Enum.SurfaceType.Smooth
  244. hood.Material = Enum.Material.SmoothPlastic
  245. hood.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  246. hood.BrickColor = BrickColor.new("Really black")
  247. hood.TopSurface = Enum.SurfaceType.Smooth
  248. hood.Name = "Hood"
  249. hood.Parent = stuff
  250. hood.CFrame = CFrame.new(9.8, 44.1, -48.7)
  251. mesh_4.Scale = Vector3.new(1.55, 1.44, 1.4)
  252. mesh_4.MeshId = "rbxassetid://16952952"
  253. mesh_4.Parent = hood
  254. pillar.Size = Vector3.new(1, 1, 1)
  255. pillar.Name = "Pillar"
  256. pillar.Material = Enum.Material.Metal
  257. pillar.TopSurface = Enum.SurfaceType.Smooth
  258. pillar.BottomSurface = Enum.SurfaceType.Smooth
  259. pillar.Parent = stuff
  260. pillar.CFrame = CFrame.new(-26.77, 0.5, -37.02)
  261. rock.Size = Vector3.new(2.03, 1.978, 2.057)
  262. rock.BottomSurface = Enum.SurfaceType.Smooth
  263. rock.Name = "Rock"
  264. rock.TopSurface = Enum.SurfaceType.Smooth
  265. rock.Parent = stuff
  266. rock.CFrame = CFrame.new(-0.43, 45.908, -52.56)
  267. core.Name = "Core"
  268. core.Parent = rock
  269. emit.Enabled = false
  270. emit.Lifetime = NumberRange.new(1, 4)
  271. emit.Name = "Emit"
  272. emit.Speed = NumberRange.new(0, 35)
  273. emit.Rotation = NumberRange.new(0, 360)
  274. emit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)})
  275. emit.VelocitySpread = 360
  276. emit.Texture = "rbxassetid://281633012"
  277. emit.Acceleration = Vector3.new(0, -15, 0)
  278. emit.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118))
  279. emit.RotSpeed = NumberRange.new(-25, 25)
  280. emit.SpreadAngle = Vector2.new(360, 360)
  281. emit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(0.255, 3.06), NumberSequenceKeypoint.new(0.649, 2.131), NumberSequenceKeypoint.new(1, 0)})
  282. emit.Parent = core
  283. mesh_5.MeshId = "rbxassetid://1861108040"
  284. mesh_5.Parent = rock
  285. rockspike.Anchored = true
  286. rockspike.Size = Vector3.new(3.364, 20, 3.364)
  287. rockspike.BottomSurface = Enum.SurfaceType.Smooth
  288. rockspike.Material = Enum.Material.Grass
  289. rockspike.Color = Color3.new(0.423529, 0.345098, 0.294118)
  290. rockspike.Name = "RockSpike"
  291. rockspike.TopSurface = Enum.SurfaceType.Smooth
  292. rockspike.BrickColor = BrickColor.new("Pine Cone")
  293. rockspike.Parent = stuff
  294. rockspike.CFrame = CFrame.new(-0.43, 46.208, -29.96)
  295. mesh_6.TextureId = "rbxassetid://136560096"
  296. mesh_6.MeshType = Enum.MeshType.FileMesh
  297. mesh_6.MeshId = "rbxassetid://1861231635"
  298. mesh_6.Parent = rockspike
  299. shield.Size = Vector3.new(1, 1, 1)
  300. shield.Name = "Shield"
  301. shield.Material = Enum.Material.Metal
  302. shield.TopSurface = Enum.SurfaceType.Smooth
  303. shield.BottomSurface = Enum.SurfaceType.Smooth
  304. shield.Parent = stuff
  305. shield.CFrame = CFrame.new(-26.77, 0.5, -37.02)
  306. core_2.Name = "Core"
  307. core_2.Parent = shield
  308. spinepart.CanCollide = false
  309. spinepart.Size = Vector3.new(0.3, 0.3, 0.6)
  310. spinepart.BrickColor = BrickColor.new("Institutional white")
  311. spinepart.BottomSurface = Enum.SurfaceType.Smooth
  312. spinepart.Color = Color3.new(0.972549, 0.972549, 0.972549)
  313. spinepart.Name = "SpinePart"
  314. spinepart.TopSurface = Enum.SurfaceType.Smooth
  315. spinepart.Parent = stuff
  316. spinepart.CFrame = CFrame.new(-24.33, 46.208, -52.56)
  317. mesh_7.MeshId = "rbxassetid://1861166416"
  318. mesh_7.Parent = spinepart
  319. pants.Name = "Pants"
  320. pants.PantsTemplate = "http://www.roblox.com/asset/?id=1614573917"
  321. pants.Parent = stuff
  322. shirt.Name = "Shirt"
  323. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1604092628"
  324. shirt.Parent = stuff
  325. emit_2.Enabled = false
  326. emit_2.Lifetime = NumberRange.new(1, 4)
  327. emit_2.Name = "Emit"
  328. emit_2.Speed = NumberRange.new(0, 35)
  329. emit_2.Rotation = NumberRange.new(0, 360)
  330. emit_2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)})
  331. emit_2.VelocitySpread = 360
  332. emit_2.Texture = "rbxassetid://281633012"
  333. emit_2.Acceleration = Vector3.new(0, -15, 0)
  334. emit_2.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118))
  335. emit_2.RotSpeed = NumberRange.new(-25, 25)
  336. emit_2.SpreadAngle = Vector2.new(360, 360)
  337. emit_2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0.5), NumberSequenceKeypoint.new(1, 0)})
  338. emit_2.Parent = stuff
  339. vortex.Enabled = false
  340. vortex.Name = "Vortex"
  341. vortex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.5), NumberSequenceKeypoint.new(1, 0.5)})
  342. vortex.Lifetime = NumberRange.new(1)
  343. vortex.Rate = 0
  344. vortex.Speed = NumberRange.new(0)
  345. vortex.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118))
  346. vortex.Rotation = NumberRange.new(0, 360)
  347. vortex.ZOffset = -2
  348. vortex.RotSpeed = NumberRange.new(360)
  349. vortex.LightEmission = 1
  350. vortex.Texture = "rbxassetid://1084969997"
  351. vortex.LockedToPart = true
  352. vortex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)})
  353. vortex.Parent = stuff
  354. wave.Enabled = false
  355. wave.Lifetime = NumberRange.new(0.3)
  356. wave.Name = "Wave"
  357. wave.Speed = NumberRange.new(0)
  358. wave.LightEmission = 1
  359. wave.Rate = 1
  360. wave.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.17, 0.393), NumberSequenceKeypoint.new(0.334, 0.661), NumberSequenceKeypoint.new(0.535, 0.836), NumberSequenceKeypoint.new(1, 1)})
  361. wave.Texture = "rbxassetid://1084991215"
  362. wave.Rotation = NumberRange.new(-180, 180)
  363. wave.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)})
  364. wave.ZOffset = 1
  365. wave.Parent = stuff
  366. for i,v in pairs(stuff:GetChildren()) do
  367. v.Parent = script
  368. end
  369. end
  370.  
  371. createstuff()
  372.  
  373.  
  374.  
  375.  
  376.  
  377. wait(0.2)
  378.  
  379. Player = game:GetService("Players").LocalPlayer
  380. PlayerGui = Player.PlayerGui
  381. Cam = workspace.CurrentCamera
  382. Backpack = Player.Backpack
  383. Character = Player.Character
  384. Humanoid = Character.Humanoid
  385. Mouse = Player:GetMouse()
  386. RootPart = Character["HumanoidRootPart"]
  387. Torso = Character["Torso"]
  388. Head = Character["Head"]
  389. RightArm = Character["Right Arm"]
  390. LeftArm = Character["Left Arm"]
  391. RightLeg = Character["Right Leg"]
  392. LeftLeg = Character["Left Leg"]
  393. RootJoint = RootPart["RootJoint"]
  394. Neck = Torso["Neck"]
  395. RightShoulder = Torso["Right Shoulder"]
  396. LeftShoulder = Torso["Left Shoulder"]
  397. RightHip = Torso["Right Hip"]
  398. LeftHip = Torso["Left Hip"]
  399.  
  400. IT = Instance.new
  401. CF = CFrame.new
  402. VT = Vector3.new
  403. RAD = math.rad
  404. C3 = Color3.new
  405. UD2 = UDim2.new
  406. BRICKC = BrickColor.new
  407. ANGLES = CFrame.Angles
  408. EULER = CFrame.fromEulerAnglesXYZ
  409. COS = math.cos
  410. ACOS = math.acos
  411. SIN = math.sin
  412. ASIN = math.asin
  413. ABS = math.abs
  414. MRANDOM = math.random
  415. FLOOR = math.floor
  416.  
  417. --//=================================\\
  418. --|| USEFUL VALUES
  419. --\\=================================//
  420.  
  421. Animation_Speed = 3
  422. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  423. local Speed = 35
  424. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  425. local NECKC0 = CF(0, 1.75, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  426. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  427. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  428. local DAMAGEMULTIPLIER = 1
  429. local ANIM = "Idle"
  430. local ATTACK = false
  431. local EQUIPPED = false
  432. local HOLD = false
  433. local COMBO = 1
  434. local Rooted = false
  435. local SINE = 0
  436. local KEYHOLD = false
  437. local CHANGE = 2 / Animation_Speed
  438. local WALKINGANIM = false
  439. local VALUE1 = false
  440. local VALUE2 = false
  441. local ROBLOXIDLEANIMATION = IT("Animation")
  442. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  443. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  444. --ROBLOXIDLEANIMATION.Parent = Humanoid
  445. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  446. WEAPONGUI.Name = "Weapon GUI"
  447. local Effects = IT("Folder", Character)
  448. Effects.Name = "Effects"
  449. local ANIMATOR = Humanoid.Animator
  450. local ANIMATE = Character.Animate
  451. local UNANCHOR = true
  452. local PLAYSONG = true
  453. local EXTRATRANS = 0
  454.  
  455. --//=================================\\
  456. --\\=================================//
  457.  
  458.  
  459. --//=================================\\
  460. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  461. --\\=================================//
  462.  
  463. ArtificialHB = Instance.new("BindableEvent", script)
  464. ArtificialHB.Name = "ArtificialHB"
  465.  
  466. script:WaitForChild("ArtificialHB")
  467.  
  468. frame = Frame_Speed
  469. tf = 0
  470. allowframeloss = false
  471. tossremainder = false
  472. lastframe = tick()
  473. script.ArtificialHB:Fire()
  474.  
  475. game:GetService("RunService").Heartbeat:connect(function(s, p)
  476. tf = tf + s
  477. if tf >= frame then
  478. if allowframeloss then
  479. script.ArtificialHB:Fire()
  480. lastframe = tick()
  481. else
  482. for i = 1, math.floor(tf / frame) do
  483. script.ArtificialHB:Fire()
  484. end
  485. lastframe = tick()
  486. end
  487. if tossremainder then
  488. tf = 0
  489. else
  490. tf = tf - frame * math.floor(tf / frame)
  491. end
  492. end
  493. end)
  494.  
  495. --//=================================\\
  496. --\\=================================//
  497.  
  498. --//=================================\\
  499. --|| SOME FUNCTIONS
  500. --\\=================================//
  501.  
  502. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  503. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  504. end
  505.  
  506. function PositiveAngle(NUMBER)
  507. if NUMBER >= 0 then
  508. NUMBER = 0
  509. end
  510. return NUMBER
  511. end
  512.  
  513. function NegativeAngle(NUMBER)
  514. if NUMBER <= 0 then
  515. NUMBER = 0
  516. end
  517. return NUMBER
  518. end
  519.  
  520. function Swait(NUMBER)
  521. if NUMBER == 0 or NUMBER == nil then
  522. ArtificialHB.Event:wait()
  523. else
  524. for i = 1, NUMBER do
  525. ArtificialHB.Event:wait()
  526. end
  527. end
  528. end
  529.  
  530. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  531. local NEWMESH = IT(MESH)
  532. if MESH == "SpecialMesh" then
  533. NEWMESH.MeshType = MESHTYPE
  534. if MESHID ~= "nil" and MESHID ~= "" then
  535. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  536. end
  537. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  538. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  539. end
  540. end
  541. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  542. NEWMESH.Scale = SCALE
  543. NEWMESH.Parent = PARENT
  544. return NEWMESH
  545. end
  546.  
  547. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  548. local NEWPART = IT("Part")
  549. NEWPART.formFactor = FORMFACTOR
  550. NEWPART.Reflectance = REFLECTANCE
  551. NEWPART.Transparency = TRANSPARENCY
  552. NEWPART.CanCollide = false
  553. NEWPART.Locked = true
  554. NEWPART.Anchored = true
  555. if ANCHOR == false then
  556. NEWPART.Anchored = false
  557. end
  558. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  559. NEWPART.Name = NAME
  560. NEWPART.Size = SIZE
  561. NEWPART.Position = Torso.Position
  562. NEWPART.Material = MATERIAL
  563. NEWPART:BreakJoints()
  564. NEWPART.Parent = PARENT
  565. return NEWPART
  566. end
  567.  
  568. local function weldBetween(a, b)
  569. local weldd = Instance.new("ManualWeld")
  570. weldd.Part0 = a
  571. weldd.Part1 = b
  572. weldd.C0 = CFrame.new()
  573. weldd.C1 = b.CFrame:inverse() * a.CFrame
  574. weldd.Parent = a
  575. return weldd
  576. end
  577.  
  578.  
  579. function QuaternionFromCFrame(cf)
  580. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  581. local trace = m00 + m11 + m22
  582. if trace > 0 then
  583. local s = math.sqrt(1 + trace)
  584. local recip = 0.5 / s
  585. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  586. else
  587. local i = 0
  588. if m11 > m00 then
  589. i = 1
  590. end
  591. if m22 > (i == 0 and m00 or m11) then
  592. i = 2
  593. end
  594. if i == 0 then
  595. local s = math.sqrt(m00 - m11 - m22 + 1)
  596. local recip = 0.5 / s
  597. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  598. elseif i == 1 then
  599. local s = math.sqrt(m11 - m22 - m00 + 1)
  600. local recip = 0.5 / s
  601. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  602. elseif i == 2 then
  603. local s = math.sqrt(m22 - m00 - m11 + 1)
  604. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  605. end
  606. end
  607. end
  608.  
  609. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  610. local xs, ys, zs = x + x, y + y, z + z
  611. local wx, wy, wz = w * xs, w * ys, w * zs
  612. local xx = x * xs
  613. local xy = x * ys
  614. local xz = x * zs
  615. local yy = y * ys
  616. local yz = y * zs
  617. local zz = z * zs
  618. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  619. end
  620.  
  621. function QuaternionSlerp(a, b, t)
  622. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  623. local startInterp, finishInterp;
  624. if cosTheta >= 0.0001 then
  625. if (1 - cosTheta) > 0.0001 then
  626. local theta = ACOS(cosTheta)
  627. local invSinTheta = 1 / SIN(theta)
  628. startInterp = SIN((1 - t) * theta) * invSinTheta
  629. finishInterp = SIN(t * theta) * invSinTheta
  630. else
  631. startInterp = 1 - t
  632. finishInterp = t
  633. end
  634. else
  635. if (1 + cosTheta) > 0.0001 then
  636. local theta = ACOS(-cosTheta)
  637. local invSinTheta = 1 / SIN(theta)
  638. startInterp = SIN((t - 1) * theta) * invSinTheta
  639. finishInterp = SIN(t * theta) * invSinTheta
  640. else
  641. startInterp = t - 1
  642. finishInterp = t
  643. end
  644. end
  645. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  646. end
  647.  
  648. function Clerp(a, b, t)
  649. local qa = {QuaternionFromCFrame(a)}
  650. local qb = {QuaternionFromCFrame(b)}
  651. local ax, ay, az = a.x, a.y, a.z
  652. local bx, by, bz = b.x, b.y, b.z
  653. local _t = 1 - t
  654. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  655. end
  656.  
  657. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  658. local frame = IT("Frame")
  659. frame.BackgroundTransparency = TRANSPARENCY
  660. frame.BorderSizePixel = BORDERSIZEPIXEL
  661. frame.Position = POSITION
  662. frame.Size = SIZE
  663. frame.BackgroundColor3 = COLOR
  664. frame.BorderColor3 = BORDERCOLOR
  665. frame.Name = NAME
  666. frame.Parent = PARENT
  667. return frame
  668. end
  669.  
  670. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  671. local label = IT("TextLabel")
  672. label.BackgroundTransparency = 1
  673. label.Size = UD2(1, 0, 1, 0)
  674. label.Position = UD2(0, 0, 0, 0)
  675. label.TextColor3 = TEXTCOLOR
  676. label.TextStrokeTransparency = STROKETRANSPARENCY
  677. label.TextTransparency = TRANSPARENCY
  678. label.FontSize = TEXTFONTSIZE
  679. label.Font = TEXTFONT
  680. label.BorderSizePixel = BORDERSIZEPIXEL
  681. label.TextScaled = false
  682. label.Text = TEXT
  683. label.Name = NAME
  684. label.Parent = PARENT
  685. return label
  686. end
  687.  
  688. function NoOutlines(PART)
  689. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  690. end
  691.  
  692. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  693. local NEWWELD = IT(TYPE)
  694. NEWWELD.Part0 = PART0
  695. NEWWELD.Part1 = PART1
  696. NEWWELD.C0 = C0
  697. NEWWELD.C1 = C1
  698. NEWWELD.Parent = PARENT
  699. return NEWWELD
  700. end
  701.  
  702. local S = IT("Sound")
  703. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  704. local NEWSOUND = nil
  705. coroutine.resume(coroutine.create(function()
  706. NEWSOUND = S:Clone()
  707. NEWSOUND.Parent = PARENT
  708. NEWSOUND.Volume = VOLUME
  709. NEWSOUND.Pitch = PITCH
  710. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  711. NEWSOUND:play()
  712. if DOESLOOP == true then
  713. NEWSOUND.Looped = true
  714. else
  715. repeat wait(1) until NEWSOUND.Playing == false
  716. NEWSOUND:remove()
  717. end
  718. end))
  719. return NEWSOUND
  720. end
  721.  
  722. function CFrameFromTopBack(at, top, back)
  723. local right = top:Cross(back)
  724. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  725. end
  726.  
  727. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  728. function WACKYEFFECT(Table)
  729. local TYPE = (Table.EffectType or "Sphere")
  730. local SIZE = (Table.Size or VT(1,1,1))
  731. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  732. local TRANSPARENCY = (Table.Transparency or 0)
  733. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  734. local CFRAME = (Table.CFrame or Torso.CFrame)
  735. local MOVEDIRECTION = (Table.MoveToPos or nil)
  736. local ROTATION1 = (Table.RotationX or 0)
  737. local ROTATION2 = (Table.RotationY or 0)
  738. local ROTATION3 = (Table.RotationZ or 0)
  739. local MATERIAL = (Table.Material or "Neon")
  740. local COLOR = (Table.Color or C3(1,1,1))
  741. local TIME = (Table.Time or 45)
  742. local SOUNDID = (Table.SoundID or nil)
  743. local SOUNDPITCH = (Table.SoundPitch or nil)
  744. local SOUNDVOLUME = (Table.SoundVolume or nil)
  745. coroutine.resume(coroutine.create(function()
  746. local PLAYSSOUND = false
  747. local SOUND = nil
  748. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  749. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  750. PLAYSSOUND = true
  751. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  752. end
  753. EFFECT.Color = COLOR
  754. local MSH = nil
  755. if TYPE == "Sphere" then
  756. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  757. elseif TYPE == "Block" then
  758. MSH = IT("BlockMesh",EFFECT)
  759. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  760. elseif TYPE == "Wave" then
  761. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  762. elseif TYPE == "Ring" then
  763. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  764. elseif TYPE == "Slash" then
  765. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  766. elseif TYPE == "Round Slash" then
  767. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  768. elseif TYPE == "Swirl" then
  769. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  770. elseif TYPE == "Skull" then
  771. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  772. elseif TYPE == "Crystal" then
  773. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  774. end
  775. if MSH ~= nil then
  776. local MOVESPEED = nil
  777. if MOVEDIRECTION ~= nil then
  778. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  779. end
  780. local GROWTH = SIZE - ENDSIZE
  781. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  782. if TYPE == "Block" then
  783. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  784. else
  785. EFFECT.CFrame = CFRAME
  786. end
  787. for LOOP = 1, TIME+1 do
  788. Swait()
  789. MSH.Scale = MSH.Scale - GROWTH/TIME
  790. if TYPE == "Wave" then
  791. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  792. end
  793. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  794. if TYPE == "Block" then
  795. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  796. else
  797. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  798. end
  799. if MOVEDIRECTION ~= nil then
  800. local ORI = EFFECT.Orientation
  801. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  802. EFFECT.Orientation = ORI
  803. end
  804. end
  805. if PLAYSSOUND == false then
  806. EFFECT:remove()
  807. else
  808. repeat Swait() until EFFECT:FindFirstChild("Sound") == nil
  809. EFFECT:remove()
  810. end
  811. else
  812. if PLAYSSOUND == false then
  813. EFFECT:remove()
  814. else
  815. repeat Swait() until EFFECT:FindFirstChild("Sound") == nil
  816. EFFECT:remove()
  817. end
  818. end
  819. end))
  820. end
  821.  
  822. function MakeForm(PART,TYPE)
  823. if TYPE == "Cyl" then
  824. local MSH = IT("CylinderMesh",PART)
  825. elseif TYPE == "Ball" then
  826. local MSH = IT("SpecialMesh",PART)
  827. MSH.MeshType = "Sphere"
  828. elseif TYPE == "Wedge" then
  829. local MSH = IT("SpecialMesh",PART)
  830. MSH.MeshType = "Wedge"
  831. end
  832. end
  833.  
  834. Debris = game:GetService("Debris")
  835.  
  836. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  837. local DIRECTION = CF(StartPos,EndPos).lookVector
  838. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  839. end
  840.  
  841. local ROCK = script.Rock
  842. ROCK.Parent = nil
  843. function GetRock(FLOOROBJECT)
  844. local Rock = ROCK:Clone()
  845. Rock.Parent = Effects
  846. if FLOOROBJECT ~= nil then
  847. if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then
  848. Rock.Material = FLOOROBJECT.Material
  849. Rock.Color = FLOOROBJECT.Color
  850. else
  851. Rock.Material = "Slate"
  852. Rock.Color = BRICKC"Dirt brown".Color
  853. end
  854. else
  855. Rock.Material = "Slate"
  856. Rock.Color = BRICKC"Dirt brown".Color
  857. end
  858. Rock.Core.Emit.Color = ColorSequence.new(Rock.Color)
  859. return Rock
  860. end
  861.  
  862. local SPIKE = script.RockSpike
  863. SPIKE.Parent = nil
  864. function GetSpike(FLOOROBJECT)
  865. local Rock = SPIKE:Clone()
  866. Rock.Parent = Effects
  867. if FLOOROBJECT ~= nil then
  868. if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then
  869. Rock.Material = FLOOROBJECT.Material
  870. Rock.Color = FLOOROBJECT.Color
  871. else
  872. Rock.Material = "Slate"
  873. Rock.Color = BRICKC"Dirt brown".Color
  874. end
  875. else
  876. Rock.Material = "Slate"
  877. Rock.Color = BRICKC"Dirt brown".Color
  878. end
  879. return Rock
  880. end
  881.  
  882. local SHIELD = script.Shield
  883. SHIELD.Parent = nil
  884. function GetShield(FLOOROBJECT)
  885. local Rock = SHIELD:Clone()
  886. Rock.Parent = Effects
  887. if FLOOROBJECT ~= nil then
  888. Rock.Material = FLOOROBJECT.Material
  889. Rock.Color = FLOOROBJECT.Color
  890. else
  891. Rock.Material = "Slate"
  892. Rock.Color = BRICKC"Dirt brown".Color
  893. end
  894. return Rock
  895. end
  896.  
  897. function RespondToImpact(Object,Rock)
  898. local BREAKABLEMATERIALS = {{Enum.Material.Glass,5,1571353313},{Enum.Material.Ice,2,151284431},{Enum.Material.Wood,1.3,131144461},{Enum.Material.WoodPlanks,1,131144461},{Enum.Material.Cobblestone,0.2,130972023}}
  899. for i = 1, #BREAKABLEMATERIALS do
  900. local MATERIAL = BREAKABLEMATERIALS[i]
  901. if Object.Material == MATERIAL[1] then
  902. local A = Rock.Size.Magnitude
  903. local B = Object.Size.Magnitude
  904. if B < A*MATERIAL[2] then
  905. WaveParticles(Object.Position,B*3,Object.Color)
  906. Object:remove()
  907. CreateSound(MATERIAL[3], Rock, 5, MRANDOM(8,12)/10, false)
  908. end
  909. end
  910. end
  911. end
  912.  
  913. function WaveParticles(Position,Size,Color)
  914. local BASE = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Shockwave", VT(0,0,0), true)
  915. BASE.CFrame = CF(Position)
  916. local A = IT("Attachment",BASE)
  917. local WAVE = script.Wave:Clone()
  918. WAVE.Parent = A
  919. WAVE.Size = NumberSequence.new(0,Size)
  920. WAVE.Color = ColorSequence.new(Color)
  921. Debris:AddItem(BASE,0.5)
  922. WAVE:Emit(1)
  923. end
  924.  
  925. --//=================================\\
  926. --|| WEAPON CREATION
  927. --\\=================================//
  928.  
  929. local sick = Instance.new("Sound",Character)
  930.  
  931. local PILLAR = script.Pillar
  932. PILLAR.Parent = nil
  933. local HOOD = script.Hood
  934. HOOD.Parent = Character
  935. HOOD.CFrame = Torso.CFrame*CFrame.new(0,2.2,0)
  936. weldBetween(Torso,HOOD)
  937. Head:ClearAllChildren()
  938. Head.Transparency = 1
  939. local EYE = script.Eye
  940. EYE.Parent = Character
  941. EYE.CFrame = Head.CFrame*CF(0,0,0)
  942. EYE.Anchored = false
  943. weldBetween(EYE,Head)
  944. local COLLAR = script.Collar
  945. COLLAR.Parent = Character
  946. COLLAR.CFrame = Torso.CFrame*CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(0))
  947. weldBetween(Torso,COLLAR)
  948. local BONE = script.SpinePart
  949. BONE.Parent = nil
  950. local TAIL = {}
  951. local LASTPART = Torso
  952. local SIZE = BONE.Size
  953. for i = 1, 23 do
  954. local PART = BONE:Clone()
  955. PART.Anchored = false
  956. PART.Parent = Character
  957. PART.Size = SIZE*((25-i)/10)/1.6
  958. if LASTPART == Torso then
  959. local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-0.8,0.6)* ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0))
  960. LASTPART = PART
  961. table.insert(TAIL,WELD)
  962. else
  963. local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-PART.Size.Y/1.2,-0.01), CF(0, 0, 0))
  964. LASTPART = PART
  965. table.insert(TAIL,WELD)
  966. end
  967. end
  968. for _, c in pairs(Character:GetChildren()) do
  969. if c:IsA("BasePart") then
  970. if c:FindFirstChildOfClass("ParticleEmitter") then
  971. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  972. end
  973. if c == Head then
  974. if c:FindFirstChild("face") then
  975. c.face:remove()
  976. end
  977. end
  978. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  979. c:remove()
  980. end
  981. end
  982. local BODY = {}
  983. for _, c in pairs(Character:GetDescendants()) do
  984. if c:IsA("BasePart") and c.Name ~= "Handle" then
  985. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  986. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  987. end
  988. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  989. elseif c:IsA("JointInstance") then
  990. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  991. end
  992. end
  993. for e = 1, #BODY do
  994. if BODY[e] ~= nil then
  995. local STUFF = BODY[e]
  996. local PART = STUFF[1]
  997. local PARENT = STUFF[2]
  998. local MATERIAL = STUFF[3]
  999. local COLOR = STUFF[4]
  1000. local TRANSPARENCY = STUFF[5]
  1001. if PART.ClassName == "Part" and PART ~= RootPart then
  1002. PART.Material = MATERIAL
  1003. PART.Color = COLOR
  1004. PART.Transparency = TRANSPARENCY
  1005. end
  1006. PART.AncestryChanged:Connect(function()
  1007. PART.Parent = PARENT
  1008. end)
  1009. end
  1010. end
  1011. function refit()
  1012. Character.Parent = workspace
  1013. for e = 1, #BODY do
  1014. if BODY[e] ~= nil then
  1015. local STUFF = BODY[e]
  1016. local PART = STUFF[1]
  1017. local PARENT = STUFF[2]
  1018. local MATERIAL = STUFF[3]
  1019. local COLOR = STUFF[4]
  1020. local TRANSPARENCY = STUFF[5]
  1021. if PART:IsA("BasePart") and PART ~= RootPart then
  1022. PART.Material = MATERIAL
  1023. PART.Color = COLOR
  1024. PART.Transparency = TRANSPARENCY+EXTRATRANS
  1025. end
  1026. if PART.Parent ~= PARENT then
  1027. Humanoid:remove()
  1028. PART.Parent = PARENT
  1029. Humanoid = IT("Humanoid",Character)
  1030. end
  1031. end
  1032. end
  1033. end
  1034.  
  1035. Humanoid.Died:connect(function()
  1036. refit()
  1037. end)
  1038.  
  1039. --//=================================\\
  1040. --|| DAMAGING
  1041. --\\=================================//
  1042.  
  1043. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1044. Damage = Damage * DAMAGEMULTIPLIER
  1045. if Humanoid.Health ~= 0 then
  1046. Humanoid.Health = Humanoid.Health - Damage
  1047. end
  1048. end
  1049.  
  1050. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL,ROCK)
  1051. local CHILDREN = workspace:GetDescendants()
  1052. for index, CHILD in pairs(CHILDREN) do
  1053. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1054. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1055. if HUM then
  1056. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1057. if TORSO then
  1058. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1059. if INSTAKILL == true or HUM.MaxHealth > 5000 then
  1060. CHILD:BreakJoints()
  1061. else
  1062. local DMG = MRANDOM(MINDMG,MAXDMG)
  1063. ApplyDamage(HUM,DMG,TORSO)
  1064. end
  1065. if FLING > 0 then
  1066. for _, c in pairs(CHILD:GetChildren()) do
  1067. if c:IsA("BasePart") then
  1068. local bv = Instance.new("BodyVelocity",c)
  1069. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1070. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1071. Debris:AddItem(bv,0.05)
  1072. end
  1073. end
  1074. end
  1075. end
  1076. end
  1077. end
  1078. elseif CHILD:IsA("BasePart") and ROCK ~= nil then
  1079. if (CHILD.Position - POSITION).Magnitude <= RANGE then
  1080. RespondToImpact(CHILD,ROCK)
  1081. end
  1082. end
  1083. end
  1084. end
  1085.  
  1086. --//=================================\\
  1087. --|| ATTACK FUNCTIONS AND STUFF
  1088. --\\=================================//
  1089.  
  1090. function RockExplosion(Rock,Multiplier,Survive)
  1091. local EXPLOSION = Rock.Core:FindFirstChildOfClass("ParticleEmitter")
  1092. EXPLOSION.Color = ColorSequence.new(Rock.Color)
  1093. local SIZE = (Rock.Size.Y*4)*Multiplier
  1094. EXPLOSION.Enabled = false
  1095. EXPLOSION.Speed = NumberRange.new(0,SIZE*5)
  1096. EXPLOSION.Size = NumberSequence.new(SIZE/15,0)
  1097. EXPLOSION:Emit(200,300)
  1098. WaveParticles(Rock.Position,SIZE*2,Rock.Color)
  1099. coroutine.resume(coroutine.create(function()
  1100. Rock:BreakJoints()
  1101. if Survive == nil then
  1102. Rock.Transparency = 1
  1103. Rock.CanCollide = false
  1104. Rock.Anchored = true
  1105. Debris:AddItem(Rock,5)
  1106. end
  1107. CreateSound(165970126, Rock, 2, MRANDOM(8,12)/10, false)
  1108. ApplyAoE(Rock.Position,SIZE,25,30,35,false,Rock)
  1109. local HITFLOOR,HITPOS = Raycast(Rock.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, Rock.Size.Y/2, Character)
  1110. Swait()
  1111. if HITFLOOR then
  1112. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*7,3,SIZE*7), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = HITFLOOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1113. end
  1114. for i = 1, 5 do
  1115. WACKYEFFECT({Time = MRANDOM(15,55), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*5,0.2,SIZE*5), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Rock.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Rock.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1116. end
  1117. end))
  1118. end
  1119.  
  1120. function Bullet()
  1121. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1122. ATTACK = true
  1123. Rooted = true
  1124. local GYRO = IT("BodyGyro",RootPart)
  1125. GYRO.D = 2
  1126. GYRO.P = 2000
  1127. GYRO.MaxTorque = VT(0,4000000,0)
  1128. coroutine.resume(coroutine.create(function()
  1129. repeat
  1130. Swait()
  1131. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1132. until ATTACK == false
  1133. GYRO:Remove()
  1134. end))
  1135. local FLOOR = false
  1136. if HITFLOOR then
  1137. if HITFLOOR.Material ~= Enum.Material.Foil and HITFLOOR.Material ~= Enum.Material.Glass then
  1138. FLOOR = true
  1139. end
  1140. end
  1141. if FLOOR == true then
  1142. for i=0, 0.5, 0.1 / Animation_Speed do
  1143. Swait()
  1144. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed)
  1145. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  1146. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1147. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1148. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(-30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1149. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1150. end
  1151. for i=0, 0.25, 0.1 / Animation_Speed do
  1152. Swait()
  1153. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1154. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1155. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1156. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1157. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1158. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1159. end
  1160. local ROCKPLACED = false
  1161. local Rock = nil
  1162. if HITFLOOR.Anchored == true then
  1163. Rock = GetRock(HITFLOOR)
  1164. Rock.Core.Emit.Enabled = true
  1165. Rock.Size = VT(6,6,6)
  1166. Rock.CFrame = CF(RootPart.CFrame*CF(0,-9,-6).p,Mouse.Hit.p)
  1167. CreateSound(130972023, Rock, 2, MRANDOM(5,8)/10, false)
  1168. coroutine.resume(coroutine.create(function()
  1169. for i = 1, 30 do
  1170. Swait()
  1171. Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed)
  1172. end
  1173. ROCKPLACED = true
  1174. Rock.Core.Emit.Enabled = false
  1175. end))
  1176. else
  1177. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1178. local TORSO = HITFLOOR.Parent:FindFirstChild("Torso") or HITFLOOR.Parent:FindFirstChild("UpperTorso")
  1179. if TORSO then
  1180. Rock = TORSO
  1181. ROCK.Core:Clone().Parent = Rock
  1182. else
  1183. Rock = HITFLOOR
  1184. ROCK.Core:Clone().Parent = Rock
  1185. end
  1186. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1187. local TORSO = HITFLOOR.Parent.Parent:FindFirstChild("Torso") or HITFLOOR.Parent.Parent:FindFirstChild("UpperTorso")
  1188. if TORSO then
  1189. Rock = TORSO
  1190. ROCK.Core:Clone().Parent = Rock
  1191. else
  1192. Rock = HITFLOOR
  1193. ROCK.Core:Clone().Parent = Rock
  1194. end
  1195. else
  1196. Rock = HITFLOOR
  1197. ROCK.Core:Clone().Parent = Rock
  1198. end
  1199. Rock.Anchored = true
  1200. coroutine.resume(coroutine.create(function()
  1201. for i = 1, 30 do
  1202. Swait()
  1203. Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed)
  1204. end
  1205. ROCKPLACED = true
  1206. end))
  1207. end
  1208. for i=0, 0.1, 0.1 / Animation_Speed do
  1209. Swait()
  1210. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1211. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1212. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1213. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1214. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1215. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1216. end
  1217. repeat
  1218. Swait()
  1219. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed)
  1220. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1221. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1222. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1223. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed)
  1224. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1225. until ROCKPLACED == true
  1226. for i=0, 0.1, 0.1 / Animation_Speed do
  1227. Swait()
  1228. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
  1229. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1230. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1231. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1232. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
  1233. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1234. end
  1235. WaveParticles(Rock.Position,12,C3(1,1,1))
  1236. CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false)
  1237. coroutine.resume(coroutine.create(function()
  1238. if Rock.Parent:FindFirstChildOfClass("Humanoid") == nil then
  1239. for i = 1, 200 do
  1240. Swait()
  1241. Rock.CFrame = Rock.CFrame * CF(0,0,-1.2)
  1242. local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character)
  1243. if HIT then
  1244. RespondToImpact(HIT,Rock)
  1245. break
  1246. end
  1247. end
  1248. RockExplosion(Rock,1)
  1249. else
  1250. for i = 1, 60 do
  1251. Swait()
  1252. Rock.CFrame = Rock.CFrame * CF(0,0,-2)
  1253. local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, 3, Character)
  1254. if HIT then
  1255. RespondToImpact(HIT,Rock)
  1256. break
  1257. end
  1258. end
  1259. RockExplosion(Rock,2)
  1260. end
  1261. end))
  1262. for i=0, 0.4, 0.1 / Animation_Speed do
  1263. Swait()
  1264. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
  1265. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1266. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1267. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1268. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
  1269. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1270. end
  1271. else
  1272. local GRAV = IT("BodyPosition",RootPart)
  1273. GRAV.D = 250
  1274. GRAV.P = 20000
  1275. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1276. GRAV.Position = RootPart.Position
  1277. local Rock = GetRock()
  1278. Rock.Size = VT(0,0,0)
  1279. Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p,Mouse.Hit.p)
  1280. CreateSound(201858045, Rock, 1, MRANDOM(10,12)/10, false)
  1281. local DONEROCK = false
  1282. coroutine.resume(coroutine.create(function()
  1283. for i = 1, 15 do
  1284. Swait()
  1285. Rock.Size = Rock.Size + VT(0.1,0.1,0.1)
  1286. Rock.Size = Rock.Size * 1.1
  1287. Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1-Rock.Size.Y/2,0).p,Mouse.Hit.p)
  1288. end
  1289. DONEROCK = true
  1290. end))
  1291. repeat
  1292. Swait()
  1293. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65), RAD(0), RAD(0)), 1 / Animation_Speed)
  1294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1299. until DONEROCK == true
  1300. local LOOP = 0
  1301. for i=0, 0.2, 0.1 / Animation_Speed do
  1302. Swait()
  1303. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-70), RAD(0), RAD(0)), 1 / Animation_Speed)
  1304. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1305. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1306. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1307. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(130), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1308. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1309. end
  1310. WaveParticles(Rock.Position,5,C3(1,1,1))
  1311. CreateSound(621557962, RightLeg, 1, MRANDOM(10,12)/10, false)
  1312. coroutine.resume(coroutine.create(function()
  1313. for i = 1, 300 do
  1314. Swait()
  1315. Rock.CFrame = Rock.CFrame * CF(0,0,-1.6)
  1316. local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character)
  1317. if HIT then
  1318. RespondToImpact(HIT,Rock)
  1319. break
  1320. end
  1321. end
  1322. RockExplosion(Rock,1)
  1323. end))
  1324. for i=0, 0.3, 0.1 / Animation_Speed do
  1325. Swait()
  1326. LOOP = LOOP + 15*3
  1327. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65+(LOOP)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1328. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1329. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1330. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1331. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1332. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1333. end
  1334. GRAV:remove()
  1335. end
  1336. ATTACK = false
  1337. Rooted = false
  1338. end
  1339.  
  1340. function Melee()
  1341. ATTACK = true
  1342. Rooted = false
  1343. Speed = 12
  1344. repeat
  1345. Swait()
  1346. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1347. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 1 / Animation_Speed)
  1348. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1349. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1350. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1351. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1352. until KEYHOLD == false
  1353. Speed = 0
  1354. local ROOT = nil
  1355. local TORS = nil
  1356. local HUMAN = nil
  1357. local DIST = 4
  1358. for i=0, 0.2, 0.1 / Animation_Speed do
  1359. Swait()
  1360. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1361. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1362. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1363. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1364. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1365. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1366. end
  1367. for i=0, 1, 0.1 / Animation_Speed do
  1368. Swait()
  1369. local CHILDREN = workspace:GetDescendants()
  1370. for index, CHILD in pairs(CHILDREN) do
  1371. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1372. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1373. if HUM then
  1374. local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1375. if TORSO and HUM.Health > 0 then
  1376. if (TORSO.Position - RightArm.Position).Magnitude <= DIST then
  1377. DIST = (TORSO.Position - RightArm.Position).Magnitude
  1378. ROOT = TORSO
  1379. HUMAN = HUM
  1380. TORS = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end
  1386. if ROOT then
  1387. break
  1388. end
  1389. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1390. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1391. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1392. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1393. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1394. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1395. end
  1396. if ROOT then
  1397. local POSITIONED = false
  1398. coroutine.resume(coroutine.create(function()
  1399. ROOT.Anchored = true
  1400. local POS = RootPart.CFrame*CF(0,-3,-1) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(90), RAD(0), RAD(0))
  1401. for i = 1, 25 do
  1402. ROOT.Anchored = true
  1403. Swait()
  1404. ROOT.CFrame = Clerp(ROOT.CFrame, POS, 0.8 / Animation_Speed)
  1405. end
  1406. POSITIONED = true
  1407. repeat Swait() ROOT.Anchored = true until ATTACK == false
  1408. ROOT.Anchored = false
  1409. end))
  1410. repeat
  1411. Swait()
  1412. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1413. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1414. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1415. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1416. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1417. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1418. until POSITIONED == true
  1419. for i = 1, 3 do
  1420. for i=0, 0.5, 0.1 / Animation_Speed do
  1421. Swait()
  1422. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed)
  1423. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  1424. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1425. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1426. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(50), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1427. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1428. end
  1429. for i=0, 0.15, 0.1 / Animation_Speed do
  1430. Swait()
  1431. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1432. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1433. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1434. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1435. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1436. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1437. end
  1438. local EMIT = script.Emit:Clone()
  1439. EMIT.Parent = TORS
  1440. EMIT.Size = NumberSequence.new(1,0)
  1441. EMIT:Emit(120)
  1442. Debris:AddItem(EMIT,5)
  1443. CreateSound(138186576, RightLeg, 1, MRANDOM(13,15)/10, false)
  1444. WaveParticles(TORS.Position,12,C3(1,1,1))
  1445. ApplyAoE(RightLeg.Position,8,25,35,0,false)
  1446. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(35,3,35), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1447. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(25,4,25), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1448. for i=0, 0.25, 0.1 / Animation_Speed do
  1449. Swait()
  1450. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1453. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1454. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1455. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1456. end
  1457. if HUMAN.Health == 0 then
  1458. break
  1459. end
  1460. for i=0, 0.2, 0.1 / Animation_Speed do
  1461. Swait()
  1462. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1463. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1464. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1465. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1466. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1467. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1468. end
  1469. end
  1470. end
  1471. Speed = 25
  1472. ATTACK = false
  1473. Rooted = false
  1474. end
  1475.  
  1476. function Launch()
  1477. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1478. if HITFLOOR then
  1479. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15,3,15), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 138186576, SoundPitch = 1, SoundVolume = 2})
  1480. local P = PILLAR:Clone()
  1481. P.Color = HITFLOOR.Color
  1482. P.Material = HITFLOOR.Material
  1483. P.Parent = Effects
  1484. P.CFrame = CF(HITPOS-VT(0,4.5,0))
  1485. coroutine.resume(coroutine.create(function()
  1486. for i = 1, 6 do
  1487. Swait()
  1488. P.CFrame = P.CFrame * CF(0,0.9,0)
  1489. end
  1490. wait(1)
  1491. for i = 1, 45 do
  1492. Swait()
  1493. P.Transparency =P.Transparency + 1/45
  1494. end
  1495. P:remove()
  1496. end))
  1497. RootPart.CFrame = RootPart.CFrame*CF(0,1,0)
  1498. RootPart.Velocity = VT(0,0,0)
  1499. local bv = Instance.new("BodyVelocity",RootPart)
  1500. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1501. bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,100,0)).lookVector*350
  1502. Debris:AddItem(bv,0.1)
  1503. end
  1504. end
  1505.  
  1506. function Ravage()
  1507. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1508. if HITFLOOR then
  1509. ATTACK = true
  1510. Rooted = false
  1511. for i=0, 0.3, 0.1 / Animation_Speed do
  1512. Swait()
  1513. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
  1514. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1515. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1516. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1517. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1518. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1519. end
  1520. WaveParticles(RightArm.CFrame*CF(0,-1,0).p,4,C3(1,1,1))
  1521. Rooted = true
  1522. CreateSound(217767125, RightArm, 5, 1, false)
  1523. for i=0, 0.15, 0.1 / Animation_Speed do
  1524. Swait()
  1525. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
  1526. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1527. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1528. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1529. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1530. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1531. end
  1532. local HOLD = true
  1533. coroutine.resume(coroutine.create(function()
  1534. repeat
  1535. Swait()
  1536. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1537. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
  1538. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(145), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1539. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1540. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1541. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1542. until HOLD == false
  1543. end))
  1544. repeat
  1545. wait(0.3)
  1546. coroutine.resume(coroutine.create(function()
  1547. local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1548. if HITFLOOR then
  1549. if HITFLOOR.Anchored == true then
  1550. local ROCK = GetRock(HITFLOOR)
  1551. CreateSound(130972023, ROCK, 2, MRANDOM(8,12)/10, false)
  1552. ROCK.Size = VT(4,4,4)*(MRANDOM(8,12)/10)
  1553. ROCK.Core.Emit.Enabled = true
  1554. ROCK.CFrame = CF(HITPOS+VT(0,-6,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  1555. local POS = ROCK.CFrame*CF(0,12,0)
  1556. for i = 1, 25 do
  1557. ROCK.Anchored = true
  1558. Swait()
  1559. ROCK.CFrame = Clerp(ROCK.CFrame, POS, 0.8 / Animation_Speed)
  1560. end
  1561. ROCK.Core.Emit.Enabled = false
  1562. wait(0.3)
  1563. RockExplosion(ROCK,1)
  1564. end
  1565. end
  1566. end))
  1567. until KEYHOLD == false
  1568. wait(0.5)
  1569. HOLD = false
  1570. ATTACK = false
  1571. Rooted = false
  1572. end
  1573. end
  1574.  
  1575. function Shield()
  1576. ATTACK = true
  1577. Rooted = false
  1578. local GYRO = IT("BodyGyro",RootPart)
  1579. GYRO.D = 2
  1580. GYRO.P = 2000
  1581. GYRO.MaxTorque = VT(40000000000,4000000,40000000000)
  1582. local GRAV = IT("BodyPosition",RootPart)
  1583. GRAV.D = 250
  1584. GRAV.P = 20000
  1585. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1586. GRAV.Position = RootPart.Position
  1587. coroutine.resume(coroutine.create(function()
  1588. repeat
  1589. Swait()
  1590. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1591. until ATTACK == false
  1592. GYRO:Remove()
  1593. GRAV:Remove()
  1594. end))
  1595. for i=0, 0.3, 0.1 / Animation_Speed do
  1596. Swait()
  1597. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed)
  1598. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1599. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1600. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1601. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1602. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1603. end
  1604. local Defence = GetShield()
  1605. Defence.Size = VT(0,2,0)
  1606. Defence.Parent = Effects
  1607. Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0))
  1608. WaveParticles(Defence.Position,12,Defence.Color)
  1609. CreateSound(201858045, Defence, 2, MRANDOM(10,12)/10, false)
  1610. local FIX = Defence.AncestryChanged:Connect(function()
  1611. Defence.Parent = Effects
  1612. end)
  1613. for i = 1, 40 do
  1614. Swait()
  1615. Defence.Size = Defence.Size + VT(0.5,0,0.7)
  1616. Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0))
  1617. end
  1618. repeat
  1619. Swait()
  1620. Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0))
  1621. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed)
  1622. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed)
  1623. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1624. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1625. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1626. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1627. until KEYHOLD == false
  1628. FIX:Disconnect()
  1629. coroutine.resume(coroutine.create(function()
  1630. for i = 1, 40 do
  1631. Swait()
  1632. Defence.Size = Defence.Size - VT(0.5,0,0.7)
  1633. end
  1634. WaveParticles(Defence.Position,12,Defence.Color)
  1635. Defence:remove()
  1636. end))
  1637. ATTACK = false
  1638. Rooted = false
  1639. end
  1640.  
  1641. function TwinMeteor()
  1642. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character)
  1643. if HITFLOOR == nil then
  1644. ATTACK = true
  1645. Rooted = false
  1646. local GYRO = IT("BodyGyro",RootPart)
  1647. GYRO.D = 2
  1648. GYRO.P = 2000
  1649. GYRO.MaxTorque = VT(40000000000,4000000,40000000000)
  1650. local GRAV = IT("BodyPosition",RootPart)
  1651. GRAV.D = 250
  1652. GRAV.P = 20000
  1653. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1654. GRAV.Position = RootPart.Position
  1655. coroutine.resume(coroutine.create(function()
  1656. repeat
  1657. Swait()
  1658. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1659. until ATTACK == false
  1660. GYRO:Remove()
  1661. GRAV:Remove()
  1662. end))
  1663. local CHARGED = false
  1664. coroutine.resume(coroutine.create(function()
  1665. repeat
  1666. Swait()
  1667. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1668. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1669. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1670. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1671. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1672. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1673. until CHARGED == true
  1674. end))
  1675. local ROCK1 = GetRock()
  1676. local ROCK2 = GetRock()
  1677. local VORTEX1 = script.Vortex:Clone()
  1678. local VORTEX2 = script.Vortex:Clone()
  1679. VORTEX1.Parent = ROCK1.Core
  1680. VORTEX2.Parent = ROCK2.Core
  1681. ROCK1.Core.Emit.Enabled = true
  1682. ROCK2.Core.Emit.Enabled = true
  1683. ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p)
  1684. ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p)
  1685. CreateSound(1664710821, ROCK1, 10, MRANDOM(8,12)/10, false)
  1686. CreateSound(1664710821, ROCK2, 10, MRANDOM(8,12)/10, false)
  1687. for i = 1, 70 do
  1688. Swait()
  1689. ROCK1.Size = ROCK1.Size + VT(0.3,0.3,0.3)
  1690. ROCK2.Size = ROCK2.Size + VT(0.3,0.3,0.3)
  1691. ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p)
  1692. ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p)
  1693. VORTEX1.Size = NumberSequence.new(ROCK1.Size.Y*2,0)
  1694. VORTEX2.Size = NumberSequence.new(ROCK1.Size.Y*2,0)
  1695. VORTEX1:Emit(1)
  1696. VORTEX2:Emit(1)
  1697. end
  1698. CHARGED = true
  1699. for i=0, 1, 0.1 / Animation_Speed do
  1700. Swait()
  1701. ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p)
  1702. ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p)
  1703. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1704. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1705. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1706. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1707. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1708. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1709. end
  1710. for i=0, 0.5, 0.1 / Animation_Speed do
  1711. Swait()
  1712. ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p)
  1713. ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p)
  1714. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1715. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed)
  1716. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1717. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1718. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1719. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1720. end
  1721. coroutine.resume(coroutine.create(function()
  1722. local Rock = ROCK1
  1723. WaveParticles(Rock.Position,30,C3(1,1,1))
  1724. CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false)
  1725. for i = 1, 200 do
  1726. Swait()
  1727. Rock.CFrame = Rock.CFrame * CF(0,0,-3.2)
  1728. local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character)
  1729. if HIT then
  1730. RespondToImpact(HIT,Rock)
  1731. break
  1732. end
  1733. end
  1734. ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false)
  1735. for i = 1, 6 do
  1736. RockExplosion(Rock,1.5,true)
  1737. wait(1)
  1738. end
  1739. RockExplosion(Rock,1.5)
  1740. end))
  1741. for i=0, 1, 0.1 / Animation_Speed do
  1742. Swait()
  1743. ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p)
  1744. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1745. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed)
  1746. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1747. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1748. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1749. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1750. end
  1751. for i=0, 0.5, 0.1 / Animation_Speed do
  1752. Swait()
  1753. ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p)
  1754. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1755. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed)
  1756. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1757. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1758. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1759. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1760. end
  1761. coroutine.resume(coroutine.create(function()
  1762. local Rock = ROCK2
  1763. WaveParticles(Rock.Position,30,C3(1,1,1))
  1764. CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false)
  1765. for i = 1, 200 do
  1766. Swait()
  1767. Rock.CFrame = Rock.CFrame * CF(0,0,-3.2)
  1768. local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character)
  1769. if HIT then
  1770. RespondToImpact(HIT,Rock)
  1771. break
  1772. end
  1773. end
  1774. ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false)
  1775. for i = 1, 6 do
  1776. RockExplosion(Rock,1.5,true)
  1777. wait(1)
  1778. end
  1779. RockExplosion(Rock,1.5)
  1780. end))
  1781. for i=0, 1, 0.1 / Animation_Speed do
  1782. Swait()
  1783. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1784. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed)
  1785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1787. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1788. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1789. end
  1790. ATTACK = false
  1791. Rooted = false
  1792. end
  1793. end
  1794.  
  1795. function Spikes()
  1796. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 12, Character)
  1797. if HITFLOOR then
  1798. ATTACK = true
  1799. Rooted = true
  1800. local GYRO = IT("BodyGyro",RootPart)
  1801. GYRO.D = 2
  1802. GYRO.P = 2000
  1803. GYRO.MaxTorque = VT(0,4000000,0)
  1804. coroutine.resume(coroutine.create(function()
  1805. repeat
  1806. Swait()
  1807. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1808. until ATTACK == false
  1809. GYRO:Remove()
  1810. end))
  1811. for i=0, 1, 0.1 / Animation_Speed do
  1812. Swait()
  1813. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed)
  1814. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  1815. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1816. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1817. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1818. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1819. end
  1820. for i=0, 0.25, 0.1 / Animation_Speed do
  1821. Swait()
  1822. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1823. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1824. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1825. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1826. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1827. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1828. end
  1829. CreateSound(165970126, RightLeg, 1, MRANDOM(13,15)/10, false)
  1830. WaveParticles(RightLeg.CFrame*CF(0,-1,0).p,15,C3(1,1,1))
  1831. coroutine.resume(coroutine.create(function()
  1832. local CFRAME = RootPart.CFrame*CF(0,-3,0)
  1833. for i = 1, 60 do
  1834. Swait()
  1835. local SPIKE = GetSpike(HITFLOOR)
  1836. SPIKE.CFrame = CFRAME*CF(0,-11,-i*2)
  1837. ApplyAoE(CFRAME*CF(0,0,-i*2).p,4,10,35,15,false)
  1838. coroutine.resume(coroutine.create(function()
  1839. local POS = SPIKE.CFrame*CF(0,11,0)
  1840. for i = 1, 25 do
  1841. Swait()
  1842. SPIKE.CFrame = Clerp(SPIKE.CFrame, POS, 0.8 / Animation_Speed)
  1843. end
  1844. wait(0.2)
  1845. for i = 1, 45 do
  1846. Swait()
  1847. SPIKE.Transparency = SPIKE.Transparency + 1/45
  1848. SPIKE.CFrame = SPIKE.CFrame * CF(0,-2/15,0)
  1849. end
  1850. SPIKE:remove()
  1851. end))
  1852. end
  1853. end))
  1854. wait(0.3)
  1855. ATTACK = false
  1856. Rooted = false
  1857. end
  1858. end
  1859.  
  1860. function TakeOnMe()
  1861. Speed = 5
  1862. local MEME = CreateSound(288703954, Effects, 2, 1, false)
  1863. ATTACK = true
  1864. Rooted = false
  1865. local DANCE = true
  1866. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  1867. if NEWKEY == "p" then
  1868. DANCE = false
  1869. end
  1870. end)
  1871. PLAYSONG = false
  1872. while true do
  1873. for i = 1, 15 do
  1874. Swait()
  1875. MEME.Parent = Effects
  1876. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1877. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1878. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1879. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1880. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1881. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1882. end
  1883. if DANCE == false then
  1884. break
  1885. end
  1886. for i = 1, 15 do
  1887. Swait()
  1888. MEME.Parent = Effects
  1889. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1890. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1891. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1892. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1893. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1894. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1895. end
  1896. end
  1897. PLAYSONG = true
  1898. KEY:Disconnect()
  1899. MEME:remove()
  1900. Speed = 25
  1901. ATTACK = false
  1902. Rooted = false
  1903. end
  1904.  
  1905. function Noclip()
  1906. ATTACK = true
  1907. Rooted = true
  1908. UNANCHOR = false
  1909. RootPart.Anchored = true
  1910. local CLIPPING = true
  1911. local MOVEMENT = nil
  1912. CreateSound(96098241, Torso, 3, MRANDOM(9,12)/10, false)
  1913. for i = 1, 50 do
  1914. Swait()
  1915. EXTRATRANS = EXTRATRANS + 0.5/50
  1916. RootPart.CFrame = RootPart.CFrame * CF(0,(1-(i/50))/4.3,0)
  1917. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1918. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1919. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1920. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1921. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1922. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1923. end
  1924. local AURA = CreateSound(1393698948, Torso, 3, 1, true)
  1925. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  1926. if NEWKEY == "w" then
  1927. MOVEMENT = "Forward"
  1928. repeat
  1929. Swait()
  1930. RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2)
  1931. until KEYHOLD == false
  1932. elseif NEWKEY == "s" then
  1933. MOVEMENT = "Backwards"
  1934. repeat
  1935. Swait()
  1936. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2)
  1937. until KEYHOLD == false
  1938. elseif NEWKEY == "a" then
  1939. MOVEMENT = "Strafe"
  1940. repeat
  1941. Swait()
  1942. RootPart.CFrame = RootPart.CFrame * CF(0.2,0,0)
  1943. until KEYHOLD == false
  1944. elseif NEWKEY == "d" then
  1945. MOVEMENT = "Strafe"
  1946. repeat
  1947. Swait()
  1948. RootPart.CFrame = RootPart.CFrame * CF(-0.2,0,0)
  1949. until KEYHOLD == false
  1950. elseif NEWKEY == "y" then
  1951. CLIPPING = false
  1952. end
  1953. MOVEMENT = nil
  1954. end)
  1955. local LOOP = 0
  1956. repeat
  1957. Swait()
  1958. AURA.Parent = Torso
  1959. LOOP = LOOP + 1
  1960. if LOOP >= 15 then
  1961. LOOP = 0
  1962. WaveParticles(Torso.Position,15,C3(1,1,1))
  1963. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.5,0).p), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1964. end
  1965. if MOVEMENT == nil then
  1966. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1967. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1968. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1969. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1970. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1971. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1972. elseif MOVEMENT == "Forward" then
  1973. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1974. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1975. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1976. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1977. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1978. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1979. elseif MOVEMENT == "Backwards" then
  1980. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1981. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1982. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1983. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1984. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1985. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1986. elseif MOVEMENT == "Strafe" then
  1987. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1988. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1989. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1990. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1991. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1992. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1993. end
  1994. until CLIPPING == false
  1995. KEY:Disconnect()
  1996. coroutine.resume(coroutine.create(function()
  1997. for i = 1, 20 do
  1998. Swait()
  1999. AURA.Volume = AURA.Volume - 3/20
  2000. end
  2001. AURA:remove()
  2002. end))
  2003. CreateSound(814168787, Torso, 1, MRANDOM(9,12)/10, false)
  2004. for i = 1, 50 do
  2005. Swait()
  2006. EXTRATRANS = EXTRATRANS - 0.5/50
  2007. RootPart.CFrame = RootPart.CFrame * CF(0,-(1-(i/50))/4.3,0)
  2008. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2009. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2010. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2011. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2012. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  2013. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  2014. end
  2015. EXTRATRANS = 0
  2016. UNANCHOR = true
  2017. ATTACK = false
  2018. Rooted = false
  2019. end
  2020.  
  2021. function Taunt()
  2022. ATTACK = true
  2023. Rooted = true
  2024. local TAUNT = CreateSound(159882635, Torso, 7, 1, false)
  2025. repeat
  2026. Swait()
  2027. TAUNT.Parent = Torso
  2028. TAUNT.Playing = true
  2029. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2030. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  2031. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2032. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2033. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2034. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2035. until TAUNT.TimePosition >= 1.25
  2036. for i=0, 1.6, 0.1 / Animation_Speed do
  2037. Swait()
  2038. TAUNT.Parent = Torso
  2039. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed)
  2040. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  2041. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2042. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2043. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2044. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2045. end
  2046. ATTACK = false
  2047. Rooted = false
  2048. end
  2049.  
  2050. --//=================================\\
  2051. --|| ASSIGN THINGS TO KEYS
  2052. --\\=================================//
  2053.  
  2054. function MouseDown(Mouse)
  2055. if ATTACK == false then
  2056. end
  2057. end
  2058.  
  2059. function MouseUp(Mouse)
  2060. HOLD = false
  2061. end
  2062.  
  2063. function KeyDown(Key)
  2064. KEYHOLD = true
  2065. if Key == "z" and ATTACK == false then
  2066. Bullet()
  2067. end
  2068.  
  2069. if Key == "b" and ATTACK == false then
  2070. Melee()
  2071. end
  2072.  
  2073. if Key == "c" and ATTACK == false then
  2074. Launch()
  2075. end
  2076.  
  2077. if Key == "v" and ATTACK == false then
  2078. Ravage()
  2079. end
  2080.  
  2081. if Key == "e" and ATTACK == false then
  2082. Shield()
  2083. end
  2084.  
  2085. if Key == "q" and ATTACK == false then
  2086. Spikes()
  2087. end
  2088.  
  2089. if Key == "x" and ATTACK == false then
  2090. TwinMeteor()
  2091. end
  2092.  
  2093. if Key == "y" and ATTACK == false then
  2094. Noclip()
  2095. end
  2096.  
  2097. if Key == "p" and ATTACK == false then
  2098. TakeOnMe()
  2099. end
  2100.  
  2101. if Key == "t" and ATTACK == false then
  2102. Taunt()
  2103. end
  2104.  
  2105. if Key == "]" and ATTACK == false then
  2106. if PLAYSONG == true then
  2107. PLAYSONG = false
  2108. else
  2109. PLAYSONG = true
  2110. end
  2111. end
  2112. end
  2113.  
  2114. function KeyUp(Key)
  2115. KEYHOLD = false
  2116. end
  2117.  
  2118. Mouse.Button1Down:connect(function(NEWKEY)
  2119. MouseDown(NEWKEY)
  2120. end)
  2121. Mouse.Button1Up:connect(function(NEWKEY)
  2122. MouseUp(NEWKEY)
  2123. end)
  2124. Mouse.KeyDown:connect(function(NEWKEY)
  2125. KeyDown(NEWKEY)
  2126. end)
  2127. Mouse.KeyUp:connect(function(NEWKEY)
  2128. KeyUp(NEWKEY)
  2129. end)
  2130.  
  2131. --//=================================\\
  2132. --\\=================================//
  2133.  
  2134. function AntiTimeStop()
  2135. for _, c in pairs(Character:GetChildren()) do
  2136. if c:IsA("BasePart") and c ~= RootPart then
  2137. c.Anchored = false
  2138. end
  2139. end
  2140. if UNANCHOR == true then
  2141. RootPart.Anchored = false
  2142. else
  2143. RootPart.Anchored = true
  2144. end
  2145. end
  2146.  
  2147. --//=================================\\
  2148. --|| WRAP THE WHOLE SCRIPT UP
  2149. --\\=================================//
  2150.  
  2151. Humanoid.Changed:connect(function(Jump)
  2152. if Jump == "Jump" and (Disable_Jump == true) then
  2153. Humanoid.Jump = false
  2154. end
  2155. end)
  2156.  
  2157. while true do
  2158. Swait()
  2159. Head:ClearAllChildren()
  2160. script.Parent = WEAPONGUI
  2161. ANIMATE.Parent = nil
  2162. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2163. v:Stop();
  2164. end
  2165. if Character:FindFirstChildOfClass("Humanoid") == nil then
  2166. Humanoid = IT("Humanoid",Character)
  2167. end
  2168. SINE = SINE + CHANGE
  2169. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2170. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2171. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2172. local WALKSPEEDVALUE = 4
  2173. Neck.C1 = Clerp(Neck.C1, CF(0, 0, 0.03) * ANGLES(RAD(90), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(180)) , 1 / Animation_Speed)
  2174. if ANIM == "Walk" and TORSOVELOCITY > 1 and PLAYSONG == true then
  2175. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2176. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2177. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2178. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2179. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or PLAYSONG == false then
  2180. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2181. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2182. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2183. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2184. end
  2185. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2186. ANIM = "Jump"
  2187. if ATTACK == false then
  2188. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2189. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2190. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2191. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2192. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2193. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2194. end
  2195. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2196. ANIM = "Fall"
  2197. if ATTACK == false then
  2198. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2199. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2200. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2201. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2202. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2203. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2204. end
  2205. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2206. ANIM = "Idle"
  2207. if ATTACK == false then
  2208. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2209. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2210. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2211. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2212. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2213. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2214. end
  2215. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2216. ANIM = "Walk"
  2217. if ATTACK == false then
  2218. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2219. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2220. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2221. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2222. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2223. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2224. end
  2225. end
  2226. for _, c in pairs(Character:GetChildren()) do
  2227. if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2228. c:remove()
  2229. end
  2230. end
  2231. AntiTimeStop()
  2232. Humanoid.MaxHealth = 10e10
  2233. Humanoid.Health = 10e10
  2234. if Rooted == false then
  2235. Disable_Jump = false
  2236. Humanoid.WalkSpeed = Speed
  2237. elseif Rooted == true then
  2238. Disable_Jump = true
  2239. Humanoid.WalkSpeed = 0
  2240. end
  2241. for E = 1, #TAIL do
  2242. TAIL[E].C1 = Clerp(TAIL[E].C1,CF(0, 0, 0) * ANGLES(RAD(5-1 * SIN(SINE / 12)), RAD(-2 * COS(SINE / 24)), RAD(4 * SIN(SINE / 24))), 1 / Animation_Speed)
  2243. end
  2244. sick.SoundId = "rbxassetid://0"
  2245. sick.Looped = true
  2246. sick.Pitch = 1
  2247. sick.Volume = 2
  2248. sick.Parent = Effects
  2249. sick.Playing = PLAYSONG
  2250. Humanoid.PlatformStand = false
  2251. Humanoid.Name = "I am the god of earth"
  2252. refit()
  2253. if Character:FindFirstChild("Pants") == nil then
  2254. script.Pants:Clone().Parent = Character
  2255. end
  2256. if Character:FindFirstChild("Shirt") == nil then
  2257. script.Shirt:Clone().Parent = Character
  2258. end
  2259. for _, c in pairs(Character:GetChildren()) do
  2260. if c:IsA("BasePart") and ATTACK == false then
  2261. for _, e in pairs(c:GetChildren()) do
  2262. if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then
  2263. e:remove()
  2264. end
  2265. end
  2266. end
  2267. end
  2268. end
  2269.  
  2270. --//=================================\\
  2271. --\\=================================//
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277. --//====================================================\\--
  2278. --|| END OF SCRIPT
  2279. --\\====================================================//--
Add Comment
Please, Sign In to add comment