Advertisement
WagnerJunio07

Terra God FE

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