Advertisement
cobblecorn

Untitled

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