Advertisement
SonicrixLP

ginT

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