Advertisement
JacksoMykalJunior

Untitled

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