Advertisement
JacksoMykalJunior

FE

Mar 17th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.65 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
  5. print("Have Fun!")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57. end
  58. end)
  59. Event.Parent = NLS([==[
  60. local Player = owner
  61. local Event = script:WaitForChild("UserInput_Event")
  62.  
  63. local UIS = game:GetService("UserInputService")
  64. local input = function(io,a)
  65. if a then return end
  66. --Since InputObject is a client-side instance, we create and pass table instead
  67. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68. end
  69. UIS.InputBegan:Connect(input)
  70. UIS.InputEnded:Connect(input)
  71.  
  72. local Mouse = Player:GetMouse()
  73. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84.  
  85.  
  86. --//====================================================\\--
  87. --|| CREATED BY SHACKLUSTER
  88. --\\====================================================//--
  89.  
  90. local Player = owner
  91. local Mouse,mouse,UserInputService,ContextActionService
  92. do
  93. script.Parent = Player.Character
  94. local CAS = {Actions={}}
  95. local Event = Instance.new("RemoteEvent")
  96. Event.Name = "UserInput_Event"
  97. Event.Parent = Player.Character
  98. local fakeEvent = function()
  99. local t = {_fakeEvent=true}
  100. t.Connect = function(self,f)self.Function=f end
  101. t.connect = t.Connect
  102. return t
  103. end
  104. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  105. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  106. function CAS:BindAction(name,fun,touch,...)
  107. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  108. end
  109. function CAS:UnbindAction(name)
  110. CAS.Actions[name] = nil
  111. end
  112. local function te(self,ev,...)
  113. local t = m[ev]
  114. if t and t._fakeEvent and t.Function then
  115. t.Function(...)
  116. end
  117. end
  118. m.TrigEvent = te
  119. UIS.TrigEvent = te
  120. Event.OnServerEvent:Connect(function(plr,io)
  121. if plr~=Player then return end
  122. if io.isMouse then
  123. m.Target = io.Target
  124. m.Hit = io.Hit
  125. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  126. if io.UserInputState == Enum.UserInputState.Begin then
  127. m:TrigEvent("Button1Down")
  128. else
  129. m:TrigEvent("Button1Up")
  130. end
  131. else
  132. for n,t in pairs(CAS.Actions) do
  133. for _,k in pairs(t.Keys) do
  134. if k==io.KeyCode then
  135. t.Function(t.Name,io.UserInputState,io)
  136. end
  137. end
  138. end
  139. if io.UserInputState == Enum.UserInputState.Begin then
  140. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  141. UIS:TrigEvent("InputBegan",io,false)
  142. else
  143. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  144. UIS:TrigEvent("InputEnded",io,false)
  145. end
  146. end
  147. end)
  148. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  149. end
  150.  
  151.  
  152. wait(0.2)
  153.  
  154.  
  155.  
  156. Player = owner
  157. PlayerGui = Player.PlayerGui
  158. Cam = workspace.CurrentCamera
  159. Backpack = Player.Backpack
  160. Character = Player.Character
  161. Humanoid = Character.Humanoid
  162. RootPart = Character["HumanoidRootPart"]
  163. Torso = Character["Torso"]
  164. Head = Character["Head"]
  165. RightArm = Character["Right Arm"]
  166. LeftArm = Character["Left Arm"]
  167. RightLeg = Character["Right Leg"]
  168. LeftLeg = Character["Left Leg"]
  169. RootJoint = RootPart["RootJoint"]
  170. Neck = Torso["Neck"]
  171. RightShoulder = Torso["Right Shoulder"]
  172. LeftShoulder = Torso["Left Shoulder"]
  173. RightHip = Torso["Right Hip"]
  174. LeftHip = Torso["Left Hip"]
  175. local sick = Instance.new("Sound",Character)
  176. sick.SoundId = "rbxassetid://853707984"
  177. sick.Looped = true
  178. sick.Pitch = 1
  179. sick.Volume = 1
  180. sick:Play()
  181.  
  182. IT = Instance.new
  183. CF = CFrame.new
  184. VT = Vector3.new
  185. RAD = math.rad
  186. C3 = Color3.new
  187. UD2 = UDim2.new
  188. BRICKC = BrickColor.new
  189. ANGLES = CFrame.Angles
  190. EULER = CFrame.fromEulerAnglesXYZ
  191. COS = math.cos
  192. ACOS = math.acos
  193. SIN = math.sin
  194. ASIN = math.asin
  195. ABS = math.abs
  196. MRANDOM = math.random
  197. FLOOR = math.floor
  198.  
  199. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  200. local NEWMESH = IT(MESH)
  201. if MESH == "SpecialMesh" then
  202. NEWMESH.MeshType = MESHTYPE
  203. if MESHID ~= "nil" and MESHID ~= "" then
  204. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  205. end
  206. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  207. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  208. end
  209. end
  210. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  211. NEWMESH.Scale = SCALE
  212. NEWMESH.Parent = PARENT
  213. return NEWMESH
  214. end
  215.  
  216. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  217. local NEWPART = IT("Part")
  218. NEWPART.formFactor = FORMFACTOR
  219. NEWPART.Reflectance = REFLECTANCE
  220. NEWPART.Transparency = TRANSPARENCY
  221. NEWPART.CanCollide = false
  222. NEWPART.Locked = true
  223. NEWPART.Anchored = true
  224. if ANCHOR == false then
  225. NEWPART.Anchored = false
  226. end
  227. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  228. NEWPART.Name = NAME
  229. NEWPART.Size = SIZE
  230. NEWPART.Position = Torso.Position
  231. NEWPART.Material = MATERIAL
  232. NEWPART:BreakJoints()
  233. NEWPART.Parent = PARENT
  234. return NEWPART
  235. end
  236.  
  237. --//=================================\\
  238. --|| CUSTOMIZATION
  239. --\\=================================//
  240.  
  241. Player_Size = 1 --Size of the player.
  242. Animation_Speed = 3
  243. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  244.  
  245. local Speed = 16
  246. local Effects2 = {}
  247.  
  248. --//=================================\\
  249. --|| END OF CUSTOMIZATION
  250. --\\=================================//
  251.  
  252. local function weldBetween(a, b)
  253. local weldd = Instance.new("ManualWeld")
  254. weldd.Part0 = a
  255. weldd.Part1 = b
  256. weldd.C0 = CFrame.new()
  257. weldd.C1 = b.CFrame:inverse() * a.CFrame
  258. weldd.Parent = a
  259. return weldd
  260. end
  261.  
  262. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  263. local acs = Instance.new("Part")
  264. acs.CanCollide = false
  265. acs.Anchored = false
  266. acs.Size = Vector3.new(0,0,0)
  267. acs.CFrame = attachmentpart.CFrame
  268. acs.Parent = Character
  269. acs.BrickColor = color
  270. local meshs = Instance.new("SpecialMesh")
  271. meshs.MeshId = mesh
  272. meshs.TextureId = texture
  273. meshs.Parent = acs
  274. meshs.Scale = scale
  275. meshs.Offset = offset
  276. weldBetween(attachmentpart,acs)
  277. end
  278.  
  279. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  280. if TYPE == "Gem" then
  281. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  282. acs.Anchored = false
  283. acs.CanCollide = false
  284. acs.CFrame = PART.CFrame
  285. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  286. weldBetween(PART,acs)
  287. elseif TYPE == "Skull" then
  288. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  289. acs.Anchored = false
  290. acs.CanCollide = false
  291. acs.CFrame = PART.CFrame
  292. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  293. weldBetween(PART,acs)
  294. elseif TYPE == "Eye" then
  295. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  296. acs.Anchored = false
  297. acs.CanCollide = false
  298. acs.CFrame = PART.CFrame
  299. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  300. weldBetween(PART,acs)
  301. end
  302. end
  303.  
  304. --//=================================\\
  305. --|| USEFUL VALUES
  306. --\\=================================//
  307.  
  308. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  309. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  310. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  311. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  312. local CHANGEDEFENSE = 0
  313. local CHANGEDAMAGE = 0
  314. local CHANGEMOVEMENT = 0
  315. local ANIM = "Idle"
  316. local ATTACK = false
  317. local EQUIPPED = false
  318. local HOLD = false
  319. local COMBO = 1
  320. local Rooted = false
  321. local SINE = 0
  322. local KEYHOLD = false
  323. local CHANGE = 2 / Animation_Speed
  324. local WALKINGANIM = false
  325. local WALK = 0
  326. local VALUE1 = false
  327. local HITFLOOR = nil
  328. local VALUE2 = false
  329. local ROBLOXIDLEANIMATION = IT("Animation")
  330. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  331. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=2971808194"
  332. --ROBLOXIDLEANIMATION.Parent = Humanoid
  333. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  334. WEAPONGUI.Name = "Weapon GUI"
  335. local Weapon = IT("Model")
  336. Weapon.Name = "Adds"
  337. local Delete = IT("Model",Character)
  338. Delete.Name = "Banlist"
  339. local Effects = IT("Folder", Weapon)
  340. Effects.Name = "Effects"
  341. local ANIMATOR = Humanoid.Animator
  342. local ANIMATE = Character.Animate
  343. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  344. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  345. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  346. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  347. local UNANCHOR = true
  348.  
  349. local SKILLTEXTCOLOR = C3(0,0,0)
  350.  
  351. --//=================================\\
  352. --\\=================================//
  353.  
  354.  
  355. --//=================================\\
  356. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  357. --\\=================================//
  358.  
  359. ArtificialHB = Instance.new("BindableEvent", script)
  360. ArtificialHB.Name = "ArtificialHB"
  361.  
  362. script:WaitForChild("ArtificialHB")
  363.  
  364. frame = Frame_Speed
  365. tf = 0
  366. allowframeloss = false
  367. tossremainder = false
  368. lastframe = tick()
  369. script.ArtificialHB:Fire()
  370.  
  371. game:GetService("RunService").Heartbeat:connect(function(s, p)
  372. tf = tf + s
  373. if tf >= frame then
  374. if allowframeloss then
  375. script.ArtificialHB:Fire()
  376. lastframe = tick()
  377. else
  378. for i = 1, math.floor(tf / frame) do
  379. script.ArtificialHB:Fire()
  380. end
  381. lastframe = tick()
  382. end
  383. if tossremainder then
  384. tf = 0
  385. else
  386. tf = tf - frame * math.floor(tf / frame)
  387. end
  388. end
  389. end)
  390.  
  391. --//=================================\\
  392. --\\=================================//
  393.  
  394.  
  395.  
  396.  
  397.  
  398. --//=================================\\
  399. --|| SOME FUNCTIONS
  400. --\\=================================//
  401.  
  402. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  403. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  404. end
  405.  
  406. function PositiveAngle(NUMBER)
  407. if NUMBER >= 0 then
  408. NUMBER = 0
  409. end
  410. return NUMBER
  411. end
  412.  
  413. function NegativeAngle(NUMBER)
  414. if NUMBER <= 0 then
  415. NUMBER = 0
  416. end
  417. return NUMBER
  418. end
  419.  
  420. function Swait(NUMBER)
  421. if NUMBER == 0 or NUMBER == nil then
  422. ArtificialHB.Event:wait()
  423. else
  424. for i = 1, NUMBER do
  425. ArtificialHB.Event:wait()
  426. end
  427. end
  428. end
  429.  
  430. function QuaternionFromCFrame(cf)
  431. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  432. local trace = m00 + m11 + m22
  433. if trace > 0 then
  434. local s = math.sqrt(1 + trace)
  435. local recip = 0.5 / s
  436. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  437. else
  438. local i = 0
  439. if m11 > m00 then
  440. i = 1
  441. end
  442. if m22 > (i == 0 and m00 or m11) then
  443. i = 2
  444. end
  445. if i == 0 then
  446. local s = math.sqrt(m00 - m11 - m22 + 1)
  447. local recip = 0.5 / s
  448. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  449. elseif i == 1 then
  450. local s = math.sqrt(m11 - m22 - m00 + 1)
  451. local recip = 0.5 / s
  452. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  453. elseif i == 2 then
  454. local s = math.sqrt(m22 - m00 - m11 + 1)
  455. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  456. end
  457. end
  458. end
  459.  
  460. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  461. local xs, ys, zs = x + x, y + y, z + z
  462. local wx, wy, wz = w * xs, w * ys, w * zs
  463. local xx = x * xs
  464. local xy = x * ys
  465. local xz = x * zs
  466. local yy = y * ys
  467. local yz = y * zs
  468. local zz = z * zs
  469. 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))
  470. end
  471.  
  472. function QuaternionSlerp(a, b, t)
  473. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  474. local startInterp, finishInterp;
  475. if cosTheta >= 0.0001 then
  476. if (1 - cosTheta) > 0.0001 then
  477. local theta = ACOS(cosTheta)
  478. local invSinTheta = 1 / SIN(theta)
  479. startInterp = SIN((1 - t) * theta) * invSinTheta
  480. finishInterp = SIN(t * theta) * invSinTheta
  481. else
  482. startInterp = 1 - t
  483. finishInterp = t
  484. end
  485. else
  486. if (1 + cosTheta) > 0.0001 then
  487. local theta = ACOS(-cosTheta)
  488. local invSinTheta = 1 / SIN(theta)
  489. startInterp = SIN((t - 1) * theta) * invSinTheta
  490. finishInterp = SIN(t * theta) * invSinTheta
  491. else
  492. startInterp = t - 1
  493. finishInterp = t
  494. end
  495. end
  496. 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
  497. end
  498.  
  499. function Clerp(a, b, t)
  500. local qa = {QuaternionFromCFrame(a)}
  501. local qb = {QuaternionFromCFrame(b)}
  502. local ax, ay, az = a.x, a.y, a.z
  503. local bx, by, bz = b.x, b.y, b.z
  504. local _t = 1 - t
  505. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  506. end
  507.  
  508. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  509. local frame = IT("Frame")
  510. frame.BackgroundTransparency = TRANSPARENCY
  511. frame.BorderSizePixel = BORDERSIZEPIXEL
  512. frame.Position = POSITION
  513. frame.Size = SIZE
  514. frame.BackgroundColor3 = COLOR
  515. frame.BorderColor3 = BORDERCOLOR
  516. frame.Name = NAME
  517. frame.Parent = PARENT
  518. return frame
  519. end
  520.  
  521. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  522. local label = IT("TextLabel")
  523. label.BackgroundTransparency = 1
  524. label.Size = UD2(1, 0, 1, 0)
  525. label.Position = UD2(0, 0, 0, 0)
  526. label.TextColor3 = TEXTCOLOR
  527. label.TextStrokeTransparency = STROKETRANSPARENCY
  528. label.TextTransparency = TRANSPARENCY
  529. label.FontSize = TEXTFONTSIZE
  530. label.Font = TEXTFONT
  531. label.BorderSizePixel = BORDERSIZEPIXEL
  532. label.TextScaled = false
  533. label.Text = TEXT
  534. label.Name = NAME
  535. label.Parent = PARENT
  536. return label
  537. end
  538.  
  539. function NoOutlines(PART)
  540. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  541. end
  542.  
  543.  
  544. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  545. local NEWWELD = IT(TYPE)
  546. NEWWELD.Part0 = PART0
  547. NEWWELD.Part1 = PART1
  548. NEWWELD.C0 = C0
  549. NEWWELD.C1 = C1
  550. NEWWELD.Parent = PARENT
  551. return NEWWELD
  552. end
  553.  
  554. local SOUND = IT("Sound",nil)
  555.  
  556. function CreateSound(ID, PARENT, VOLUME, PITCH)
  557. local NEWSOUND = nil
  558. coroutine.resume(coroutine.create(function()
  559. NEWSOUND = SOUND:Clone()
  560. NEWSOUND.Parent = PARENT
  561. NEWSOUND.Volume = VOLUME
  562. NEWSOUND.Pitch = PITCH
  563. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  564. Swait()
  565. NEWSOUND:play()
  566. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  567. end))
  568. return NEWSOUND
  569. end
  570.  
  571. function CFrameFromTopBack(at, top, back)
  572. local right = top:Cross(back)
  573. 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)
  574. end
  575.  
  576. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  577. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  578. local mesh = IT("SpecialMesh",wave)
  579. mesh.MeshType = "FileMesh"
  580. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  581. mesh.Scale = SIZE
  582. mesh.Offset = VT(0,0,-SIZE.X/8)
  583. wave.CFrame = CFRAME
  584. coroutine.resume(coroutine.create(function(PART)
  585. for i = 1, WAIT do
  586. Swait()
  587. mesh.Scale = mesh.Scale + GROW
  588. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  589. if DOESROT == true then
  590. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  591. end
  592. wave.Transparency = wave.Transparency + (0.5/WAIT)
  593. if wave.Transparency > 0.99 then
  594. wave:remove()
  595. end
  596. end
  597. end))
  598. end
  599.  
  600. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  601. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  602. local mesh = IT("SpecialMesh",wave)
  603. mesh.MeshType = "Sphere"
  604. mesh.Scale = SIZE
  605. mesh.Offset = VT(0,0,0)
  606. wave.CFrame = CFRAME
  607. coroutine.resume(coroutine.create(function(PART)
  608. for i = 1, WAIT do
  609. Swait()
  610. mesh.Scale = mesh.Scale + GROW
  611. wave.Transparency = wave.Transparency + (1/WAIT)
  612. if wave.Transparency > 0.99 then
  613. wave:remove()
  614. end
  615. end
  616. end))
  617. end
  618.  
  619. function MakeForm(PART,TYPE)
  620. if TYPE == "Cyl" then
  621. local MSH = IT("CylinderMesh",PART)
  622. elseif TYPE == "Ball" then
  623. local MSH = IT("SpecialMesh",PART)
  624. MSH.MeshType = "Sphere"
  625. elseif TYPE == "Wedge" then
  626. local MSH = IT("SpecialMesh",PART)
  627. MSH.MeshType = "Wedge"
  628. end
  629. end
  630.  
  631. function CheckTableForString(Table, String)
  632. for i, v in pairs(Table) do
  633. if string.find(string.lower(String), string.lower(v)) then
  634. return true
  635. end
  636. end
  637. return false
  638. end
  639.  
  640. function CheckIntangible(Hit)
  641. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  642. if Hit and Hit.Parent then
  643. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  644. return true
  645. end
  646. end
  647. return false
  648. end
  649.  
  650. Debris = game:GetService("Debris")
  651.  
  652. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  653. local Direction = CFrame.new(StartPos, Vec).lookVector
  654. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  655. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  656. if RayHit and CheckIntangible(RayHit) then
  657. if DelayIfHit then
  658. wait()
  659. end
  660. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  661. end
  662. return RayHit, RayPos, RayNormal
  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 HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  674. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(1,1,1), VT(0, 2.7, 0))
  675. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  676.  
  677. for _, c in pairs(Weapon:GetChildren()) do
  678. if c.ClassName == "Part" then
  679. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  680. end
  681. end
  682.  
  683. Weapon.Parent = Character
  684.  
  685. Humanoid.Died:connect(function()
  686. ATTACK = true
  687. end)
  688.  
  689. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  690. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  691.  
  692. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Ban Slam", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
  693. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Teleport", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2")
  694.  
  695. --//=================================\\
  696. --|| DAMAGING
  697. --\\=================================//
  698.  
  699. function BAN(CHARACTER)
  700. local BANFOLDER = IT("Folder",Effects)
  701. local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
  702. naeeym2.AlwaysOnTop = false
  703. naeeym2.Size = UDim2.new(5,35,2,35)
  704. naeeym2.StudsOffset = Vector3.new(0,1,0)
  705. naeeym2.Name = "AAAA"
  706. local tecks2 = Instance.new("TextLabel",naeeym2)
  707. tecks2.BackgroundTransparency = 1
  708. tecks2.TextScaled = true
  709. tecks2.BorderSizePixel = 0
  710. tecks2.Text = "BANNED"
  711. tecks2.Font = "Code"
  712. tecks2.TextSize = 30
  713. tecks2.TextStrokeTransparency = 1
  714. tecks2.TextColor3 = Color3.new(1,0,0)
  715. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  716. tecks2.Size = UDim2.new(1,0,0.5,0)
  717. tecks2.Parent = naeeym2
  718. for i,v in ipairs(CHARACTER:GetChildren()) do
  719. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  720. if v.Name ~= "HumanoidRootPart" then
  721. local BOD = v:Clone()
  722. BOD.CanCollide = false
  723. BOD.Anchored = true
  724. BOD.CFrame = v.CFrame
  725. BOD.Parent = BANFOLDER
  726. BOD.Material = "Neon"
  727. BOD.Color = C3(1,0,0)
  728. if BOD:FindFirstChildOfClass("Decal") then
  729. BOD:FindFirstChildOfClass("Decal"):remove()
  730. end
  731. if BOD.Name == "Head" then
  732. naeeym2.Adornee = BOD
  733. end
  734. if BOD.ClassName == "MeshPart" then
  735. BOD.TextureID = ""
  736. end
  737. end
  738. end
  739. end
  740. CHARACTER:remove()
  741. coroutine.resume(coroutine.create(function()
  742. for i = 1, 50 do
  743. Swait()
  744. for i,v in ipairs(BANFOLDER:GetChildren()) do
  745. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  746. v.Transparency = 1
  747. end
  748. naeeym2.Enabled = false
  749. end
  750. Swait()
  751. for i,v in ipairs(BANFOLDER:GetChildren()) do
  752. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  753. v.Transparency = 0
  754. end
  755. naeeym2.Enabled = true
  756. end
  757. end
  758. BANFOLDER:remove()
  759. end))
  760. end
  761.  
  762. function BANNEAREST(POS,RANGE)
  763. for i,v in ipairs(workspace:GetChildren()) do
  764. local body = v:GetChildren()
  765. for part = 1, #body do
  766. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  767. if(body[part].Position - POS).Magnitude < RANGE then
  768. if v:FindFirstChildOfClass("Humanoid") then
  769. BAN(v)
  770. if game.Players:FindFirstChild(v.Name) then
  771. local Value = IT("BoolValue",Delete)
  772. Value.Name = v.Name
  773. end
  774. end
  775. end
  776. end
  777. end
  778. end
  779. end
  780.  
  781. --//=================================\\
  782. --|| ATTACK FUNCTIONS AND STUFF
  783. --\\=================================//
  784.  
  785. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  786. if FLOOR ~= nil then
  787. coroutine.resume(coroutine.create(function()
  788. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  789. PART.CFrame = CF(POSITION)
  790. for i = 1, 45 do
  791. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  792. RingPiece.Material = FLOOR.Material
  793. RingPiece.Color = FLOOR.Color
  794. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  795. Debris:AddItem(RingPiece,SWAIT/100)
  796. end
  797. PART:remove()
  798. end))
  799. end
  800. end
  801.  
  802. function BANSLAM()
  803. ATTACK = true
  804. Rooted = false
  805. repeat
  806. for i=0, 0.2, 0.1 / Animation_Speed do
  807. Swait()
  808. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed)
  809. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  810. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  811. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  812. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  813. 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(25)), 2 / Animation_Speed)
  814. 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(25)), 2 / Animation_Speed)
  815. end
  816. for i=0, 0.08, 0.1 / Animation_Speed do
  817. Swait()
  818. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  819. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  820. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  821. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  822. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  823. 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(25)), 0.5 / Animation_Speed)
  824. 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(25)), 0.5 / Animation_Speed)
  825. end
  826. for i=0, 0.08, 0.1 / Animation_Speed do
  827. Swait()
  828. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  829. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  830. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  831. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  832. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  833. 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(25)), 0.5 / Animation_Speed)
  834. 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(25)), 0.5 / Animation_Speed)
  835. end
  836. CreateSound("147722910", Effects, 10, 1)
  837. BANNEAREST(RootPart.CFrame*CF(0,0,-6).p,25)
  838. if HITFLOOR ~= nil then
  839. CreateSound("289842971", HandlePart, 10, 1)
  840. CreateSound("289842971", HandlePart, 10, 1)
  841. CreateSound("289842971", HandlePart, 10, 1)
  842. CreateSound("289842971", HandlePart, 10, 1)
  843. CreateDebreeRing(HITFLOOR,RootPart.CFrame*CF(0,-5,-6).p,5,VT(8,8,8),35)
  844. end
  845. CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,2,"Really red",VT(0,3,0))
  846. CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,-2,"Really red",VT(0,3,0))
  847. for i=0, 0.1, 0.1 / Animation_Speed do
  848. Swait()
  849. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  850. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  851. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  852. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  853. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  854. 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(25)), 0.5 / Animation_Speed)
  855. 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(25)), 0.5 / Animation_Speed)
  856. end
  857. if HOLD == true then
  858. for i=0, 0.08, 0.1 / Animation_Speed do
  859. Swait()
  860. if HOLD == false then
  861. break
  862. end
  863. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  864. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  865. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  866. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  867. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  868. 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(25)), 0.5 / Animation_Speed)
  869. 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(25)), 0.5 / Animation_Speed)
  870. end
  871. end
  872. until HOLD == false
  873. for i=0, 1, 0.1 / Animation_Speed do
  874. Swait()
  875. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  876. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  877. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  878. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  879. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  880. 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(25)), 0.5 / Animation_Speed)
  881. 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(25)), 0.5 / Animation_Speed)
  882. end
  883. for i=0, 5, 0.1 / Animation_Speed do
  884. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  885. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  886. 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)
  887. 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)
  888. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  889. 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)
  890. 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)
  891. end
  892. ATTACK = false
  893. Rooted = false
  894. end
  895.  
  896. --//=================================\\
  897. --|| ASSIGN THINGS TO KEYS
  898. --\\=================================//
  899.  
  900. function MouseDown(Mouse)
  901. HOLD = true
  902. if ATTACK == false then
  903. BANSLAM()
  904. end
  905. end
  906.  
  907. function MouseUp(Mouse)
  908. HOLD = false
  909. end
  910.  
  911. function KeyDown(Key)
  912. KEYHOLD = true
  913. if Key == "b" and ATTACK == false then
  914. local pos = RootPart.Position
  915. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos)
  916. CreateSound("769380905", Torso, 10, 1)
  917. end
  918.  
  919. if Key == "t" then
  920. CreateSound("1058417264", Head, 10, 1)
  921. Delete:ClearAllChildren()
  922. end
  923. end
  924.  
  925. function KeyUp(Key)
  926. KEYHOLD = false
  927. end
  928.  
  929. Mouse.Button1Down:connect(function(NEWKEY)
  930. MouseDown(NEWKEY)
  931. end)
  932. Mouse.Button1Up:connect(function(NEWKEY)
  933. MouseUp(NEWKEY)
  934. end)
  935. Mouse.KeyDown:connect(function(NEWKEY)
  936. KeyDown(NEWKEY)
  937. end)
  938. Mouse.KeyUp:connect(function(NEWKEY)
  939. KeyUp(NEWKEY)
  940. end)
  941.  
  942. --//=================================\\
  943. --\\=================================//
  944.  
  945.  
  946. function unanchor()
  947. if UNANCHOR == true then
  948. g = Character:GetChildren()
  949. for i = 1, #g do
  950. if g[i].ClassName == "Part" then
  951. g[i].Anchored = false
  952. end
  953. end
  954. end
  955. end
  956.  
  957.  
  958. --//=================================\\
  959. --|| WRAP THE WHOLE SCRIPT UP
  960. --\\=================================//
  961.  
  962. Humanoid.Changed:connect(function(Jump)
  963. if Jump == "Jump" and (Disable_Jump == true) then
  964. Humanoid.Jump = false
  965. end
  966. end)
  967.  
  968. Speed = 23
  969.  
  970. while true do
  971. Swait()
  972. ANIMATE.Parent = nil
  973. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  974. IDLEANIMATION:Play()
  975. SINE = SINE + CHANGE
  976. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  977. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  978. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  979. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  980. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  981. if ATTACK == false then
  982. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  983. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  984. end
  985. if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then
  986. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  987. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  988. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  989. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  990. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then
  991. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  992. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  993. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  994. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  995. end
  996. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  997. ANIM = "Jump"
  998. if ATTACK == false then
  999. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1000. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1001. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1002. 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)
  1003. 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)
  1004. end
  1005. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1006. ANIM = "Fall"
  1007. if ATTACK == false then
  1008. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1009. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1011. 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)
  1012. 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)
  1013. end
  1014. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1015. ANIM = "Idle"
  1016. if ATTACK == false then
  1017. 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)
  1018. 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)
  1019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1020. 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)
  1021. 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)
  1022. end
  1023. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1024. ANIM = "Walk"
  1025. WALK = WALK + 1 / Animation_Speed
  1026. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1027. WALK = 0
  1028. if WALKINGANIM == true then
  1029. WALKINGANIM = false
  1030. elseif WALKINGANIM == false then
  1031. WALKINGANIM = true
  1032. end
  1033. end
  1034. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1035. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1036. if ATTACK == false then
  1037. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1038. 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)
  1039. 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)
  1040. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1041. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1042. end
  1043. end
  1044. unanchor()
  1045. Humanoid.MaxHealth = 5e15
  1046. Humanoid.Health = 5e15
  1047. if Rooted == false then
  1048. Disable_Jump = false
  1049. Humanoid.WalkSpeed = Speed
  1050. elseif Rooted == true then
  1051. Disable_Jump = true
  1052. Humanoid.WalkSpeed = 0
  1053. end
  1054. local MATHS = {"0","1"}
  1055. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1056. Humanoid.PlatformStand = false
  1057. local GAME = game.Players:GetChildren()
  1058. for PLAYER = 1, #GAME do
  1059. local PLAY = GAME[PLAYER]
  1060. if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  1061. PLAY.Character:remove()
  1062. end
  1063. end
  1064. end
  1065.  
  1066. --//=================================\\
  1067. --\\=================================//
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073. --//====================================================\\--
  1074. --|| END OF SCRIPT
  1075. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement