Advertisement
Guest User

Legend on Campus

a guest
Jul 16th, 2024
2,412
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.52 KB | None | 1 0
  1. spawn(function()
  2. while wait() do
  3. if game.Players.LocalPlayer.Character ~= nil then
  4. for i, v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  5. if v:IsA('BodyVelocity') then
  6. if v.Name ~= game.Players.LocalPlayer.Name then
  7. v:Destroy()
  8. end
  9. end
  10. end
  11. end
  12. end
  13. end)
  14.  
  15.  
  16. spawn(function()
  17. while wait() do
  18. for i, v in pairs(game.Players:GetPlayers()) do
  19. if v ~= game.Players.LocalPlayer and v.Team ~= game.Players.LocalPlayer.Team then
  20. if v.Character ~= nil then
  21. if v.Character:FindFirstChild('HumanoidRootPart') then
  22. v.Character:FindFirstChild('HumanoidRootPart').Size = Vector3.new(3,3,3)
  23. v.Character:FindFirstChild('HumanoidRootPart').Transparency = .5
  24. end
  25. end
  26. end
  27. end
  28. end
  29. end)
  30.  
  31.  
  32. local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
  33. local SaveManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/SaveManager.lua"))()
  34. local InterfaceManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/dawid-scripts/Fluent/master/Addons/InterfaceManager.lua"))()
  35. getgenv().Mag = {}
  36. Mag.Enabled = false
  37. Mag.Distance = 1
  38. Mag.MagType = nil
  39. MagTypes = {
  40. 'Vector',
  41. 'Touch',
  42. 'Both'
  43. }
  44. getgenv().CatchRange = {}
  45. CatchRange.Enabled = false
  46. CatchRange.RightHand = Vector3.new(1.2999999523162842, 1.433249831199646, 1.2999999523162842)
  47. CatchRange.LeftHand = Vector3.new(1.2999999523162842, 1.433249831199646, 1.2999999523162842)
  48. CatchRange.Transparency = 1
  49. CatchRange.Color = Color3.fromRGB()
  50.  
  51.  
  52. getgenv().Players = game:GetService('Players')
  53. getgenv().Local = Players.LocalPlayer
  54. getgenv().Character = Local.Character or Local.CharacterAdded:Wait()
  55. getgenv().Conn = nil
  56. getgenv().Conn2 = nil
  57. getgenv().Football = nil
  58.  
  59.  
  60. spawn(function()
  61. while wait() do
  62. if Football ~= nil then
  63. if not Football:FindFirstChild('MYHitbox') then
  64. local Hitbox = Instance.new('Part',Football)
  65. Hitbox.Size = Vector3.new(tonumber(Mag.Distance),tonumber(Mag.Distance),tonumber(Mag.Distance))
  66. Hitbox.Transparency = .5
  67. Hitbox.CanCollide = false
  68. Hitbox.Anchored = true
  69. Hitbox.Name ='MYHitbox'
  70. Hitbox.Position = Football.Position
  71. else
  72. Football:FindFirstChild('MYHitbox').Position = Football.Position
  73. end
  74. end
  75. end
  76. end)
  77.  
  78.  
  79. --[[getgenv().FootballFinder = function()
  80. local Ball;
  81.  
  82. for _, v in ipairs(game.Workspace:GetDescendants()) do
  83. if v:IsA('Tool') and not game.Players:GetPlayerFromCharacter(v.Parent) then
  84. if v:FindFirstChild('Handle') then
  85. local handle = v:FindFirstChild('Handle')
  86. if handle:FindFirstAncestorOfClass('BodyVelocity') then
  87. Ball = v:FindFirstChild('Handle')
  88. return Ball
  89. end
  90. end
  91. elseif v:IsA('Part') or v:IsA('BasePart') or v:IsA('MeshPart') then
  92. if not game.Players:GetPlayerFromCharacter(v.Parent) or not v.Parent:FindFirstChild('Humanoid') then
  93. if v:FindFirstAncestorOfClass('BodyVelocity') then
  94. Ball = v
  95. return Ball
  96. end
  97. end
  98. end
  99. end
  100.  
  101. return nil
  102. end--]]
  103.  
  104. getgenv().Rendered = function()
  105. Football = FootballFinder()
  106. end
  107.  
  108. local RunService = game:GetService('RunService')
  109. RunService.Heartbeat:Connect(Rendered)
  110.  
  111.  
  112. local Options = Fluent.Options
  113. Local.CharacterAdded:Connect(function(UpdatedCharacter)
  114. Character = UpdatedCharacter
  115. repeat wait() until UpdatedCharacter:FindFirstChild("Humanoid")
  116. repeat wait() until Character:FindFirstChild('CRangeL') and Character:FindFirstChild('CRangeR')
  117.  
  118. UpdatedCharacter:FindFirstChild("Humanoid").Changed:Connect(function()
  119. UpdatedCharacter:FindFirstChild("Humanoid").WalkSpeed = Options.WalkSpeedSlider.Value
  120. UpdatedCharacter:FindFirstChild("Humanoid").JumpPower = Options.JumpPowerSlider.Value
  121. end)
  122. if Character:FindFirstChild('CRangeL') and Character:FindFirstChild('CRangeR') and CatchRange.Enabled == true then
  123. Character:FindFirstChild('CRangeL').Size = Options.HitboxL
  124. Character:FindFirstChild('CRangeR').Size = Options.HitboxR
  125. end
  126. pcall(function()
  127. UpdatedCharacter:FindFirstChild("Humanoid").Died:Connect(function()
  128. if Conn ~= nil then
  129. Conn:Disconnect()
  130. Conn = nil
  131. elseif Conn2 ~= nil then
  132. Conn2:Disconnect()
  133. Conn2 = nil
  134. end
  135. end)
  136. end)
  137. end)
  138.  
  139.  
  140.  
  141. getgenv().CatchFunc = function()
  142. while CatchRange.Enabled == true do
  143. wait()
  144. --- print(CatchRange.Enabled, 'Enabled')
  145. if CatchRange.Enabled == false then
  146. if Character:FindFirstChild('CRangeL') and Character:FindFirstChild('CRangeR') then
  147. if Character:FindFirstChild('CRangeL'):FindFirstChild('OriginalSize') and Character:FindFirstChild('CRangeR'):FindFirstChild('OriginalSize') then
  148. Character:FindFirstChild('CRangeR').Size = Character:FindFirstChild('CRangeR'):FindFirstChild('OriginalSize').Value
  149. Character:FindFirstChild('CRangeL').Size = Character:FindFirstChild('CRangeL'):FindFirstChild('OriginalSize').Value
  150. Character:FindFirstChild('CRangeR').Transparency = 1
  151. Character:FindFirstChild('CRangeL').Transparency = 1
  152. end
  153. end
  154. break
  155. end
  156. if Character ~= nil then
  157. if Character:FindFirstChild('CRangeL') and Character:FindFirstChild('CRangeR') and CatchRange.Enabled == true then
  158. -- print(CatchRange.RightHand,CatchRange.LeftHand,'Enabled')
  159. local CatchR = Character:FindFirstChild('CRangeR')
  160. local CatchL = Character:FindFirstChild('CRangeL')
  161. CatchR.Size = CatchRange.RightHand
  162. CatchL.Size = CatchRange.LeftHand
  163. CatchL.Transparency = CatchRange.Transparency
  164. CatchR.Transparency = CatchRange.Transparency
  165. end
  166. end
  167. end
  168. end
  169.  
  170.  
  171. getgenv().MagFunc = function()
  172. while Mag.Enabled == true do
  173. -- print('yes')
  174. task.wait()
  175. if Mag.Enabled == false then break end
  176. if Football ~= nil then
  177. local v = Football
  178. if game.Players.LocalPlayer.Character then
  179. local Character = game.Players.LocalPlayer.Character
  180.  
  181. local Distance = (v.Position - Character.HumanoidRootPart.Position).Magnitude
  182. if Distance <= Mag.Distance and Mag.Enabled == true then
  183. if MagType == 'Touch' then
  184. firetouchinterest(Character:WaitForChild("Right Arm"), v, 0)
  185. firetouchinterest(Character:WaitForChild("Right Arm"), v, 0)
  186. firetouchinterest(Character:WaitForChild("Left Arm"), v, 0)
  187. firetouchinterest(Character:WaitForChild("Left Arm"), v, 0)
  188. firetouchinterest(Character:WaitForChild("Right Arm"), v, 1)
  189. firetouchinterest(Character:WaitForChild("Right Arm"), v, 1)
  190. firetouchinterest(Character:WaitForChild("Left Arm"), v, 1)
  191. firetouchinterest(Character:WaitForChild("Left Arm"), v, 1)
  192. elseif MagType == 'Vector' then
  193. v.Position = Character.HumanoidRootPart.Position
  194. elseif MagType == 'Both' then
  195. v.Position = Character.HumanoidRootPart.Position
  196. firetouchinterest(Character:WaitForChild("Right Arm"), v, 0)
  197. firetouchinterest(Character:WaitForChild("Right Arm"), v, 0)
  198. firetouchinterest(Character:WaitForChild("Left Arm"), v, 0)
  199. firetouchinterest(Character:WaitForChild("Left Arm"), v, 0)
  200. firetouchinterest(Character:WaitForChild("Right Arm"), v, 1)
  201. firetouchinterest(Character:WaitForChild("Right Arm"), v, 1)
  202. firetouchinterest(Character:WaitForChild("Left Arm"), v, 1)
  203. firetouchinterest(Character:WaitForChild("Left Arm"), v, 1)
  204. end
  205. --v.Position = Character.HumanoidRootPart.Position
  206. --[[firetouchinterest(Character:WaitForChild("Right Arm"), v, 0)
  207. firetouchinterest(Character:WaitForChild("Right Arm"), v, 0)
  208. firetouchinterest(Character:WaitForChild("Left Arm"), v, 0)
  209. firetouchinterest(Character:WaitForChild("Left Arm"), v, 0)
  210. firetouchinterest(Character:WaitForChild("Right Arm"), v, 1)
  211. firetouchinterest(Character:WaitForChild("Right Arm"), v, 1)
  212. firetouchinterest(Character:WaitForChild("Left Arm"), v, 1)
  213. firetouchinterest(Character:WaitForChild("Left Arm"), v, 1)--]]
  214. end
  215. end
  216. end
  217. end
  218. end
  219.  
  220.  
  221.  
  222.  
  223. local Window = Fluent:CreateWindow({
  224. Title = "Global Mag for Football Games " .. '1.0',
  225. SubTitle = "by unusa",
  226. TabWidth = 160,
  227. Size = UDim2.fromOffset(580, 460),
  228. Acrylic = true, -- The blur may be detectable, setting this to false disables blur entirely
  229. Theme = "Dark",
  230. MinimizeKey = Enum.KeyCode.LeftControl -- Used when theres no MinimizeKeybind
  231. })
  232.  
  233. --Fluent provides Lucide Icons https://lucide.dev/icons/ for the tabs, icons are optional
  234. local Tabs = {
  235. Main = Window:AddTab({ Title = "Main", Icon = "" }),
  236. Local = Window:AddTab({ Title = "Local", Icon = "" }),
  237. Settings = Window:AddTab({ Title = "Settings", Icon = "settings" })
  238. }
  239.  
  240.  
  241.  
  242. do
  243. --[[Fluent:Notify({
  244. Title = "Notification",
  245. Content = "This is a notification",
  246. SubContent = "SubContent", -- Optional
  247. Duration = 5 -- Set to nil to make the notification not disappear
  248. })--]]
  249.  
  250.  
  251.  
  252. Tabs.Main:AddParagraph({
  253. Title = "Mag Features",
  254. Content = "This Section Contains mag features"
  255. })
  256.  
  257. Tabs.Local:AddButton({
  258. Title = "Remove Jump Cooldown",
  259. Description = "Remove Jump Cooldown that is within the game",
  260. Callback = function()
  261. if game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild('JumpCooldown') then
  262. game:GetService("Players").LocalPlayer.PlayerGui.JumpCooldown:Destroy()
  263. Fluent:Notify({
  264. Title = "Cooldoown Removed",
  265. Content = "Complete, Enjoy :)",
  266. --SubContent = "SubContent", -- Optional
  267. Duration = 5 -- Set to nil to make the notification not disappear
  268. })
  269. else
  270.  
  271. Fluent:Notify({
  272. Title = "Cooldoown Removed",
  273. Content = "Already Removed!",
  274. --SubContent = "SubContent", -- Optional
  275. Duration = 5 -- Set to nil to make the notification not disappear
  276. })
  277. end
  278.  
  279.  
  280. end
  281. })
  282.  
  283.  
  284.  
  285.  
  286.  
  287. local Toggle = Tabs.Main:AddToggle("MagToggle", {Title = "Enable Mag", Default = false })
  288.  
  289. Toggle:OnChanged(function(Value)
  290. Mag.Enabled = Value
  291. if Value == true then
  292. Fluent:Notify({
  293. Title = "Unuas",
  294. Content = "Remember to click to catch",
  295. Duration = 8
  296. })
  297. task.spawn(MagFunc)
  298. end
  299. end)
  300.  
  301. --Options.MagToggle:SetValue(false)
  302.  
  303.  
  304.  
  305. local Slider = Tabs.Main:AddSlider("MagDistanceSlider", {
  306. Title = "Mag Distance",
  307. Description = "Max distance before mag activates",
  308. Default = 1,
  309. Min = 1,
  310. Max = 100,
  311. Rounding = 1,
  312. Callback = function(Value)
  313.  
  314. Mag.Distance = tonumber(Value)
  315. end
  316. })
  317.  
  318. Slider:OnChanged(function(Value)
  319. Mag.Distance = tonumber(Value)
  320. end)
  321.  
  322.  
  323. local Dropdown = Tabs.Main:AddDropdown("Dropdown", {
  324. Title = "Mag Type",
  325. Values = {'Touch','Vector','Both'},
  326. Multi = false,
  327. --Default = n,
  328. })
  329.  
  330.  
  331.  
  332. Dropdown:OnChanged(function(Value)
  333. MagType = tostring(Value)
  334. end)
  335.  
  336. -- Catch Hitbox
  337.  
  338. local CatchToggle = Tabs.Main:AddToggle("CatchToggle", {Title = "Enable Catch Hitbox", Default = false })
  339.  
  340. CatchToggle:OnChanged(function(Value)
  341. CatchRange.Enabled = Value
  342. -- print(CatchRange.Enabled, 'Enabled')
  343. if Value == true then
  344.  
  345. task.spawn(CatchFunc)
  346. end
  347. end)
  348.  
  349. local LFSlider = Tabs.Main:AddSlider("HitboxL", {
  350. Title = "Catch Hitbox Left Hand",
  351. Description = "Hitbox of the Left Hand",
  352. Default = 1,
  353. Min = 1,
  354. Max = 100,
  355. Rounding = 1,
  356.  
  357. })
  358.  
  359. LFSlider:OnChanged(function(Value)
  360. CatchRange.LeftHand = Vector3.new(tonumber(Value),tonumber(Value),tonumber(Value))
  361. end)
  362.  
  363. local RFSlider = Tabs.Main:AddSlider("HitboxR", {
  364. Title = "Catch Hitbox Right Hand",
  365. Description = "Hitbox of the Right Hand",
  366. Default = 1,
  367. Min = 1,
  368. Max = 100,
  369. Rounding = 1,
  370.  
  371. })
  372.  
  373. RFSlider:OnChanged(function(Value)
  374. CatchRange.RightHand = Vector3.new(tonumber(Value),tonumber(Value),tonumber(Value))
  375. end)
  376.  
  377. local CatchTransparencySlider = Tabs.Main:AddSlider("TransparencyCatch", {
  378. Title = "Change Transparency",
  379. Description = "Change Transparency of Catch Hitbox for both hands",
  380. Default = 0,
  381. Min = 0,
  382. Max = 1,
  383. Rounding = 1,
  384.  
  385. })
  386.  
  387. CatchTransparencySlider:OnChanged(function(Value)
  388. CatchRange.Transparency = tonumber(Value)
  389. end)
  390.  
  391. -- End Options.WalkSpeedSlider
  392.  
  393. local wSlider = Tabs.Local:AddSlider("WalkSpeedSlider", {
  394. Title = "Walk Speed",
  395. Description = "Change your WalkSpeed",
  396. Default = 1,
  397. Min = 18,
  398. Max = 50,
  399. Rounding = 1,
  400.  
  401. })
  402.  
  403. wSlider:OnChanged(function(Value)
  404. if Conn ~= nil then
  405. Conn:Disconnect()
  406. Conn = nil
  407. end
  408. if Character:FindFirstChild('Humanoid') then
  409.  
  410. Conn = Character:FindFirstChild("Humanoid").Changed:Connect(function()
  411. Character:FindFirstChild("Humanoid").WalkSpeed = Value
  412. end)
  413.  
  414. end
  415. end)
  416. -- End
  417. local JSlider = Tabs.Local:AddSlider("JumpPowerSlider", {
  418. Title = "Jump Power",
  419. Description = "Change how high you can jump!",
  420. Default = 1,
  421. Min = 50,
  422. Max = 100,
  423. Rounding = 1,
  424.  
  425. })
  426.  
  427. JSlider:OnChanged(function(Value)
  428. if Conn2 ~= nil then
  429. Conn2:Disconnect()
  430. Conn2 = nil
  431. end
  432. if Character:FindFirstChild('Humanoid') then
  433.  
  434. Conn2 = Character:FindFirstChild("Humanoid").Changed:Connect(function()
  435. Character:FindFirstChild("Humanoid").JumpPower = Value
  436. end)
  437.  
  438. end
  439. end)
  440. -- Testing
  441. --Slider:SetValue(3)
  442.  
  443.  
  444.  
  445. --[[local Dropdown = Tabs.Main:AddDropdown("Dropdown", {
  446. Title = "Dropdown",
  447. Values = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen"},
  448. Multi = false,
  449. Default = 1,
  450. })
  451.  
  452. Dropdown:SetValue("four")
  453.  
  454. Dropdown:OnChanged(function(Value)
  455. print("Dropdown changed:", Value)
  456. end)
  457.  
  458.  
  459.  
  460. local MultiDropdown = Tabs.Main:AddDropdown("MultiDropdown", {
  461. Title = "Dropdown",
  462. Description = "You can select multiple values.",
  463. Values = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen"},
  464. Multi = true,
  465. Default = {"seven", "twelve"},
  466. })
  467.  
  468. MultiDropdown:SetValue({
  469. three = true,
  470. five = true,
  471. seven = false
  472. })
  473.  
  474. MultiDropdown:OnChanged(function(Value)
  475. local Values = {}
  476. for Value, State in next, Value do
  477. table.insert(Values, Value)
  478. end
  479. print("Mutlidropdown changed:", table.concat(Values, ", "))
  480. end)
  481.  
  482.  
  483.  
  484. local Colorpicker = Tabs.Main:AddColorpicker("Colorpicker", {
  485. Title = "Colorpicker",
  486. Default = Color3.fromRGB(96, 205, 255)
  487. })
  488.  
  489. Colorpicker:OnChanged(function()
  490. Character['Left Arm'].Color = Color3.fromRGB(Colorpicker.Value)
  491. end)
  492.  
  493. --Colorpicker:SetValueRGB(Color3.fromRGB(0, 255, 140))
  494.  
  495.  
  496.  
  497. local TColorpicker = Tabs.Main:AddColorpicker("TransparencyColorpicker", {
  498. Title = "Colorpicker",
  499. Description = "but you can change the transparency.",
  500. Transparency = 0,
  501. Default = Color3.fromRGB(96, 205, 255)
  502. })
  503.  
  504. TColorpicker:OnChanged(function()
  505. print(
  506. "TColorpicker changed:", TColorpicker.Value,
  507. "Transparency:", TColorpicker.Transparency
  508. )
  509. end)--]]
  510.  
  511.  
  512.  
  513. local Keybind = Tabs.Main:AddKeybind("Keybind", {
  514. Title = "KeyBind",
  515. Mode = "Toggle", -- Always, Toggle, Hold
  516. Default = "LeftControl", -- String as the name of the keybind (MB1, MB2 for mouse buttons)
  517.  
  518. -- Occurs when the keybind is clicked, Value is `true`/`false`
  519. Callback = function(Value)
  520. --print("Keybind clicked!", Value)
  521. end,
  522.  
  523. -- Occurs when the keybind itself is changed, `New` is a KeyCode Enum OR a UserInputType Enum
  524. ChangedCallback = function(New)
  525. --print("Keybind changed!", New)
  526. end
  527. })
  528.  
  529. -- OnClick is only fired when you press the keybind and the mode is Toggle
  530. -- Otherwise, you will have to use Keybind:GetState()
  531. Keybind:OnClick(function()
  532. -- print("Keybind clicked:", Keybind:GetState())
  533. end)
  534.  
  535. Keybind:OnChanged(function()
  536. -- print("Keybind changed:", Keybind.Value)
  537. end)
  538.  
  539. task.spawn(function()
  540. while true do
  541. wait(1)
  542.  
  543. -- example for checking if a keybind is being pressed
  544. local state = Keybind:GetState()
  545. if state then
  546. -- print("Keybind is being held down")
  547. end
  548.  
  549. if Fluent.Unloaded then break end
  550. end
  551. end)
  552.  
  553. Keybind:SetValue("MB2", "Toggle") -- Sets keybind to MB2, mode to Hold
  554.  
  555.  
  556. local Input = Tabs.Main:AddInput("Input", {
  557. Title = "Input",
  558. Default = "Default",
  559. Placeholder = "Placeholder",
  560. Numeric = false, -- Only allows numbers
  561. Finished = false, -- Only calls callback when you press enter
  562. Callback = function(Value)
  563. -- print("Input changed:", Value)
  564. end
  565. })
  566.  
  567. Input:OnChanged(function()
  568. -- print("Input updated:", Input.Value)
  569. end)
  570. end
  571.  
  572.  
  573. -- Addons:
  574. -- SaveManager (Allows you to have a configuration system)
  575. -- InterfaceManager (Allows you to have a interface managment system)
  576.  
  577. -- Hand the library over to our managers
  578. SaveManager:SetLibrary(Fluent)
  579. InterfaceManager:SetLibrary(Fluent)
  580.  
  581. -- Ignore keys that are used by ThemeManager.
  582. -- (we dont want configs to save themes, do we?)
  583. SaveManager:IgnoreThemeSettings()
  584.  
  585. -- You can add indexes of elements the save manager should ignore
  586. SaveManager:SetIgnoreIndexes({})
  587.  
  588. -- use case for doing it this way:
  589. -- a script hub could have themes in a global folder
  590. -- and game configs in a separate folder per game
  591. InterfaceManager:SetFolder("FluentScriptHub")
  592. SaveManager:SetFolder("FluentScriptHub/specific-game")
  593.  
  594. InterfaceManager:BuildInterfaceSection(Tabs.Settings)
  595. SaveManager:BuildConfigSection(Tabs.Settings)
  596.  
  597.  
  598. Window:SelectTab(1)
  599.  
  600. Fluent:Notify({
  601. Title = "Unuas",
  602. Content = "The script has been loaded.",
  603. Duration = 8
  604. })
  605.  
  606. -- You can use the SaveManager:LoadAutoloadConfig() to load a config
  607. -- which has been marked to be one that auto loads!
  608. SaveManager:LoadAutoloadConfig()
  609.  
  610.  
  611.  
  612.  
  613.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement