Advertisement
cobblecorn

Untitled

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