Advertisement
cobblecorn

Untitled

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