Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.GameId ~= 578392296 then return end
- repeat task.wait() until game:IsLoaded()
- local Players = game:GetService("Players")
- local HttpService = game:GetService("HttpService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local UIS = game:GetService("UserInputService")
- local Player = Players.LocalPlayer
- local Material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
- local Mouse = Player:GetMouse()
- local BlackFlashRemote = ReplicatedStorage:WaitForChild("BlackFlashCheck")
- local FileName = "FusionHaxSettings.txt"
- local Loader = Material.Load({
- Title = "FusionHax";
- Style = 3;
- SizeX = 200;
- SizeY = 300;
- Theme = "Dark";
- })
- local DefaultTable = {
- ShowCooldowns = false;
- NoSKeySlowness = false;
- Hotkeys = {};
- }
- local SavedSettings
- if isfile(FileName) then
- SavedSettings = HttpService:JSONDecode(readfile(FileName))
- else
- SavedSettings = {}
- end
- for i,v in pairs(DefaultTable) do
- SavedSettings[i] = SavedSettings[i] or v
- end
- local BlackFlashTimes = 0
- local function OnCharacterAdded(Character)
- local Humanoid = Character:WaitForChild("Humanoid")
- Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- if Humanoid.WalkSpeed == 16 and SavedSettings.NoSKeySlowness then
- Humanoid.WalkSpeed = 25
- end
- end)
- end
- local OldNameCall
- OldNameCall = hookmetamethod(game, "__namecall", function(Self, ...)
- local Args = {...}
- local Method = getnamecallmethod()
- if not checkcaller() and Method == "FireServer"then
- if Self and typeof(Self) == 'Instance' and Self.Name == 'Input' then
- if Args[1] == 'ws' then
- return
- end
- end
- end
- return OldNameCall(Self, ...)
- end)
- local OnChanged = {
- }
- BlackFlashRemote.OnClientInvoke = function()
- BlackFlashTimes = BlackFlashTimes+1
- if BlackFlashTimes > 3 then
- BlackFlashTimes = 0
- task.wait(.1)
- return false
- end
- task.wait(1-(.25*BlackFlashTimes))
- return true
- end
- local function SetSetting(SettingName,Value)
- SavedSettings[SettingName] = Value
- if OnChanged[SettingName] then
- OnChanged[SettingName](Value)
- end
- writefile(FileName,HttpService:JSONEncode(SavedSettings))
- end
- for SettingName,Value in pairs(SavedSettings) do
- if OnChanged[SettingName] then
- OnChanged[SettingName](Value)
- end
- end
- local GeneralTab = Loader.New({
- Title = "General";
- })
- local DataTab = Loader.New({
- Title = "Data";
- })
- local SkillsTab = Loader.New({
- Title = "Skills";
- })
- local HotkeyTab = Loader.New({
- Title = "Hotkeys"
- })
- GeneralTab.Toggle({
- Text = "No S Key Slowness";
- Callback = function(Bool)
- SetSetting("NoSKeySlowness",Bool)
- end;
- Enabled = SavedSettings.NoSKeySlowness;
- })
- DataTab.Toggle({
- Text = "Show Cooldowns";
- Callback = function(Bool)
- SetSetting("ShowCooldowns",Bool)
- end;
- Enabled = SavedSettings.ShowCooldowns;
- })
- for i,v in pairs(SavedSettings) do
- if typeof(v) == "Boolean" then
- end
- end
- OnCharacterAdded(Player.Character or Player.CharacterAdded:Wait())
- Player.CharacterAdded:Connect(OnCharacterAdded)
Add Comment
Please, Sign In to add comment