Advertisement
cobblecorn

Untitled

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