0% found this document useful (0 votes)
212 views3 pages

World of Magic

This document contains code for a Linoria UI library that adds various in-game options and modifications through a GUI interface. It initializes the library and window, adds tabs and sections, defines variables, and includes buttons to enable a performance mode and remove jail. It also adds toggles and sliders for god mode and damage multiplier options. The code then hooks namecall methods to prevent damage to the local player character and optionally multiply damage based on the slider value.

Uploaded by

A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views3 pages

World of Magic

This document contains code for a Linoria UI library that adds various in-game options and modifications through a GUI interface. It initializes the library and window, adds tabs and sections, defines variables, and includes buttons to enable a performance mode and remove jail. It also adds toggles and sliders for god mode and damage multiplier options. The code then hooks namecall methods to prevent damage to the local player character and optionally multiply damage based on the slider value.

Uploaded by

A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

local Url =

"https://raw.githubusercontent.com/WhisperingTelamonster/Assets/master/Linoria
%20UI"
local Library = loadstring(game:HttpGetAsync(Url), true)()

local Window = Library:CreateWindow("")

local Tab = Window:AddTab("Game")

local lMain = Tab:AddLeftTabbox()

local rMisc = Tab:AddRightTabbox()

local Main = lMain:AddTab("Main")


local Misc = rMisc:AddTab("Misc")

--- Vairables

local Client = game:GetService("Players").LocalPlayer


local Storage = game:GetService("ReplicatedStorage")

--- Button

Misc:AddButton("Performance mode", function ()


Client.PlayerGui.Temp.Climbing.Disabled = true
Client.PlayerGui.Temp.LocalMain.Disabled = true
Client.PlayerGui.Release.RegionFinder.Disabled = true
Client.PlayerGui.Emotes.EmotesHandler.Disabled = true
Client.PlayerGui.MainGui.Guilds.Disabled = true
Client.PlayerGui.MainGui.Guilds.ColorPalette.Disabled = true
Client.PlayerGui.MainGui.Trading.Disabled = true
Client.PlayerScripts.DayNightCycle.Disabled = true
Client.PlayerScripts.WeatherClient.Disabled = true
Client.PlayerScripts.FishVisual.Disabled = true
Client.PlayerScripts.Rotators.Disabled = true
Client.PlayerGui.Boosts.BHandler.Disabled = true
Client.PlayerGui.MainGui.Tutorial.Disabled = true
Client.PlayerGui.PlayerList.PlayerListSetup.Disabled = true
Client.PlayerGui.CustomChat.ChatHandler.Disabled = true
Client.PlayerGui.MainGui.FishJournal.Disabled = true
Client.PlayerGui.MainGui.Teams.Disabled = true
Client.PlayerGui.Overlays.Sorting.SortingHandler.Disabled = true

local Count = 0
for i,v in ipairs(Workspace.Map:GetDescendants()) do
if v.Name == "Barrel" or v.Name == "Crate" or v.Name == "Water" then
v:Destroy()
elseif v.Name == "Trunk" or v.Name == "Leaves" or v.Name == "Bushes" or
v:IsA("ParticleEmitter") then
v:Destroy()
end

Count += 1
if Count == 150 then
task.wait()
Count = 0
end
end
local Count = 0

for i,v in ipairs(Workspace.Map:GetDescendants()) do


if v:IsA("BasePart") then
v:GetPropertyChangedSignal("Anchored"):Connect(function ()
if v.Anchored == false then
v:Destroy()
end
end)
end
Count += 1

if Count == 150 then


task.wait()
Count = 0
end
end

Workspace.Effects.DescendantAdded:Connect(function (Child)
task.wait()

if Child:IsA("Trail") or Child:IsA("ParticleEmitter") or Child.Name ==


"MagicCircle" then
Child:Destroy()
end
end)

Library:Notify("Optimization done", 15)


end)

Misc:AddButton("Remove jail", function ()


Client.Character.Jailed:Destroy()
end)

--- GUI

local Toggle0 = Main:AddToggle("", {Text = "God mode"})


local Toggle1 = Main:AddToggle("", {Text = "Dmg multiplier"})

local Slider0 = Main:AddSlider("", {Text = "Multiplier", Max = 20, Min = 2,


Rounding = 0, Default = 3})

--- HOOKS

local OldCall
OldCall = hookmetamethod(game, "__namecall", function (Self, ...)
local Args = {...}

if not checkcaller() and Toggle0.Value then


if Self.Name == "TakeSideDamage" and Client.Character then
if Args[1] ~= Client.Character then
return
end
end
if Self.Name == "DealAttackDamage" or Self.Name == "DealBossDamage" or
Self.Name == "DealWeaponDamage" then
if Client.Character and Args[2] == Client.Character then
return
elseif Client.Character and Args[2] ~= Client.Character and
Toggle1.Value then
for i = 1, Slider0.Value do
OldCall(Self, ...)
end
end
end
end

return OldCall(Self, ...)


end)

---

Library:Notify("Loaded")

You might also like