fusionfriends

HAX

Apr 11th, 2022 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1.  
  2. if game.GameId ~= 578392296 then return end
  3. repeat task.wait() until game:IsLoaded()
  4. local Players = game:GetService("Players")
  5. local HttpService = game:GetService("HttpService")
  6. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  7. local UIS = game:GetService("UserInputService")
  8.  
  9. local Player = Players.LocalPlayer
  10. local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  11. local Mouse = Player:GetMouse()
  12.  
  13. local BlackFlashRemote = ReplicatedStorage:WaitForChild("BlackFlashCheck")
  14.  
  15. local FileName = "FusionHaxSettings.txt"
  16. local Loader = Material.Load({
  17. Title = "FusionHax";
  18. Style = 3;
  19. SizeX = 200;
  20. SizeY = 300;
  21. Theme = "Dark";
  22. })
  23.  
  24. local DefaultTable = {
  25. ShowCooldowns = false;
  26. NoSKeySlowness = false;
  27. Hotkeys = {};
  28. }
  29.  
  30. local SavedSettings
  31. if isfile(FileName) then
  32. SavedSettings = HttpService:JSONDecode(readfile(FileName))
  33. else
  34. SavedSettings = {}
  35. end
  36. for i,v in pairs(DefaultTable) do
  37. SavedSettings[i] = SavedSettings[i] or v
  38. end
  39.  
  40. local BlackFlashTimes = 0
  41.  
  42. local function OnCharacterAdded(Character)
  43. local Humanoid = Character:WaitForChild("Humanoid")
  44.  
  45. Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  46. if Humanoid.WalkSpeed == 16 and SavedSettings.NoSKeySlowness then
  47. Humanoid.WalkSpeed = 25
  48. end
  49. end)
  50. end
  51.  
  52. local OldNameCall
  53. OldNameCall = hookmetamethod(game, "__namecall", function(Self, ...)
  54. local Args = {...}
  55. local Method = getnamecallmethod()
  56. if not checkcaller() and Method == "FireServer"then
  57. if Self and typeof(Self) == 'Instance' and Self.Name == 'Input' then
  58. if Args[1] == 'ws' then
  59. return
  60. end
  61. end
  62. end
  63. return OldNameCall(Self, ...)
  64. end)
  65.  
  66. local OnChanged = {
  67.  
  68. }
  69.  
  70. BlackFlashRemote.OnClientInvoke = function()
  71. BlackFlashTimes = BlackFlashTimes+1
  72. if BlackFlashTimes > 3 then
  73. BlackFlashTimes = 0
  74. task.wait(.1)
  75. return false
  76. end
  77. task.wait(1-(.25*BlackFlashTimes))
  78. return true
  79. end
  80.  
  81. local function SetSetting(SettingName,Value)
  82. SavedSettings[SettingName] = Value
  83. if OnChanged[SettingName] then
  84. OnChanged[SettingName](Value)
  85. end
  86. writefile(FileName,HttpService:JSONEncode(SavedSettings))
  87. end
  88.  
  89. for SettingName,Value in pairs(SavedSettings) do
  90. if OnChanged[SettingName] then
  91. OnChanged[SettingName](Value)
  92. end
  93. end
  94.  
  95. local GeneralTab = Loader.New({
  96. Title = "General";
  97. })
  98.  
  99. local DataTab = Loader.New({
  100. Title = "Data";
  101. })
  102.  
  103. local SkillsTab = Loader.New({
  104. Title = "Skills";
  105. })
  106.  
  107. local HotkeyTab = Loader.New({
  108. Title = "Hotkeys"
  109. })
  110.  
  111. GeneralTab.Toggle({
  112. Text = "No S Key Slowness";
  113. Callback = function(Bool)
  114. SetSetting("NoSKeySlowness",Bool)
  115. end;
  116. Enabled = SavedSettings.NoSKeySlowness;
  117. })
  118.  
  119. DataTab.Toggle({
  120. Text = "Show Cooldowns";
  121. Callback = function(Bool)
  122. SetSetting("ShowCooldowns",Bool)
  123. end;
  124. Enabled = SavedSettings.ShowCooldowns;
  125. })
  126.  
  127. for i,v in pairs(SavedSettings) do
  128. if typeof(v) == "Boolean" then
  129.  
  130. end
  131. end
  132.  
  133. OnCharacterAdded(Player.Character or Player.CharacterAdded:Wait())
  134. Player.CharacterAdded:Connect(OnCharacterAdded)
Add Comment
Please, Sign In to add comment