Advertisement
cobblecorn

Untitled

Jun 30th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 94.85 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://1197429205"
  31. sick.Looped = true
  32. sick.Pitch = 1
  33. sick.Volume = 6
  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. local asd = Instance.new("ParticleEmitter")
  933. asd.Color = ColorSequence.new(Color3.new(204, 0, 204), Color3.new(204, 0, 204))
  934. asd.LightEmission = .1
  935. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  936. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  937. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  938. asd.Transparency = bbb
  939. asd.Size = aaa
  940. asd.ZOffset = .9
  941. asd.Acceleration = Vector3.new(0, -15, 0)
  942. asd.LockedToPart = false
  943. asd.EmissionDirection = "Back"
  944. asd.Lifetime = NumberRange.new(1, 2)
  945. asd.Rotation = NumberRange.new(-100, 100)
  946. asd.RotSpeed = NumberRange.new(-100, 100)
  947. asd.Speed = NumberRange.new(10)
  948. asd.Enabled = false
  949. asd.VelocitySpread = 999
  950.  
  951. local Particle = IT("ParticleEmitter",nil)
  952. Particle.Enabled = false
  953. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  954. Particle.LightEmission = 0.5
  955. Particle.Rate = 150
  956. Particle.ZOffset = 1
  957. Particle.Rotation = NumberRange.new(-180, 180)
  958. Particle.RotSpeed = NumberRange.new(-180, 180)
  959. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  960. Particle.Color = ColorSequence.new(C3(204,0,204),C3(204,0,204))
  961.  
  962. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  963. function ParticleEmitter(Table)
  964. local PRTCL = Particle:Clone()
  965. local Speed = Table.Speed or 5
  966. local Drag = Table.Drag or 0
  967. local Size1 = Table.Size1 or 1
  968. local Size2 = Table.Size2 or 5
  969. local Lifetime1 = Table.Lifetime1 or 1
  970. local Lifetime2 = Table.Lifetime2 or 1.5
  971. local Parent = Table.Parent or Torso
  972. local Emit = Table.Emit or 100
  973. local Offset = Table.Offset or 360
  974. local Acel = Table.Acel or VT(0,0,0)
  975. local Enabled = Table.Enabled or false
  976. PRTCL.Parent = Parent
  977. PRTCL.Size = NumberSequence.new(Size1,Size2)
  978. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  979. PRTCL.Speed = NumberRange.new(Speed)
  980. PRTCL.VelocitySpread = Offset
  981. PRTCL.Drag = Drag
  982. PRTCL.Acceleration = Acel
  983. if Enabled == false then
  984. PRTCL:Emit(Emit)
  985. Debris:AddItem(PRTCL,Lifetime2)
  986. else
  987. PRTCL.Enabled = true
  988. end
  989. return PRTCL
  990. end
  991.  
  992.  
  993.  
  994. --//=================================\\
  995. --|| WEAPON CREATION
  996. --\\=================================//
  997.  
  998. local ANGLE = 35
  999. for i = 1, 5 do
  1000. local Wing = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false)
  1001. 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))
  1002. local Wing2 = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false)
  1003. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1004. ANGLE = ANGLE - 15
  1005. table.insert(LEFTWINGS,WingWeld)
  1006. end
  1007. ANGLE = 35
  1008. for i = 1, 5 do
  1009. local Wing = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false)
  1010. 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))
  1011. local Wing2 = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false)
  1012. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1013. ANGLE = ANGLE - 15
  1014. table.insert(RIGHTWINGS,WingWeld)
  1015. end
  1016.  
  1017.  
  1018. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  1019. PRT.Color = C3(0,0,0)
  1020. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  1021. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  1022.  
  1023. 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})
  1024. PRT.LockedToPart = true
  1025. 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})
  1026. PRT.LockedToPart = true
  1027. 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})
  1028. PRT.LockedToPart = true
  1029. 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})
  1030. PRT.LockedToPart = true
  1031. 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})
  1032. PRT.LockedToPart = true
  1033. for _, c in pairs(Character:GetDescendants()) do
  1034. if c and c.Parent then
  1035. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  1036. local ACCESSORY = c.Parent
  1037. c.Parent = Character
  1038. if c then
  1039. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  1040. weldBetween(Head,c)
  1041. else
  1042. weldBetween(Torso,c)
  1043. end
  1044. end
  1045. ACCESSORY:remove()
  1046. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1047. c.Material = "Neon"
  1048. c.Color = C3(204,0,204)
  1049. if c:FindFirstChildOfClass("SpecialMesh") then
  1050. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1051. end
  1052. if c == Head then
  1053. if c:FindFirstChild("face") then
  1054. c.face:remove()
  1055. end
  1056. end
  1057. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1058. c.Color = C3(204,0,204)
  1059. c.Material = "Neon"
  1060. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1061. c:remove()
  1062. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1063. c:remove()
  1064. end
  1065. end
  1066. end
  1067.  
  1068. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright violet", "Eye", VT(0.6,0.1,1)/2,false)
  1069. MakeForm(Eye,"Ball")
  1070. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1071. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright violet", "Eye", VT(0.6,0.1,1)/2,false)
  1072. MakeForm(Eye,"Ball")
  1073. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1074. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright violet", "Eye", VT(0.1,1,1)/2,false)
  1075. MakeForm(Eye,"Ball")
  1076. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1077. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright violet", "Eye", VT(0.1,1,1)/2,false)
  1078. MakeForm(Eye,"Ball")
  1079. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1080.  
  1081. local BODY = {}
  1082. for _, c in pairs(Character:GetDescendants()) do
  1083. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1084. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1085. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1086. end
  1087. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1088. elseif c:IsA("JointInstance") then
  1089. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1090. end
  1091. end
  1092. for e = 1, #BODY do
  1093. if BODY[e] ~= nil then
  1094. local STUFF = BODY[e]
  1095. local PART = STUFF[1]
  1096. local PARENT = STUFF[2]
  1097. local MATERIAL = STUFF[3]
  1098. local COLOR = STUFF[4]
  1099. local TRANSPARENCY = STUFF[5]
  1100. if PART.ClassName == "Part" and PART ~= RootPart then
  1101. PART.Material = MATERIAL
  1102. PART.Color = COLOR
  1103. PART.Transparency = TRANSPARENCY
  1104. end
  1105. PART.AncestryChanged:Connect(function()
  1106. PART.Parent = PARENT
  1107. end)
  1108. end
  1109. end
  1110. function refit()
  1111. Character.Parent = workspace
  1112. for e = 1, #BODY do
  1113. if BODY[e] ~= nil then
  1114. local STUFF = BODY[e]
  1115. local PART = STUFF[1]
  1116. local PARENT = STUFF[2]
  1117. local MATERIAL = STUFF[3]
  1118. local COLOR = STUFF[4]
  1119. local TRANSPARENCY = STUFF[5]
  1120. if PART:IsA("BasePart") and PART ~= RootPart then
  1121. PART.Material = MATERIAL
  1122. PART.Color = COLOR
  1123. PART.Transparency = TRANSPARENCY+EXTRATRANS
  1124. end
  1125. if PART.Parent ~= PARENT then
  1126. Humanoid:remove()
  1127. PART.Parent = PARENT
  1128. Humanoid = IT("Humanoid",Character)
  1129. end
  1130. end
  1131. end
  1132. end
  1133.  
  1134. Humanoid.Died:connect(function()
  1135. refit()
  1136. end)
  1137.  
  1138. local SKILLTEXTCOLOR = C3(0,0,0)
  1139. local SKILLFONT = "Antique"
  1140. local SKILLTEXTSIZE = 7
  1141.  
  1142. 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")
  1143. 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")
  1144. 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")
  1145. 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")
  1146. 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")
  1147. 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")
  1148.  
  1149. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[F] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  1150. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[T] Corrupt Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  1151. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Smite", SKILLTEXTCOLOR, 8, SKILLFONT, 0, 2, 1, "Text 3")
  1152. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Implosion", SKILLTEXTCOLOR, 10, SKILLFONT, 0, 2, 1, "Text 4")
  1153. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[Q] Warp", SKILLTEXTCOLOR, 10, SKILLFONT, 0, 2, 1, "Text 5")
  1154. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[V] Dark Beam", SKILLTEXTCOLOR, 12, SKILLFONT, 0, 2, 1, "Text 6")
  1155. --//=================================\\
  1156. --|| DAMAGE FUNCTIONS
  1157. --\\=================================//
  1158.  
  1159. function StatLabel(CFRAME, TEXT, COLOR)
  1160. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1161. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1162. local BODYGYRO = IT("BodyGyro", STATPART)
  1163. game:GetService("Debris"):AddItem(STATPART ,5)
  1164. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1165. BILLBOARDGUI.Adornee = STATPART
  1166. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1167. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1168. BILLBOARDGUI.AlwaysOnTop = false
  1169. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1170. TEXTLABEL.BackgroundTransparency = 1
  1171. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1172. TEXTLABEL.Text = TEXT
  1173. TEXTLABEL.Font = SKILLFONT
  1174. TEXTLABEL.FontSize="Size42"
  1175. TEXTLABEL.TextColor3 = COLOR
  1176. TEXTLABEL.TextStrokeTransparency = 0
  1177. TEXTLABEL.TextScaled = true
  1178. TEXTLABEL.TextWrapped = true
  1179. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1180. for i = 1, 50 do
  1181. Swait()
  1182. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1183. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1184. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1185. end
  1186. THEPART.Parent = nil
  1187. end),STATPART, TEXTLABEL)
  1188. end
  1189.  
  1190. --//=================================\\
  1191. --|| DAMAGING
  1192. --\\=================================//
  1193.  
  1194. function Kill(Char)
  1195. local NewCharacter = IT("Model",Effects)
  1196. NewCharacter.Name = "Ow im ded ;-;"
  1197. for _, c in pairs(Char:GetDescendants()) do
  1198. if c:IsA("BasePart") and c.Transparency == 0 then
  1199. if c.Parent == Char then
  1200. end
  1201. c:BreakJoints()
  1202. c.Material = "Glass"
  1203. c.Color = C3(2.4,0,2.4)
  1204. c.CanCollide = true
  1205. c.Transparency = 0.3
  1206. if c:FindFirstChildOfClass("SpecialMesh") then
  1207. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1208. end
  1209. if c.Name == "Head" then
  1210. c:ClearAllChildren()
  1211. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1212. end
  1213. if c.ClassName == "MeshPart" then
  1214. c.TextureID = ""
  1215. end
  1216. if c:FindFirstChildOfClass("BodyPosition") then
  1217. c:FindFirstChildOfClass("BodyPosition"):remove()
  1218. end
  1219. if c:FindFirstChildOfClass("ParticleEmitter") then
  1220. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1221. end
  1222. c.Parent = NewCharacter
  1223. c.Name = "DeadPart"
  1224. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1225. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1226. end
  1227. end
  1228. Char:remove()
  1229. Debris:AddItem(NewCharacter,5)
  1230. end
  1231.  
  1232. function KillChildren(v)
  1233. v:BreakJoints()
  1234. for _, c in pairs(v:GetChildren()) do
  1235. if c:IsA("BasePart") then
  1236. if c.Transparency < 1 then
  1237. if c:FindFirstChildOfClass("Decal") then
  1238. c:FindFirstChildOfClass("Decal"):remove()
  1239. end
  1240. particles(c)
  1241. c.PE.Enabled = true
  1242. c.Parent = Effects
  1243. c.CanCollide = false
  1244. c.Material = "Neon"
  1245. c.Color = C3(2.4,0,2.4)
  1246. c.Transparency = 1
  1247. local grav = Instance.new("BodyPosition",c)
  1248. grav.P = 20000
  1249. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1250. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1251. grav.Name = "GravityForce"
  1252. coroutine.resume(coroutine.create(function()
  1253. for i = 1, 20 do
  1254. Swait()
  1255. c.Transparency = c.Transparency + 1/20
  1256. end
  1257. c.PE.Enabled = false
  1258. Debris:AddItem(c,2)
  1259. end))
  1260. end
  1261. end
  1262. end
  1263. end
  1264.  
  1265. function ApplyAoE(POSITION,RANGE)
  1266. local CHILDREN = workspace:GetDescendants()
  1267. for index, CHILD in pairs(CHILDREN) do
  1268. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1269. local LISTED = false
  1270. for LIST = 1, #WHITELIST do
  1271. if WHITELIST[LIST] ~= nil then
  1272. if CHILD.Name == WHITELIST[LIST] then
  1273. LISTED = true
  1274. end
  1275. end
  1276. end
  1277. if LISTED == false then
  1278. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1279. if HUM then
  1280. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1281. if TORSO then
  1282. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  1283. Kill(CHILD)
  1284. KillChildren(CHILD)
  1285. end
  1286. end
  1287. end
  1288. end
  1289. end
  1290. end
  1291. end
  1292.  
  1293. --//=================================\\
  1294. --|| ATTACK FUNCTIONS AND STUFF
  1295. --\\=================================//
  1296. local sine=0
  1297.  
  1298. function SpawnSmite(POS)
  1299. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1300. local EMITPOS = HITPOS
  1301. if HITFLOOR ~= nil then
  1302. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1303. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1304. EMITPOS = HITPOS
  1305. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1306. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1307. EMITPOS = HITPOS
  1308. end
  1309. end
  1310. if HITFLOOR ~= nil then
  1311. ApplyAoE(EMITPOS,10)
  1312. 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})
  1313. 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})
  1314. 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})
  1315. for i = 1, 5 do
  1316. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1317. 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})
  1318. end
  1319. end
  1320. end
  1321.  
  1322. function Smite()
  1323. ATTACK = true
  1324. Rooted = false
  1325. CreateSound(1368573150, RightArm, 3, 1.5)
  1326. for i=0, 0.6, 0.1 / Animation_Speed do
  1327. Swait()
  1328. 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})
  1329. 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)
  1330. 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)
  1331. end
  1332. local POWER = 0
  1333. repeat
  1334. Swait()
  1335. 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})
  1336. 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)
  1337. 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)
  1338. POWER = POWER + 0.5
  1339. if POWER >= 85 then
  1340. POWER = 85
  1341. end
  1342. until KEYHOLD == false
  1343. if POWER < 0.6 then
  1344. SpawnSmite(Mouse.Hit.p)
  1345. else
  1346. end
  1347. ATTACK = false
  1348. Rooted = false
  1349. end
  1350.  
  1351. function FingerMagic()
  1352. ATTACK = true
  1353. Rooted = false
  1354. for i=0, 0.1, 0.1 / Animation_Speed do
  1355. Swait()
  1356. 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)
  1357. 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)
  1358. 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)
  1359. 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)
  1360. end
  1361. for i=0, 1, 0.1 / Animation_Speed do
  1362. Swait()
  1363. 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)
  1364. 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)
  1365. 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)
  1366. 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)
  1367. end
  1368. 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})
  1369. for i = 1, 5 do
  1370. 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})
  1371. end
  1372. CreateSound(217767125, LeftArm, 10, 1, false)
  1373. coroutine.resume(coroutine.create(function()
  1374. local EXPLODED = false
  1375. for i = 1, 3 do
  1376. coroutine.resume(coroutine.create(function()
  1377. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1378. if HITFLOOR then
  1379. local CFRAME = CF(HITPOS) * ANGLES(RAD(0), RAD((360/3)*i), RAD(0))
  1380. for i = 1, 35 do
  1381. wait()
  1382. for _, c in pairs(workspace:GetChildren()) do
  1383. if EXPLODED == false and c.ClassName == "Model" and c:FindFirstChildOfClass("Humanoid") and c ~= Character then
  1384. local HUM = c:FindFirstChildOfClass("Humanoid")
  1385. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  1386. if TORSO and HUM.Health > 0 then
  1387. if (TORSO.Position - CFRAME.p).Magnitude < 10 then
  1388. EXPLODED = true
  1389. coroutine.resume(coroutine.create(function()
  1390. for i = 1, 15 do
  1391. ApplyAoE(CFRAME*CF(0,10,0).p,30+(i*4),0,0,-35,false)
  1392. wait(0.2)
  1393. 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})
  1394. 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})
  1395. 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})
  1396. end
  1397. 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})
  1398. wait(1)
  1399. 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})
  1400. local PART = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1401. PART.CFrame = CFRAME*CF(0,10,0)
  1402. Debris:AddItem(PART,10)
  1403. local PARTICLES = script.Explode:Clone()
  1404. PARTICLES.Parent = PART
  1405. PARTICLES:Emit(500)
  1406. ApplyAoE(CFRAME*CF(0,10,0).p,45*2,0,0,350,true)
  1407. 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})
  1408. 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})
  1409. 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})
  1410. end))
  1411. end
  1412. end
  1413. end
  1414. end
  1415. if EXPLODED == true then
  1416. break
  1417. end
  1418. CFRAME = CFRAME * ANGLES(RAD(0), RAD(10), RAD(0)) * CF(0,0,-3)
  1419. 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})
  1420. 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})
  1421. end
  1422. end
  1423. end))
  1424. end
  1425. end))
  1426. for i=0, 1, 0.1 / Animation_Speed do
  1427. Swait()
  1428. 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)
  1429. 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)
  1430. 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)
  1431. 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)
  1432. end
  1433. ATTACK = false
  1434. Rooted = false
  1435. end
  1436.  
  1437.  
  1438.  
  1439. function Beamo()
  1440. ATTACK = true
  1441. Humanoid.WalkSpeed = 0
  1442. local Ring1 = Instance.new("Part", char)
  1443. Ring1.Anchored = true
  1444. Ring1.BrickColor = maincolor
  1445. Ring1.CanCollide = false
  1446. Ring1.FormFactor = 3
  1447. Ring1.Name = "Ring"
  1448. Ring1.Material = "Neon"
  1449. Ring1.Size = Vector3.new(1, 0.05, 1)
  1450. Ring1.Transparency = 1
  1451. Ring1.TopSurface = 0
  1452. Ring1.BottomSurface = 0
  1453. local Ring1Mesh = Instance.new("SpecialMesh", Ring1)
  1454. Ring1Mesh.MeshType = "Brick"
  1455. Ring1Mesh.Name = "SizeMesh"
  1456. Ring1Mesh.Scale = Vector3.new(0, 1, 0)
  1457. local InnerRing1 = Ring1:Clone()
  1458. InnerRing1.Parent = char
  1459. InnerRing1.Transparency = 0
  1460. InnerRing1.BrickColor = BrickColor.new("New Yeller")
  1461. InnerRing1.Size = Vector3.new(1, 1, 1)
  1462. local InnerRing1Mesh = InnerRing1.SizeMesh
  1463. InnerRing1Mesh.Scale = Vector3.new(0, 0, 0)
  1464. InnerRing1Mesh.MeshType = "Sphere"
  1465. Ring1:Destroy()
  1466. for i = 0, 8, 0.1 do
  1467. swait()
  1468. 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")
  1469. 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)
  1470. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35 - 4.5 * Sin(sine / 30)), Rad(0), Rad(-90)), 0.3)
  1471. 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)
  1472. 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)
  1473. 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)
  1474. 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)
  1475. end
  1476. InnerRing1.Transparency = 1
  1477. InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 5
  1478. Cso("294188875", char, 2.3, 1)
  1479. local a = IT("Part", char)
  1480. a.Name = "Direction"
  1481. a.Anchored = true
  1482. a.BrickColor = BrickC("Bright violet")
  1483. a.Material = "Neon"
  1484. a.Transparency = 0
  1485. a.Shape = "Cylinder"
  1486. a.CanCollide = false
  1487. local a2 = IT("Part", char)
  1488. a2.Name = "Direction"
  1489. a2.Anchored = true
  1490. a2.BrickColor = BrickC("Bright violet")
  1491. a2.Color = maincolor.Color
  1492. a2.Material = "Neon"
  1493. a2.Transparency = 0.2
  1494. a2.Shape = "Cylinder"
  1495. a2.CanCollide = false
  1496. local ba = IT("Part", char)
  1497. ba.Name = "HitDirect"
  1498. ba.Anchored = true
  1499. ba.BrickColor = BrickC("Bright violet")
  1500. ba.Material = "Neon"
  1501. ba.Transparency = 1
  1502. ba.CanCollide = false
  1503. local ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  1504. local ignore = char
  1505. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1506. a.BottomSurface = 9.9
  1507. a.TopSurface = 9.9
  1508. a2.BottomSurface = 10
  1509. a2.TopSurface = 10
  1510. local distance = (InnerRing1.CFrame.p - position).magnitude
  1511. a.Size = Vector3.new(distance, 1, 1)
  1512. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1513. a2.Size = Vector3.new(distance, 1, 1)
  1514. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1515. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  1516. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  1517. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  1518. game:GetService("Debris"):AddItem(a, 20)
  1519. game:GetService("Debris"):AddItem(a2, 20)
  1520. game:GetService("Debris"):AddItem(ba, 20)
  1521. local msh = Instance.new("SpecialMesh", a)
  1522. msh.MeshType = "Cylinder"
  1523. msh.Scale = Vector3.new(1, 15, 15)
  1524. local msh2 = Instance.new("SpecialMesh", a2)
  1525. msh2.MeshType = "Cylinder"
  1526. msh2.Scale = Vector3.new(1, 25, 25)
  1527. for z = 0, 1 do
  1528. for i = 0, 4, 0.1 do
  1529. swait()
  1530. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1531. a2.Color = maincolor.Color
  1532. root.CFrame = FaceMouse()[1]
  1533. InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 4
  1534. ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  1535. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1536. distance = (InnerRing1.CFrame.p - position).magnitude
  1537. a.Size = Vector3.new(distance, 1, 1)
  1538. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1539. a2.Size = Vector3.new(distance, 1, 1)
  1540. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1541. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  1542. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  1543. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  1544. msh.Scale = msh.Scale - Vector3.new(0, 0.25, 0.25)
  1545. msh2.Scale = msh2.Scale - Vector3.new(0, 0.3, 0.3)
  1546. 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")
  1547. 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")
  1548. for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do
  1549. if v:FindFirstChild("Head") then
  1550. Kill(v)
  1551. wait(0.2)
  1552. KillChildren(v)
  1553. end
  1554. end
  1555. end
  1556. for i = 0, 4, 0.1 do
  1557. swait()
  1558. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1559. a2.Color = maincolor.Color
  1560. root.CFrame = FaceMouse()[1]
  1561. InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 4
  1562. ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  1563. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1564. distance = (InnerRing1.CFrame.p - position).magnitude
  1565. a.Size = Vector3.new(distance, 1, 1)
  1566. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1567. a2.Size = Vector3.new(distance, 1, 1)
  1568. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1569. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  1570. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  1571. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  1572. msh.Scale = msh.Scale + Vector3.new(0, 0.25, 0.25)
  1573. msh2.Scale = msh2.Scale + Vector3.new(0, 0.3, 0.3)
  1574. 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")
  1575. 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")
  1576. for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do
  1577. if v:FindFirstChild("Head") then
  1578. Kill(v)
  1579. wait(0.2)
  1580. KillChildren(v)
  1581. end
  1582. end
  1583. end
  1584. end
  1585. for i = 0, 10, 0.1 do
  1586. swait()
  1587. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1588. a2.Color = maincolor.Color
  1589. root.CFrame = FaceMouse()[1]
  1590. InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 4
  1591. ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  1592. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1593. distance = (InnerRing1.CFrame.p - position).magnitude
  1594. a.Size = Vector3.new(distance, 1, 1)
  1595. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1596. a2.Size = Vector3.new(distance, 1, 1)
  1597. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1598. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  1599. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  1600. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  1601. msh.Scale = msh.Scale - Vector3.new(0, 0.15, 0.15)
  1602. msh2.Scale = msh2.Scale - Vector3.new(0, 0.2, 0.2)
  1603. 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")
  1604. 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")
  1605. for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do
  1606. if v:FindFirstChild("Head") then
  1607. Kill(v)
  1608. wait(0.2)
  1609. KillChildren(v)
  1610. end
  1611. end
  1612. end
  1613. hum.WalkSpeed = 8
  1614. a:Destroy()
  1615. a2:Destroy()
  1616. ba:Destroy()
  1617. InnerRing1:Destroy()
  1618. ATTACK = false
  1619. hum.CameraOffset = Vector3.new(0,0,0)
  1620. end
  1621.  
  1622.  
  1623.  
  1624. function Teleport()
  1625. ATTACK = true
  1626. Rooted = false
  1627. for i=0, 0.5, 0.1 / Animation_Speed do
  1628. Swait()
  1629. 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)
  1630. 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)
  1631. end
  1632. for e = 1, #BODY do
  1633. if BODY[e] ~= nil then
  1634. local STUFF = BODY[e]
  1635. local PART = STUFF[1]
  1636. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  1637. local PRT = PART:Clone()
  1638. PRT.Anchored = true
  1639. PRT.CanCollide = false
  1640. PRT.Material = "Neon"
  1641. PRT.Color = C3(204,0,204)
  1642. PRT.Name = "WarpEffect"
  1643. PRT.Parent = Effects
  1644. PRT.CFrame = PART.CFrame
  1645. PRT:BreakJoints()
  1646. if PRT:FindFirstChildOfClass("Sound") then
  1647. PRT:FindFirstChildOfClass("Sound"):remove()
  1648. end
  1649. if PRT:FindFirstChildOfClass("Decal") then
  1650. PRT:FindFirstChildOfClass("Decal"):remove()
  1651. end
  1652. coroutine.resume(coroutine.create(function()
  1653. for i = 1, 100 do
  1654. Swait()
  1655. PRT.Transparency = PRT.Transparency + 1/100
  1656. end
  1657. PRT:remove()
  1658. end))
  1659. end
  1660. end
  1661. end
  1662. CreateSound(217767125, Torso, 10, 1)
  1663. local POS = RootPart.Orientation
  1664. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  1665. RootPart.Orientation = POS
  1666. RootJoint.Parent = RootPart
  1667. for i=0, 0.5, 0.1 / Animation_Speed do
  1668. Swait()
  1669. 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)
  1670. 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)
  1671. end
  1672. for i=0, 0.1, 0.1 / Animation_Speed do
  1673. Swait()
  1674. 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)
  1675. end
  1676. ATTACK = false
  1677. Rooted = false
  1678. end
  1679.  
  1680. function Erruption()
  1681. ATTACK = true
  1682. Rooted = true
  1683. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
  1684. for i=0, 1, 0.1 / Animation_Speed do
  1685. Swait()
  1686. 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)
  1687. 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)
  1688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1690. 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)
  1691. 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)
  1692. end
  1693. coroutine.resume(coroutine.create(function()
  1694. local POS = Mouse.Hit.p
  1695. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,2000,0))
  1696. MakeForm(RAY,"Cyl")
  1697. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1698. MakeForm(SPHERE,"Ball")
  1699. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  1700. MakeForm(SHIELD,"Ball")
  1701. SHIELD.CFrame = CF(POS)
  1702. RAY.CFrame = CF(POS)
  1703. SPHERE.CFrame = CF(POS)
  1704. CreateSound(440145570, SPHERE, 10, 0.8, false)
  1705. CreateSound(415700134, SPHERE, 10, 0.8, false)
  1706. for i = 1, 200 do
  1707. Swait()
  1708. 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})
  1709. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1710. SPHERE.Size = SPHERE.Size + VT(5,5,5)
  1711. SHIELD.Size = SPHERE.Size + VT(6,6,6)
  1712. ApplyAoE(SPHERE.Position,SPHERE.Size.X/3,true)
  1713. end
  1714. for i = 1, 45 do
  1715. Swait()
  1716. RAY.Transparency = RAY.Transparency + 1/45
  1717. SPHERE.Transparency = RAY.Transparency
  1718. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1719. end
  1720. RAY:remove()
  1721. SHIELD:remove()
  1722. SPHERE:remove()
  1723. end))
  1724. for i=0, 1, 0.1 / Animation_Speed do
  1725. Swait()
  1726. 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)
  1727. 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)
  1728. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1729. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1730. 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)
  1731. 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)
  1732. end
  1733. ATTACK = false
  1734. Rooted = false
  1735. end
  1736.  
  1737. function Prison_Key()
  1738. if Mouse.Target ~= nil then
  1739. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1740. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1741. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1742. local GYRO = IT("BodyGyro",RootPart)
  1743. GYRO.D = 750
  1744. GYRO.P = 20000
  1745. GYRO.MaxTorque = VT(0,40000000,0)
  1746. local grav = Instance.new("BodyPosition",TORSO)
  1747. grav.D = 15
  1748. grav.P = 20000
  1749. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1750. grav.position = TORSO.Position
  1751. local GYRO2 = IT("BodyGyro",TORSO)
  1752. GYRO2.D = 750
  1753. GYRO2.P = 20000
  1754. GYRO2.MaxTorque = VT(0,40000000,0)
  1755. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1756. grav.Name = "Jail"
  1757. local LOCKPARTS = {}
  1758. ATTACK = true
  1759. Rooted = false
  1760. local LOCK = IT("Model",Effects)
  1761. LOCK.Name = "Lock"
  1762. local LOCK2 = IT("Model",LOCK)
  1763. LOCK2.Name = "Metal"
  1764. --CREATE LOCK--
  1765. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1766. LOCK.PrimaryPart = BASE
  1767. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1768. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1769. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1770. MakeForm(PRT,"Cyl")
  1771. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1772. PRT.Color = C3(0,0,0)
  1773. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1774. MakeForm(PRT,"Cyl")
  1775. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1776. PRT.Color = C3(0,0,0)
  1777. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1778. for i = 1, 45 do
  1779. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1780. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1781. end
  1782. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1783. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1784. LOCK2.PrimaryPart = PRT
  1785. ---------------
  1786. local CHILDREN = LOCK:GetDescendants()
  1787. for index, CHILD in pairs(CHILDREN) do
  1788. if CHILD:IsA("BasePart") then
  1789. CHILD.Transparency = 1
  1790. end
  1791. end
  1792. for i = 1, 75 do
  1793. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1794. Swait()
  1795. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1796. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1797. local CHILDREN = LOCK:GetDescendants()
  1798. for index, CHILD in pairs(CHILDREN) do
  1799. if CHILD:IsA("BasePart") then
  1800. CHILD.Transparency = CHILD.Transparency - 1/75
  1801. end
  1802. end
  1803. end
  1804. HUM.DisplayDistanceType = "None"
  1805. local KEY = IT("Model",Effects)
  1806. KEY.Name = "Key"
  1807. --CREATE KEY--
  1808. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1809. KEY.PrimaryPart = KBASE
  1810. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1811. local WLD = weldBetween(RightArm,KBASE)
  1812. for i = 1, 45 do
  1813. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1814. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1815. weldBetween(KBASE,PRT)
  1816. end
  1817. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1818. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1819. weldBetween(KBASE,PRT)
  1820. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1821. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1822. weldBetween(KBASE,PRT)
  1823. --------------
  1824. Rooted = true
  1825. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1826. coroutine.resume(coroutine.create(function()
  1827. for i = 1, 10 do
  1828. Swait()
  1829. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1830. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1831. end
  1832. CreateSound(1149318312,BASE,5,1,false)
  1833. CreateSound(160772554,BASE,3,1,false)
  1834. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1835. for i = 1, 4 do
  1836. 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})
  1837. end
  1838. 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})
  1839. wait(1)
  1840. TORSO.Parent.Parent = LOCK
  1841. for i = 1, 75 do
  1842. Swait()
  1843. local CHILDREN = KEY:GetDescendants()
  1844. for index, CHILD in pairs(CHILDREN) do
  1845. if CHILD:IsA("BasePart") then
  1846. CHILD.Transparency = i/25
  1847. end
  1848. end
  1849. local CHILDREN = LOCK:GetDescendants()
  1850. for index, CHILD in pairs(CHILDREN) do
  1851. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1852. CHILD.Transparency = CHILD.Transparency + 1/75
  1853. elseif CHILD.ClassName == "Decal" then
  1854. CHILD.Transparency = CHILD.Transparency + 1/75
  1855. end
  1856. end
  1857. end
  1858. TORSO.Parent:ClearAllChildren()
  1859. KEY:remove()
  1860. LOCK:remove()
  1861. end))
  1862. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1863. GYRO:remove()
  1864. ATTACK = false
  1865. Rooted = false
  1866. end
  1867. end
  1868. end
  1869.  
  1870. function TakeOnMe()
  1871. Speed = 5
  1872. local MEME = CreateSound(288703954, Effects, 0, 1, false)
  1873. ATTACK = true
  1874. Rooted = false
  1875. local DANCE = true
  1876. local KEY = Mouse.KeyDown:connect(function(NEWKEY)
  1877. if NEWKEY == "p" then
  1878. DANCE = false
  1879. end
  1880. end)
  1881. while true do
  1882. for i = 1, 15 do
  1883. Swait()
  1884. MEME.Parent = Effects
  1885. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1886. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1887. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1888. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1889. 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)
  1890. 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)
  1891. end
  1892. if DANCE == false then
  1893. break
  1894. end
  1895. for i = 1, 15 do
  1896. Swait()
  1897. MEME.Parent = Effects
  1898. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1899. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1900. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1901. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1902. 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)
  1903. 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)
  1904. end
  1905. end
  1906. KEY:Disconnect()
  1907. MEME:remove()
  1908. Speed = 25
  1909. ATTACK = false
  1910. Rooted = false
  1911. end
  1912. --//=================================\\
  1913. --|| ASSIGN THINGS TO KEYS
  1914. --\\=================================//
  1915.  
  1916. function MouseUp(Mouse)
  1917. HOLD = false
  1918. end
  1919.  
  1920. function KeyDown(Key)
  1921. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1922. KEYHOLD = true
  1923. if Key == "f" and ATTACK == false then
  1924. Prison_Key()
  1925. end
  1926.  
  1927. if Key == "c" and ATTACK == false then
  1928. Smite()
  1929. end
  1930.  
  1931. if Key == "x" and ATTACK == false then
  1932. FingerMagic()
  1933. end
  1934.  
  1935. if Key == "t" and ATTACK == false then
  1936. Erruption()
  1937. end
  1938.  
  1939. if Key == "q" and ATTACK == false then
  1940. Teleport()
  1941. end
  1942.  
  1943. if Key == "v" and ATTACK == false then
  1944. Beamo()
  1945. end
  1946.  
  1947. if Key == "p" and ATTACK == false then
  1948. TakeOnMe()
  1949. end
  1950. end
  1951. end
  1952.  
  1953. function KeyUp(Key)
  1954. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1955. KEYHOLD = false
  1956. end
  1957. end
  1958.  
  1959. Mouse.Button1Down:connect(function(NEWKEY)
  1960. MouseDown(NEWKEY)
  1961. end)
  1962. Mouse.Button1Up:connect(function(NEWKEY)
  1963. MouseUp(NEWKEY)
  1964. end)
  1965. Mouse.KeyDown:connect(function(NEWKEY)
  1966. KeyDown(NEWKEY)
  1967. end)
  1968. Mouse.KeyUp:connect(function(NEWKEY)
  1969. KeyUp(NEWKEY)
  1970. end)
  1971.  
  1972. --//=================================\\
  1973. --\\=================================//
  1974.  
  1975.  
  1976. function AntiTimeStop()
  1977. for _, c in pairs(Character:GetChildren()) do
  1978. if c:IsA("BasePart") and c ~= RootPart then
  1979. c.Anchored = false
  1980. end
  1981. end
  1982. if UNANCHOR == true then
  1983. RootPart.Anchored = false
  1984. else
  1985. RootPart.Anchored = true
  1986. end
  1987. end
  1988.  
  1989.  
  1990. --//=================================\\
  1991. --|| WRAP THE WHOLE SCRIPT UP
  1992. --\\=================================//
  1993.  
  1994. Humanoid.Changed:connect(function(Jump)
  1995. if Jump == "Jump" and (Disable_Jump == true) then
  1996. Humanoid.Jump = false
  1997. end
  1998. end)
  1999.  
  2000. local BLINKLOOP = 0
  2001. script.Parent = WEAPONGUI
  2002. ANIMATE.Parent = nil
  2003.  
  2004. while true do
  2005. Swait()
  2006. if Humanoid then
  2007. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2008. IDLEANIMATION:Play()
  2009. end
  2010. SINE = SINE + CHANGE*2
  2011. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2012. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2013. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2014. local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 25)
  2015. 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)
  2016. if ANIM == "Walk" and TORSOVELOCITY > 1 and FULL == false then
  2017. 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)
  2018. 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)
  2019. 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)
  2020. 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)
  2021. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or FULL == true then
  2022. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2023. 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)
  2024. 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)
  2025. 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)
  2026. end
  2027. if FULL == false then
  2028. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2029. ANIM = "Jump"
  2030. if ATTACK == false then
  2031. 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)
  2032. 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)
  2033. end
  2034. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2035. if TAUNT == false then
  2036. 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)
  2037. end
  2038. 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)
  2039. 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)
  2040. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2041. ANIM = "Fall"
  2042. if ATTACK == false then
  2043. 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)
  2044. 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)
  2045. end
  2046. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(OFFSET)), 0.2 / Animation_Speed)
  2047. if TAUNT == false then
  2048. 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)
  2049. end
  2050. 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)
  2051. 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)
  2052. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2053. ANIM = "Idle"
  2054. if ATTACK == false then
  2055. 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)
  2056. 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)
  2057. end
  2058. 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)
  2059. if TAUNT == false then
  2060. 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)
  2061. end
  2062. 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)
  2063. 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)
  2064. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2065. ANIM = "Walk"
  2066. if ATTACK == false then
  2067. 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)
  2068. 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)
  2069. end
  2070. if TAUNT == false then
  2071. 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)
  2072. end
  2073. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(OFFSET)), 0.8 / Animation_Speed)
  2074. 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)
  2075. 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)
  2076. end
  2077. end
  2078. AntiTimeStop()
  2079. Humanoid.MaxHealth = 15e15
  2080. Humanoid.Health = 15e15
  2081. if Rooted == false then
  2082. Disable_Jump = false
  2083. Humanoid.WalkSpeed = Speed
  2084. elseif Rooted == true then
  2085. Disable_Jump = true
  2086. Humanoid.WalkSpeed = 0
  2087. end
  2088. refit()
  2089. sick.Volume = 2
  2090. sick.Pitch = 1
  2091. sick.Playing = true
  2092. sick.Parent = Torso
  2093. for _, c in pairs(Cam:GetChildren()) do
  2094. if game.Players:FindFirstChild(c.Name) == nil and c.ClassName == "BillboardGui" then
  2095. c:remove()
  2096. end
  2097. end
  2098. if Character:FindFirstChildOfClass("Accessory") then
  2099. Character:FindFirstChildOfClass("Accessory"):remove()
  2100. elseif Character:FindFirstChildOfClass("Hat") then
  2101. Character:FindFirstChildOfClass("Hat"):remove()
  2102. end
  2103.  
  2104. Humanoid.PlatformStand = false
  2105. Humanoid.Name = "U ar ded"
  2106. refit()
  2107. for _, c in pairs(Character:GetChildren()) do
  2108. if c:IsA("BasePart") and ATTACK == false then
  2109. for _, e in pairs(c:GetChildren()) do
  2110. if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then
  2111. e:remove()
  2112. end
  2113. end
  2114. end
  2115. end
  2116. end
  2117.  
  2118. --//====================================================\\--
  2119. --|| END OF SCRIPT
  2120. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement