Advertisement
cobblecorn

Untitled

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