JacksoMykalJunior

GOD OF BANISHER [RL][FE]

Mar 9th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.87 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
  5. print("Have Fun!")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55.  
  56.  
  57. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false)
  58. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  59. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false)
  60. MakeForm(Part,"Wedge")
  61. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  62. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false)
  63. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  64. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  65. MakeForm(Part,"Cyl")
  66. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  67. for i = 1, 8 do
  68. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  69. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  70. end
  71. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  72. MakeForm(Part,"Wedge")
  73. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  74. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
  75. MakeForm(Part,"Cyl")
  76. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  77. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  78. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  79. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false)
  80. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  81. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false)
  82. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  83. local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
  84. MakeForm(RightBarrel,"Cyl")
  85. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  86. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false)
  87. MakeForm(Part,"Wedge")
  88. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  89. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
  90. MakeForm(RightHole,"Cyl")
  91. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
  92. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false)
  93. local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  94. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false)
  95. MakeForm(Part,"Wedge")
  96. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  97. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false)
  98. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  99. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
  100. MakeForm(Part,"Cyl")
  101. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  102. for i = 1, 8 do
  103. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false)
  104. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  105. end
  106. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
  107. MakeForm(Part,"Wedge")
  108. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  109. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false)
  110. MakeForm(Part,"Cyl")
  111. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  112. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false)
  113. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  114. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false)
  115. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  116. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false)
  117. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  118. local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false)
  119. MakeForm(LeftBarrel,"Cyl")
  120. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  121. local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false)
  122. MakeForm(Part,"Wedge")
  123. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  124. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false)
  125. MakeForm(LeftHole,"Cyl")
  126. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
  127. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  128. MakeForm(Eye,"Ball")
  129. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  130. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  131. MakeForm(Eye,"Ball")
  132. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  133. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  134. MakeForm(Eye,"Ball")
  135. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  136. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  137. MakeForm(Eye,"Ball")
  138. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  139. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  140. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  141. end
  142. end)
  143. Event.Parent = NLS([==[
  144. local Player = owner
  145. local Event = script:WaitForChild("UserInput_Event")
  146.  
  147. local UIS = game:GetService("UserInputService")
  148. local input = function(io,a)
  149. if a then return end
  150. --Since InputObject is a client-side instance, we create and pass table instead
  151. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  152. end
  153. UIS.InputBegan:Connect(input)
  154. UIS.InputEnded:Connect(input)
  155.  
  156. local Mouse = Player:GetMouse()
  157. local h,t
  158. --Give the server mouse data 30 times every second, but only if the values changed
  159. --If player is not moving their mouse, client won't fire events
  160. while wait(1/30) do
  161. if h~=Mouse.Hit or t~=Mouse.Target then
  162. h,t=Mouse.Hit,Mouse.Target
  163. Event:FireServer({isMouse=true,Target=t,Hit=h})
  164. end
  165. end]==],Player.Character)
  166. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  167. end
  168.  
  169.  
  170.  
  171. script.Name = "Soul Pistol"
  172. --Original script created by shackluster
  173. --Edit by Biologically_Noob
  174. script:ClearAllChildren()
  175. wait(0.2)
  176.  
  177. --|SIMPLE KICK SCRIPT FOR EMERGENCY PURPOSES AND STUFF|--
  178. --|ROBLOX SCRIPT BUILDER LOCAL SCRIPT|--
  179. player=owner
  180. player.Chatted:connect(function(m)
  181. if string.sub(m,1,6)=="kick " then
  182. local victim
  183. for i,v in pairs(game.Players:GetPlayers()) do
  184. if string.find(m,v.Name) then
  185. v:Kick()
  186. end
  187. end
  188. end
  189. end)
  190. Player = owner
  191. PlayerGui = Player.PlayerGui
  192. Cam = workspace.CurrentCamera
  193. Backpack = Player.Backpack
  194. Character = Player.Character
  195. Humanoid = Character.Humanoid
  196. RootPart = Character["HumanoidRootPart"]
  197. Torso = Character["Torso"]
  198. Head = Character["Head"]
  199. RightArm = Character["Right Arm"]
  200. LeftArm = Character["Left Arm"]
  201. RightLeg = Character["Right Leg"]
  202. LeftLeg = Character["Left Leg"]
  203. RootJoint = RootPart["RootJoint"]
  204. Neck = Torso["Neck"]
  205. RightShoulder = Torso["Right Shoulder"]
  206. LeftShoulder = Torso["Left Shoulder"]
  207. RightHip = Torso["Right Hip"]
  208. LeftHip = Torso["Left Hip"]
  209. local TIME = 0
  210. local sick = Instance.new("Sound",Torso)
  211.  
  212. IT = Instance.new
  213. CF = CFrame.new
  214. VT = Vector3.new
  215. RAD = math.rad
  216. C3 = Color3.new
  217. UD2 = UDim2.new
  218. BRICKC = BrickColor.new
  219. ANGLES = CFrame.Angles
  220. EULER = CFrame.fromEulerAnglesXYZ
  221. COS = math.cos
  222. ACOS = math.acos
  223. SIN = math.sin
  224. ASIN = math.asin
  225. ABS = math.abs
  226. MRANDOM = math.random
  227. FLOOR = math.floor
  228.  
  229. --//=================================\\
  230. --|| USEFUL VALUES
  231. --\\=================================//
  232.  
  233. Animation_Speed = 3
  234. local FORCERESET = false
  235. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  236. local Speed = 16
  237. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  238. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  239. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  240. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  241. local DAMAGEMULTIPLIER = 1
  242. local ANIM = "Idle"
  243. local ATTACK = false
  244. local EQUIPPED = false
  245. local HOLD = false
  246. local COMBO = 1
  247. local Rooted = false
  248. local SINE = 0
  249. local KEYHOLD = false
  250. local CHANGE = 2 / Animation_Speed
  251. local WALKINGANIM = false
  252. local VALUE1 = false
  253. local VALUE2 = false
  254. local ROBLOXIDLEANIMATION = IT("Animation")
  255. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  256. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  257. --ROBLOXIDLEANIMATION.Parent = Humanoid
  258. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  259. WEAPONGUI.Name = "BanishV3Gui"
  260. local Weapon = IT("Model")
  261. Weapon.Name = "Adds"
  262. local Effects = IT("Folder", Weapon)
  263. Effects.Name = "Effects"
  264. local ANIMATOR = Humanoid.Animator
  265. local ANIMATE = Character:FindFirstChild("Animate")
  266. local UNANCHOR = true
  267. local TOBANISH = {}
  268. script.Parent = PlayerGui
  269.  
  270. --//=================================\\
  271. --\\=================================//
  272.  
  273.  
  274. --//=================================\\
  275. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  276. --\\=================================//
  277.  
  278. ArtificialHB = Instance.new("BindableEvent", script)
  279. ArtificialHB.Name = "ArtificialHB"
  280.  
  281. script:WaitForChild("ArtificialHB")
  282.  
  283. frame = Frame_Speed
  284. tf = 0
  285. allowframeloss = false
  286. tossremainder = false
  287. lastframe = tick()
  288. script.ArtificialHB:Fire()
  289.  
  290. game:GetService("RunService").Heartbeat:connect(function(s, p)
  291. tf = tf + s
  292. if tf >= frame then
  293. if allowframeloss then
  294. script.ArtificialHB:Fire()
  295. lastframe = tick()
  296. else
  297. for i = 1, math.floor(tf / frame) do
  298. script.ArtificialHB:Fire()
  299. end
  300. lastframe = tick()
  301. end
  302. if tossremainder then
  303. tf = 0
  304. else
  305. tf = tf - frame * math.floor(tf / frame)
  306. end
  307. end
  308. end)
  309.  
  310. --//=================================\\
  311. --\\=================================//
  312.  
  313. --//=================================\\
  314. --|| SOME FUNCTIONS
  315. --\\=================================//
  316.  
  317. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  318. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  319. end
  320.  
  321. function PositiveAngle(NUMBER)
  322. if NUMBER >= 0 then
  323. NUMBER = 0
  324. end
  325. return NUMBER
  326. end
  327.  
  328. function NegativeAngle(NUMBER)
  329. if NUMBER <= 0 then
  330. NUMBER = 0
  331. end
  332. return NUMBER
  333. end
  334.  
  335. function Swait(NUMBER)
  336. if NUMBER == 0 or NUMBER == nil then
  337. ArtificialHB.Event:wait()
  338. else
  339. for i = 1, NUMBER do
  340. ArtificialHB.Event:wait()
  341. end
  342. end
  343. end
  344.  
  345. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  346. local NEWMESH = IT(MESH)
  347. if MESH == "SpecialMesh" then
  348. NEWMESH.MeshType = MESHTYPE
  349. if MESHID ~= "nil" and MESHID ~= "" then
  350. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  351. end
  352. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  353. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  354. end
  355. end
  356. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  357. NEWMESH.Scale = SCALE
  358. NEWMESH.Parent = PARENT
  359. return NEWMESH
  360. end
  361.  
  362. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  363. local NEWPART = IT("Part")
  364. NEWPART.formFactor = FORMFACTOR
  365. NEWPART.Reflectance = REFLECTANCE
  366. NEWPART.Transparency = TRANSPARENCY
  367. NEWPART.CanCollide = false
  368. NEWPART.Locked = true
  369. NEWPART.Anchored = true
  370. if ANCHOR == false then
  371. NEWPART.Anchored = false
  372. end
  373. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  374. NEWPART.Name = NAME
  375. NEWPART.Size = SIZE
  376. NEWPART.Position = Torso.Position
  377. NEWPART.Material = MATERIAL
  378. NEWPART:BreakJoints()
  379. NEWPART.Parent = PARENT
  380. return NEWPART
  381. end
  382.  
  383. local function weldBetween(a, b)
  384. local weldd = Instance.new("ManualWeld")
  385. weldd.Part0 = a
  386. weldd.Part1 = b
  387. weldd.C0 = CFrame.new()
  388. weldd.C1 = b.CFrame:inverse() * a.CFrame
  389. weldd.Parent = a
  390. return weldd
  391. end
  392.  
  393.  
  394. function QuaternionFromCFrame(cf)
  395. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  396. local trace = m00 + m11 + m22
  397. if trace > 0 then
  398. local s = math.sqrt(1 + trace)
  399. local recip = 0.5 / s
  400. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  401. else
  402. local i = 0
  403. if m11 > m00 then
  404. i = 1
  405. end
  406. if m22 > (i == 0 and m00 or m11) then
  407. i = 2
  408. end
  409. if i == 0 then
  410. local s = math.sqrt(m00 - m11 - m22 + 1)
  411. local recip = 0.5 / s
  412. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  413. elseif i == 1 then
  414. local s = math.sqrt(m11 - m22 - m00 + 1)
  415. local recip = 0.5 / s
  416. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  417. elseif i == 2 then
  418. local s = math.sqrt(m22 - m00 - m11 + 1)
  419. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  420. end
  421. end
  422. end
  423.  
  424. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  425. local xs, ys, zs = x + x, y + y, z + z
  426. local wx, wy, wz = w * xs, w * ys, w * zs
  427. local xx = x * xs
  428. local xy = x * ys
  429. local xz = x * zs
  430. local yy = y * ys
  431. local yz = y * zs
  432. local zz = z * zs
  433. 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))
  434. end
  435.  
  436. function QuaternionSlerp(a, b, t)
  437. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  438. local startInterp, finishInterp;
  439. if cosTheta >= 0.0001 then
  440. if (1 - cosTheta) > 0.0001 then
  441. local theta = ACOS(cosTheta)
  442. local invSinTheta = 1 / SIN(theta)
  443. startInterp = SIN((1 - t) * theta) * invSinTheta
  444. finishInterp = SIN(t * theta) * invSinTheta
  445. else
  446. startInterp = 1 - t
  447. finishInterp = t
  448. end
  449. else
  450. if (1 + cosTheta) > 0.0001 then
  451. local theta = ACOS(-cosTheta)
  452. local invSinTheta = 1 / SIN(theta)
  453. startInterp = SIN((t - 1) * theta) * invSinTheta
  454. finishInterp = SIN(t * theta) * invSinTheta
  455. else
  456. startInterp = t - 1
  457. finishInterp = t
  458. end
  459. end
  460. 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
  461. end
  462.  
  463. function Clerp(a, b, t)
  464. local qa = {QuaternionFromCFrame(a)}
  465. local qb = {QuaternionFromCFrame(b)}
  466. local ax, ay, az = a.x, a.y, a.z
  467. local bx, by, bz = b.x, b.y, b.z
  468. local _t = 1 - t
  469. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  470. end
  471.  
  472. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  473. local frame = IT("Frame")
  474. frame.BackgroundTransparency = TRANSPARENCY
  475. frame.BorderSizePixel = BORDERSIZEPIXEL
  476. frame.Position = POSITION
  477. frame.Size = SIZE
  478. frame.BackgroundColor3 = COLOR
  479. frame.BorderColor3 = BORDERCOLOR
  480. frame.Name = NAME
  481. frame.Parent = PARENT
  482. return frame
  483. end
  484.  
  485. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  486. local label = IT("TextLabel")
  487. label.BackgroundTransparency = 1
  488. label.Size = UD2(1, 0, 1, 0)
  489. label.Position = UD2(0, 0, 0, 0)
  490. label.TextColor3 = TEXTCOLOR
  491. label.TextStrokeTransparency = STROKETRANSPARENCY
  492. label.TextTransparency = TRANSPARENCY
  493. label.FontSize = TEXTFONTSIZE
  494. label.Font = TEXTFONT
  495. label.BorderSizePixel = BORDERSIZEPIXEL
  496. label.TextScaled = false
  497. label.Text = TEXT
  498. label.Name = NAME
  499. label.Parent = PARENT
  500. return label
  501. end
  502.  
  503. function NoOutlines(PART)
  504. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  505. end
  506.  
  507. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  508. local NEWWELD = IT(TYPE)
  509. NEWWELD.Part0 = PART0
  510. NEWWELD.Part1 = PART1
  511. NEWWELD.C0 = C0
  512. NEWWELD.C1 = C1
  513. NEWWELD.Parent = PARENT
  514. return NEWWELD
  515. end
  516.  
  517. local S = IT("Sound")
  518. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  519. local NEWSOUND = nil
  520. coroutine.resume(coroutine.create(function()
  521. NEWSOUND = S:Clone()
  522. NEWSOUND.Parent = PARENT
  523. NEWSOUND.Volume = VOLUME
  524. NEWSOUND.Pitch = PITCH
  525. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  526. NEWSOUND:play()
  527. if DOESLOOP == true then
  528. NEWSOUND.Looped = true
  529. else
  530. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  531. NEWSOUND:remove()
  532. end
  533. end))
  534. return NEWSOUND
  535. end
  536.  
  537. function CFrameFromTopBack(at, top, back)
  538. local right = top:Cross(back)
  539. 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)
  540. end
  541.  
  542. --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})
  543. function WACKYEFFECT(Table)
  544. local TYPE = (Table.EffectType or "Sphere")
  545. local SIZE = (Table.Size or VT(1,1,1))
  546. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  547. local TRANSPARENCY = (Table.Transparency or 0)
  548. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  549. local CFRAME = (Table.CFrame or Torso.CFrame)
  550. local MOVEDIRECTION = (Table.MoveToPos or nil)
  551. local ROTATION1 = (Table.RotationX or 0)
  552. local ROTATION2 = (Table.RotationY or 0)
  553. local ROTATION3 = (Table.RotationZ or 0)
  554. local MATERIAL = (Table.Material or "Neon")
  555. local COLOR = (Table.Color or C3(1,1,1))
  556. local TIME = (Table.Time or 45)
  557. local SOUNDID = (Table.SoundID or nil)
  558. local SOUNDPITCH = (Table.SoundPitch or nil)
  559. local SOUNDVOLUME = (Table.SoundVolume or nil)
  560. coroutine.resume(coroutine.create(function()
  561. local PLAYSSOUND = false
  562. local SOUND = nil
  563. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  564. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  565. PLAYSSOUND = true
  566. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  567. end
  568. EFFECT.Color = COLOR
  569. local MSH = nil
  570. if TYPE == "Sphere" then
  571. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  572. elseif TYPE == "Block" then
  573. MSH = IT("BlockMesh",EFFECT)
  574. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  575. elseif TYPE == "Wave" then
  576. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  577. elseif TYPE == "Ring" then
  578. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  579. elseif TYPE == "Slash" then
  580. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  581. elseif TYPE == "Round Slash" then
  582. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  583. elseif TYPE == "Swirl" then
  584. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  585. elseif TYPE == "Skull" then
  586. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  587. elseif TYPE == "Crystal" then
  588. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  589. end
  590. if MSH ~= nil then
  591. local MOVESPEED = nil
  592. if MOVEDIRECTION ~= nil then
  593. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  594. end
  595. local GROWTH = SIZE - ENDSIZE
  596. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  597. if TYPE == "Block" then
  598. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  599. else
  600. EFFECT.CFrame = CFRAME
  601. end
  602. for LOOP = 1, TIME+1 do
  603. Swait()
  604. MSH.Scale = MSH.Scale - GROWTH/TIME
  605. if TYPE == "Wave" then
  606. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  607. end
  608. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  609. if TYPE == "Block" then
  610. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  611. else
  612. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  613. end
  614. if MOVEDIRECTION ~= nil then
  615. local ORI = EFFECT.Orientation
  616. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  617. EFFECT.Orientation = ORI
  618. end
  619. end
  620. if PLAYSSOUND == false then
  621. EFFECT:remove()
  622. else
  623. SOUND.Stopped:Connect(function()
  624. EFFECT:remove()
  625. end)
  626. end
  627. else
  628. if PLAYSSOUND == false then
  629. EFFECT:remove()
  630. else
  631. repeat Swait() until SOUND.Playing == false
  632. EFFECT:remove()
  633. end
  634. end
  635. end))
  636. end
  637.  
  638. function MakeForm(PART,TYPE)
  639. if TYPE == "Cyl" then
  640. local MSH = IT("CylinderMesh",PART)
  641. elseif TYPE == "Ball" then
  642. local MSH = IT("SpecialMesh",PART)
  643. MSH.MeshType = "Sphere"
  644. elseif TYPE == "Wedge" then
  645. local MSH = IT("SpecialMesh",PART)
  646. MSH.MeshType = "Wedge"
  647. end
  648. end
  649.  
  650. function SpawnTrail(FROM,TO,BIG)
  651. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Cyan", "Trail", VT(0,0,0))
  652. MakeForm(TRAIL,"Cyl")
  653. local DIST = (FROM - TO).Magnitude
  654. if BIG == true then
  655. TRAIL.Size = VT(0.5,DIST,0.5)
  656. else
  657. TRAIL.Size = VT(0.25,DIST,0.25)
  658. end
  659. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  660. coroutine.resume(coroutine.create(function()
  661. for i = 1, 5 do
  662. Swait()
  663. TRAIL.Transparency = TRAIL.Transparency + 0.1
  664. end
  665. TRAIL:remove()
  666. end))
  667. end
  668.  
  669. Debris = game:GetService("Debris")
  670.  
  671. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  672. local DIRECTION = CF(StartPos,EndPos).lookVector
  673. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  674. end
  675.  
  676. function turnto(position)
  677. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  678. end
  679.  
  680. --//=================================\\
  681. --|| WEAPON CREATION
  682. --\\=================================//
  683.  
  684. local Particle = IT("ParticleEmitter",nil)
  685. Particle.Enabled = false
  686. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  687. Particle.LightEmission = 0.5
  688. Particle.Rate = 150
  689. Particle.ZOffset = 0.2
  690. Particle.Rotation = NumberRange.new(-180, 180)
  691. Particle.RotSpeed = NumberRange.new(-180, 180)
  692. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  693. Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255))
  694. local Particle2 = IT("ParticleEmitter",nil)
  695. Particle2.Enabled = false
  696. Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597"
  697. Particle2.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
  698. Particle2.LightEmission = 0
  699. Particle2.RotSpeed = NumberRange.new(0, 180)
  700. Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  701. Particle2.LightEmission = 1
  702. Particle2.Rate = 20
  703. Particle2.RotSpeed = NumberRange.new(-20, 20)
  704. local Particle3 = IT("ParticleEmitter",nil)
  705. Particle3.Enabled = false
  706. Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121"
  707. Particle3.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255))
  708. Particle3.LightEmission = 0
  709. Particle3.RotSpeed = NumberRange.new(0, 180)
  710. Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  711. Particle3.LightEmission = 1
  712. Particle3.Rate = 20
  713. Particle3.RotSpeed = NumberRange.new(-20, 20)
  714. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  715. function ParticleEmitter(Table)
  716. local PRTCL = Particle:Clone()
  717. local Speed = Table.Speed or 5
  718. local Drag = Table.Drag or 0
  719. local Size1 = Table.Size1 or 1
  720. local Size2 = Table.Size2 or 5
  721. local Lifetime1 = Table.Lifetime1 or 1
  722. local Lifetime2 = Table.Lifetime2 or 1.5
  723. local Parent = Table.Parent or Torso
  724. local Emit = Table.Emit or 100
  725. local Offset = Table.Offset or 360
  726. local Acel = Table.Acel or VT(0,0,0)
  727. local Enabled = Table.Enabled or false
  728. PRTCL.Parent = Parent
  729. PRTCL.Size = NumberSequence.new(Size1,Size2)
  730. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  731. PRTCL.Speed = NumberRange.new(Speed)
  732. PRTCL.VelocitySpread = Offset
  733. PRTCL.Drag = Drag
  734. PRTCL.Acceleration = Acel
  735. if Enabled == false then
  736. PRTCL:Emit(Emit)
  737. Debris:AddItem(PRTCL,Lifetime2)
  738. else
  739. PRTCL.Enabled = true
  740. end
  741. return PRTCL
  742. end
  743. function ParticleEmitter2(Table)
  744. local PRTCL2 = Particle2:Clone()
  745. local LockedToPart = Table.LTP or true
  746. local Speed = Table.Speed or 0
  747. local Drag = Table.Drag or 0
  748. local Size1 = Table.Size1 or 1
  749. local Size2 = Table.Size2 or 2
  750. local Lifetime1 = Table.Lifetime1 or 1
  751. local Lifetime2 = Table.Lifetime2 or 1
  752. local Parent = Table.Parent or Torso
  753. local Emit = Table.Emit or 100
  754. local Offset = Table.Offset or 360
  755. local Acel = Table.Acel or VT(0,0,0)
  756. local Enabled = Table.Enabled or false
  757. PRTCL2.Parent = Parent
  758. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  759. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  760. PRTCL2.Speed = NumberRange.new(Speed)
  761. PRTCL2.VelocitySpread = Offset
  762. PRTCL2.Drag = Drag
  763. PRTCL2.Acceleration = Acel
  764. PRTCL2.Parent = Parent
  765. PRTCL2.Size = NumberSequence.new(Size1,Size2)
  766. PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  767. PRTCL2.Speed = NumberRange.new(Speed)
  768. PRTCL2.VelocitySpread = Offset
  769. PRTCL2.Drag = Drag
  770. PRTCL2.Acceleration = Acel
  771. PRTCL2.LockedToPart = true
  772. if Enabled == false then
  773. PRTCL2:Emit(Emit)
  774. Debris:AddItem(PRTCL2,Lifetime2)
  775. else
  776. PRTCL2.Enabled = true
  777. end
  778. return PRTCL2
  779. end
  780. function ParticleEmitter3(Table)
  781. local PRTCL3 = Particle2:Clone()
  782. local Speed = Table.Speed or 0
  783. local Drag = Table.Drag or 0
  784. local Size1 = Table.Size1 or 1
  785. local Size2 = Table.Size2 or 2
  786. local Lifetime1 = Table.Lifetime1 or 1
  787. local Lifetime2 = Table.Lifetime2 or 1
  788. local Parent = Table.Parent or Torso
  789. local Emit = Table.Emit or 100
  790. local Offset = Table.Offset or 0
  791. local Acel = Table.Acel or VT(0,0,0)
  792. local Enabled = Table.Enabled or false
  793. PRTCL3.Parent = Parent
  794. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  795. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  796. PRTCL3.Speed = NumberRange.new(Speed)
  797. PRTCL3.VelocitySpread = Offset
  798. PRTCL3.Drag = Drag
  799. PRTCL3.Acceleration = Acel
  800. PRTCL3.Parent = Parent
  801. PRTCL3.Size = NumberSequence.new(Size1,Size2)
  802. PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  803. PRTCL3.Speed = NumberRange.new(Speed)
  804. PRTCL3.VelocitySpread = Offset
  805. PRTCL3.Drag = Drag
  806. PRTCL3.Acceleration = Acel
  807. if Enabled == false then
  808. PRTCL3:Emit(Emit)
  809. Debris:AddItem(PRTCL3,Lifetime2)
  810. else
  811. PRTCL3.Enabled = true
  812. end
  813. return PRTCL3
  814. end
  815.  
  816. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  817. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  818. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  819. MakeForm(Part,"Wedge")
  820. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  821. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  822. MakeForm(Part,"Wedge")
  823. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  824. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  825. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  826. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  827. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  828. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  829. MakeForm(Part,"Cyl")
  830. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  831. for i = 1, 8 do
  832. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  833. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  834. end
  835. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  836. MakeForm(Part,"Cyl")
  837. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  838. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  839. MakeForm(Part,"Ball")
  840. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  841. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  842. MakeForm(Part,"Wedge")
  843. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  844. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  845. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  846. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  847. MakeForm(Part,"Cyl")
  848. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  849. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  850. MakeForm(Part,"Cyl")
  851. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  852. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  853. MakeForm(Part,"Cyl")
  854. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  855. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  856. MakeForm(Part,"Wedge")
  857. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  858. local LASTPART = Handle
  859. for i = 1, 10 do
  860. if LASTPART == Handle then
  861. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  862. LASTPART = Part
  863. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  864. else
  865. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  866. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  867. LASTPART = Part
  868. end
  869. end
  870.  
  871. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  872. MakeForm(Barrel,"Cyl")
  873. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  874. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  875. MakeForm(Part,"Cyl")
  876. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  877. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  878. MakeForm(Part,"Wedge")
  879. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  880. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  881. MakeForm(Hole,"Cyl")
  882. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  883. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  884. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  885. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  886. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  887. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  888. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  889. coroutine.resume(coroutine.create(function()
  890. while wait() do
  891. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  892. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  893. end
  894. end))
  895. --PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
  896. --[[
  897. YEAH BOIIIIIIIII
  898. PARTICLE TIME
  899. --]]
  900. 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)})
  901. --ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)})
  902. 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)})
  903. ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
  904. ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
  905. --Trails
  906. local A1 = Instance.new("Attachment",Barrel)
  907. local A2 = Instance.new("Attachment",Barrel)
  908. local Trail = Instance.new("Trail",Barrel)
  909. A1.Position = Vector3.new(0,1,0)
  910. A2.Position = Vector3.new(0,-0.8,0)
  911. Trail.Attachment0 = A1
  912. Trail.Attachment1 = A2
  913. Trail.LightEmission = 1
  914. Trail.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0))
  915. Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
  916. for _, c in pairs(Weapon:GetDescendants()) do
  917. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  918. c.Material = "Glass"
  919. c.Color = C3(0,0,0)
  920. elseif c.ClassName == "Part" and c.Name == "Eye" then
  921. c.Color = C3(0,0,1)
  922. c.Material = "Neon"
  923. end
  924. end
  925.  
  926. Weapon.Parent = Character
  927. for _, c in pairs(Weapon:GetChildren()) do
  928. if c.ClassName == "Part" then
  929. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  930. end
  931. end
  932.  
  933. local SKILLTEXTCOLOR = C3(0,0,1)
  934. local SKILLFONT = "Antique"
  935. local SKILLTEXTSIZE = 7
  936.  
  937. Humanoid.Died:connect(function()
  938. ATTACK = true
  939. end)
  940.  
  941. 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")
  942. --[[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")
  943. 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")
  944. 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")
  945. 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")
  946. --]]
  947. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  948. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  949. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  950. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  951. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  952. --]]
  953. function printbye(Name)
  954. 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, "}
  955. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  956.  
  957. end
  958.  
  959. workspace.ChildAdded:connect(function(instance)
  960. for BANISH = 1, #TOBANISH do
  961. if TOBANISH[BANISH] ~= nil then
  962. if instance.Name == TOBANISH[BANISH] then
  963. coroutine.resume(coroutine.create(function()
  964. printbye(instance.Name)
  965. instance:ClearAllChildren()
  966. Debris:AddItem(instance,0.0005)
  967. end))
  968. end
  969. end
  970. end
  971. end)
  972.  
  973. --//=================================\\
  974. --|| DAMAGING
  975. --\\=================================//
  976.  
  977. function Banish(Foe)
  978. if Foe then
  979. coroutine.resume(coroutine.create(function()
  980. --if game.Players:FindFirstChild(Foe.Name) then
  981. table.insert(TOBANISH,Foe.Name)
  982. printbye(Foe.Name)
  983. --end
  984. Foe.Archivable = true
  985. local CLONE = Foe:Clone()
  986. Foe:Destroy()
  987. CLONE.Parent = Effects
  988. CLONE:BreakJoints()
  989. local MATERIALS = {"Glass","Neon"}
  990. for _, c in pairs(CLONE:GetDescendants()) do
  991. if c:IsA("BasePart") then
  992. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  993. CreateSound(340722848, c, 10, 1, false)
  994. end
  995. c.Anchored = true
  996. c.Transparency = c.Transparency + 0.2
  997. c.Material = MATERIALS[MRANDOM(1,2)]
  998. c.Color = C3(0,0,255)
  999. if c.ClassName == "MeshPart" then
  1000. c.TextureID = ""
  1001. end
  1002. if c:FindFirstChildOfClass("SpecialMesh") then
  1003. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1004. end
  1005. if c:FindFirstChildOfClass("Decal") then
  1006. c:FindFirstChildOfClass("Decal"):remove()
  1007. end
  1008. c.Name = "Banished"
  1009. c.CanCollide = false
  1010. else
  1011. c:remove()
  1012. end
  1013. end
  1014. local A = false
  1015. for i = 1, 35 do
  1016. if A == false then
  1017. A = true
  1018. elseif A == true then
  1019. A = false
  1020. end
  1021. for _, c in pairs(CLONE:GetDescendants()) do
  1022. if c:IsA("BasePart") then
  1023. c.Anchored = true
  1024. c.Material = MATERIALS[MRANDOM(1,2)]
  1025. c.Transparency = c.Transparency + 0.8/35
  1026. if A == false then
  1027. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1028. elseif A == true then
  1029. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1030. end
  1031. end
  1032. end
  1033. Swait()
  1034. end
  1035. CLONE:remove()
  1036. end))
  1037. end
  1038. end
  1039.  
  1040. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1041. local CHILDREN = workspace:GetDescendants()
  1042. for index, CHILD in pairs(CHILDREN) do
  1043. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1044. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1045. if HUM then
  1046. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1047. if TORSO then
  1048. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1049. if ISBANISH == true then
  1050. Banish(CHILD)
  1051. else
  1052. if ISBANISH == "Gravity" then
  1053. HUM.PlatformStand = true
  1054. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1055. local grav = Instance.new("BodyPosition",TORSO)
  1056. grav.D = 15
  1057. grav.P = 20000
  1058. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1059. grav.position = TORSO.Position
  1060. grav.Name = "V3BanishForce"..Player.Name
  1061. else
  1062. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1063. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1064. end
  1065. else
  1066. HUM.PlatformStand = false
  1067. end
  1068. end
  1069. elseif ISBANISH == "Gravity" then
  1070. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1071. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1072. HUM.PlatformStand = false
  1073. end
  1074. end
  1075. end
  1076. end
  1077. end
  1078. end
  1079. end
  1080.  
  1081. --//=================================\\
  1082. --|| ATTACK FUNCTIONS AND STUFF
  1083. --\\=================================//
  1084.  
  1085. function Banisher_Bullet()
  1086. ATTACK = true
  1087. Rooted = false
  1088. for i=0, 0.4, 0.1 / Animation_Speed do
  1089. Swait()
  1090. turnto(Mouse.Hit.p)
  1091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1092. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1095. 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)
  1096. 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)
  1097. end
  1098. repeat
  1099. for i=0, 0.2, 0.1 / Animation_Speed do
  1100. Swait()
  1101. turnto(Mouse.Hit.p)
  1102. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1103. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1104. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1105. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1106. 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)
  1107. 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)
  1108. end
  1109. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1110. SpawnTrail(Hole.Position,POS)
  1111. if HIT ~= nil then
  1112. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1113. Banish(HIT.Parent)
  1114. end
  1115. end
  1116. 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(0,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1117. 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(0,0,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1118. 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(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1119. 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(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1120. for i=0, 0.3, 0.1 / Animation_Speed do
  1121. Swait()
  1122. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1123. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1124. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1125. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1126. 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)
  1127. 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)
  1128. end
  1129. until KEYHOLD == false
  1130. ATTACK = false
  1131. Rooted = false
  1132. end
  1133.  
  1134. function AttackTemplate()
  1135. ATTACK = true
  1136. Rooted = false
  1137. for i=0, 1, 0.1 / Animation_Speed do
  1138. Swait()
  1139. 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)
  1140. 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)
  1141. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1142. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1143. 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)
  1144. 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)
  1145. end
  1146. ATTACK = false
  1147. Rooted = false
  1148. end
  1149.  
  1150. --//=================================\\
  1151. --|| ASSIGN THINGS TO KEYS
  1152. --\\=================================//
  1153.  
  1154. function MouseDown(Mouse)
  1155. if ATTACK == false then
  1156. end
  1157. end
  1158.  
  1159. function MouseUp(Mouse)
  1160. HOLD = false
  1161. end
  1162.  
  1163. function KeyDown(Key)
  1164. KEYHOLD = true
  1165. if Key == "z" and ATTACK == false then
  1166. Banisher_Bullet()
  1167. end
  1168.  
  1169. if Key == "b" and ATTACK == false then
  1170. end
  1171.  
  1172. if Key == "c" and ATTACK == false then
  1173. end
  1174.  
  1175. if Key == "v" and ATTACK == false then
  1176. end
  1177.  
  1178. if Key == "x" and ATTACK == false then
  1179. end
  1180. end
  1181.  
  1182. function KeyUp(Key)
  1183. KEYHOLD = false
  1184. end
  1185.  
  1186. Mouse.Button1Down:connect(function(NEWKEY)
  1187. MouseDown(NEWKEY)
  1188. end)
  1189. Mouse.Button1Up:connect(function(NEWKEY)
  1190. MouseUp(NEWKEY)
  1191. end)
  1192. Mouse.KeyDown:connect(function(NEWKEY)
  1193. KeyDown(NEWKEY)
  1194. end)
  1195. Mouse.KeyUp:connect(function(NEWKEY)
  1196. KeyUp(NEWKEY)
  1197. end)
  1198.  
  1199. --//=================================\\
  1200. --\\=================================//
  1201.  
  1202.  
  1203. function unanchor()
  1204. if UNANCHOR == true then
  1205. g = Character:GetChildren()
  1206. for i = 1, #g do
  1207. if g[i].ClassName == "Part" then
  1208. g[i].Anchored = false
  1209. end
  1210. end
  1211. end
  1212. end
  1213.  
  1214.  
  1215. --//=================================\\
  1216. --|| WRAP THE WHOLE SCRIPT UP
  1217. --\\=================================//
  1218.  
  1219. Humanoid.Changed:connect(function(Jump)
  1220. if Jump == "Jump" and (Disable_Jump == true) then
  1221. Humanoid.Jump = false
  1222. end
  1223. end)
  1224.  
  1225. local CONNECT = nil
  1226.  
  1227. while true do
  1228. Swait()
  1229. ANIMATE.Parent = nil
  1230. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1231. Humanoid = IT("Humanoid",Character)
  1232. end
  1233. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1234. v:Stop();
  1235. end
  1236. SINE = SINE + CHANGE
  1237. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1238. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1239. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1240. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1241. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1242. 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)
  1243. 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)
  1244. 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)
  1245. 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)
  1246. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1247. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1248. 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)
  1249. 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)
  1250. 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)
  1251. end
  1252. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1253. ANIM = "Jump"
  1254. if ATTACK == false then
  1255. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1256. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1257. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1258. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1259. 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)
  1260. 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)
  1261. end
  1262. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1263. ANIM = "Fall"
  1264. if ATTACK == false then
  1265. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1266. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1267. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1268. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1269. 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)
  1270. 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)
  1271. end
  1272. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1273. ANIM = "Idle"
  1274. if ATTACK == false then
  1275. 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)
  1276. 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)
  1277. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1278. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1279. 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)
  1280. 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)
  1281. end
  1282. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1283. ANIM = "Walk"
  1284. if ATTACK == false then
  1285. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1286. 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)
  1287. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1288. 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)
  1289. 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)
  1290. 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)
  1291. end
  1292. end
  1293. unanchor()
  1294. Humanoid.MaxHealth = math.huge
  1295. Humanoid.Health = math.huge
  1296. ----------------------------------------------------------------------------------
  1297. local naeeym2 = Instance.new("BillboardGui",char)
  1298. naeeym2.AlwaysOnTop = true
  1299. naeeym2.Size = UDim2.new(5,35,2,15)
  1300. naeeym2.StudsOffset = Vector3.new(0, 3.5, 0)
  1301. naeeym2.Adornee = hed
  1302. naeeym2.Name = "Name"
  1303. --naeeym2.PlayerToHideFrom = Player
  1304. local tecks2 = Instance.new("TextLabel",naeeym2)
  1305. tecks2.BackgroundTransparency = 1
  1306. tecks2.TextScaled = true
  1307. tecks2.BorderSizePixel = 0
  1308. tecks2.Font = Enum.Font.Antique
  1309. tecks2.TextSize = 30
  1310. tecks2.TextStrokeTransparency = 0
  1311. tecks2.TextColor3 = Color3.new(0, 0, 0)
  1312. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1313. tecks2.Size = UDim2.new(1,0,0.5,0)
  1314. tecks2.Parent = naeeym2
  1315. wait(0.1)
  1316. tecks2.Text = "Possessed..?"
  1317. --------------------------------------------------------
  1318. local EyeSizes={
  1319. NumberSequenceKeypoint.new(0,0.65,0),
  1320. NumberSequenceKeypoint.new(0.5,0.7,0),
  1321. NumberSequenceKeypoint.new(1,0,0)
  1322. }
  1323. local EyeTrans={
  1324. NumberSequenceKeypoint.new(0,0,0),
  1325. NumberSequenceKeypoint.new(0.5,0,0),
  1326. NumberSequenceKeypoint.new(1,1,0)
  1327. }
  1328. local PE2=Instance.new("ParticleEmitter", ra)
  1329. PE2.LightEmission=.9
  1330. PE2.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
  1331. PE2.Transparency=NumberSequence.new(EyeTrans)
  1332. PE2.Lifetime=NumberRange.new(0.35)
  1333. PE2.Rotation=NumberRange.new(0,360)
  1334. PE2.Rate=999
  1335. PE2.VelocitySpread = 10000
  1336. PE2.Acceleration = Vector3.new(0,25,0)
  1337. PE2.ZOffset = 0.5
  1338. PE2.Drag = 0
  1339. PE2.Speed = NumberRange.new(0,0,0)
  1340. PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1341. PE2.Name = "PE2"
  1342. PE2.Enabled = true
  1343. PE2.LockedToPart = true
  1344. local EyeSizes={
  1345. NumberSequenceKeypoint.new(0,0.65,0),
  1346. NumberSequenceKeypoint.new(0.5,0.7,0),
  1347. NumberSequenceKeypoint.new(1,0,0)
  1348. }
  1349. local EyeTrans={
  1350. NumberSequenceKeypoint.new(0,0,0),
  1351. NumberSequenceKeypoint.new(0.5,0,0),
  1352. NumberSequenceKeypoint.new(1,1,0)
  1353. }
  1354. local PE3=Instance.new("ParticleEmitter", ra)
  1355. PE3.LightEmission=.9
  1356. PE3.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
  1357. PE3.Transparency=NumberSequence.new(EyeTrans)
  1358. PE3.Lifetime=NumberRange.new(0.35)
  1359. PE3.Rotation=NumberRange.new(0,360)
  1360. PE3.Rate=999
  1361. PE3.VelocitySpread = 10000
  1362. PE3.Acceleration = Vector3.new(0,25,0)
  1363. PE3.ZOffset = 0.5
  1364. PE3.Drag = 0
  1365. PE3.Speed = NumberRange.new(0,0,0)
  1366. PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1367. PE3.Name = "PE3"
  1368. PE3.Enabled = true
  1369. PE3.LockedToPart = true
  1370.  
  1371. local EyeSizes={
  1372. NumberSequenceKeypoint.new(0,0.65,0),
  1373. NumberSequenceKeypoint.new(0.5,0.7,0),
  1374. NumberSequenceKeypoint.new(1,0,0)
  1375. }
  1376. local EyeTrans={
  1377. NumberSequenceKeypoint.new(0,0,0),
  1378. NumberSequenceKeypoint.new(0.5,0,0),
  1379. NumberSequenceKeypoint.new(1,1,0)
  1380. }
  1381. local PE4=Instance.new("ParticleEmitter", ll)
  1382. PE4.LightEmission=.9
  1383. PE4.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color)
  1384. PE4.Transparency=NumberSequence.new(EyeTrans)
  1385. PE4.Lifetime=NumberRange.new(0.35)
  1386. PE4.Rotation=NumberRange.new(0,360)
  1387. PE4.Rate=999
  1388. PE4.VelocitySpread = 10000
  1389. PE4.Acceleration = Vector3.new(0,25,0)
  1390. PE4.ZOffset = 0.5
  1391. PE4.Drag = 0
  1392. PE4.Speed = NumberRange.new(0,0,0)
  1393. PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1394. PE4.Name = "PE4"
  1395. PE4.Enabled = true
  1396. PE4.LockedToPart = true
  1397. local EyeSizes={
  1398. NumberSequenceKeypoint.new(0,0.65,0),
  1399. NumberSequenceKeypoint.new(0.5,0.7,0),
  1400. NumberSequenceKeypoint.new(1,0,0)
  1401. }
  1402. local EyeTrans={
  1403. NumberSequenceKeypoint.new(0,0,0),
  1404. NumberSequenceKeypoint.new(0.5,0,0),
  1405. NumberSequenceKeypoint.new(1,1,0)
  1406. }
  1407. local PE5=Instance.new("ParticleEmitter", ll)
  1408. PE5.LightEmission=.9
  1409. PE5.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color)
  1410. PE5.Transparency=NumberSequence.new(EyeTrans)
  1411. PE5.Lifetime=NumberRange.new(0.35)
  1412. PE5.Rotation=NumberRange.new(0,360)
  1413. PE5.Rate=999
  1414. PE5.VelocitySpread = 10000
  1415. PE5.Acceleration = Vector3.new(0,25,0)
  1416. PE5.ZOffset = 0.5
  1417. PE5.Drag = 0
  1418. PE5.Speed = NumberRange.new(0,0,0)
  1419. PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  1420. PE5.Name = "PE5"
  1421. PE5.Enabled = true
  1422. PE5.LockedToPart = true
  1423. -------------------------------------------------------
  1424. --End Customization--
  1425. -------------------------------------------------------
  1426.  
  1427. if Rooted == false then
  1428. Disable_Jump = false
  1429. Humanoid.WalkSpeed = Speed
  1430. elseif Rooted == true then
  1431. Disable_Jump = true
  1432. Humanoid.WalkSpeed = 0
  1433. end
  1434. sick.Parent = Torso
  1435. sick:resume()
  1436. sick.Volume = 5
  1437. sick.Pitch = 1
  1438. sick.SoundId = "rbxassetid://924339757"
  1439. sick.Name = "BanishV3Music"
  1440. end
  1441.  
  1442. --//=================================\\
  1443. --\\=================================//
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449. --//====================================================\\--
  1450. --|| END OF SCRIPT
  1451. --\\====================================================//--
Add Comment
Please, Sign In to add comment