asdf2345

Untitled

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