Advertisement
Oscar55555

Untitled

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