Advertisement
cobblecorn

Untitled

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