ADVERTISEMENTREMOVE ADS
Game icon

INCREMENTAL - INFINITE AMULET LOADOUTS

Script preview thumbnail
Script Preview

Description

select an amulet save slot using arrows / clicking the textbox
Clicking "save" will save your amulets to that save slot
Clicking "load" will load your amulets from that save slot

Tested with

ADVERTISEMENTREMOVE ADS
175 Lines • 6.21 KiB
Raw
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local old = PlayerGui:FindFirstChild("INFLOADOUTS")
if old then old:Destroy() end
local PASSWORD = ""
local Gui = Instance.new("ScreenGui")
Gui.Name = "INFLOADOUTS"
Gui.IgnoreGuiInset = true
Gui.ResetOnSpawn = false
Gui.ZIndexBehavior = Enum.ZIndexBehavior.Global
Gui.DisplayOrder = 9999
Gui.Parent = PlayerGui
local Main = Instance.new("Frame")
Main.Size = UDim2.new(0.15,0, 0.3,0)
Main.Position = UDim2.new(0.5,0, 0.5,0)
Main.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Main.BackgroundTransparency = 0.4
Main.Active = true
Main.Draggable = true
Main.Parent = Gui
local Aspect = Instance.new('UIAspectRatioConstraint')
Aspect.AspectRatio = .7
Aspect.Parent = Main
local Title = Instance.new('TextLabel',Main)
Title.Size = UDim2.new(0.45,0,0.13,0)
Title.Text = "Inf Loadouts // peanutscripts1"
Title.TextScaled = true
Title.TextColor3 = Color3.fromRGB(177, 131, 16)
Title.BackgroundTransparency = 1
Title.BackgroundTransparency = 1
Title.AnchorPoint = Vector2.new(0.5,0.5)
Title.Font = Enum.Font.SourceSansBold
Title.Position = UDim2.new(0.5,0,0.05,0)
local Subtitle = Instance.new('TextLabel',Main)
Subtitle.Size = UDim2.new(0.45,0,0.075,0)
Subtitle.Text = "You can even save in non-owned loadouts"
Subtitle.TextScaled = true
Subtitle.TextColor3 = Color3.fromRGB(177, 131, 16)
Subtitle.BackgroundTransparency = 1
Subtitle.BackgroundTransparency = 1
Subtitle.AnchorPoint = Vector2.new(0.5,0.5)
Subtitle.Font = Enum.Font.SourceSansBold
Subtitle.Position = UDim2.new(0.5,0,0.16,0)
local loadoutSelector = Instance.new('TextBox',Main)
loadoutSelector.Size =UDim2.new(0.25,0,0.25,0)
loadoutSelector.Position = UDim2.new(.5,0,0.4,0)
loadoutSelector.BackgroundTransparency = .4
loadoutSelector.AnchorPoint = Vector2.new(0.5,0.5)
loadoutSelector.BackgroundColor3 = Color3.fromRGB(0,0,0)
loadoutSelector.Text = "1"
loadoutSelector.TextColor3 = Color3.fromRGB(177, 131, 16)
loadoutSelector.TextScaled = true
loadoutSelector.Font = Enum.Font.SourceSansBold
local aspect = Instance.new('UIAspectRatioConstraint',loadoutSelector)
local padding = Instance.new("UIPadding",loadoutSelector)
padding.PaddingTop = UDim.new(0.05,0)
padding.PaddingBottom = UDim.new(0.05,0)
padding.PaddingLeft = UDim.new(0.05,0)
padding.PaddingRight = UDim.new(0.05,0)
local button1 = Instance.new("TextButton",Main)
button1.Size =UDim2.new(0.2,0,0.2,0)
button1.Position = UDim2.new(.75,0,0.4,0)
button1.BackgroundTransparency = .4
button1.AnchorPoint = Vector2.new(0.5,0.5)
button1.BackgroundColor3 = Color3.fromRGB(0,0,0)
button1.Text = ">"
button1.TextColor3 = Color3.fromRGB(177, 131, 16)
button1.TextScaled = true
local button2 = Instance.new("TextButton",Main)
button2.Size =UDim2.new(0.2,0,0.2,0)
button2.Position = UDim2.new(.25,0,0.4,0)
button2.BackgroundTransparency = .4
button2.AnchorPoint = Vector2.new(0.5,0.5)
button2.BackgroundColor3 = Color3.fromRGB(0,0,0)
button2.Text = "<"
button2.TextColor3 = Color3.fromRGB(177, 131, 16)
button2.TextScaled = true
local saveButton = Instance.new("TextButton",Main)
saveButton.Size =UDim2.new(0.5,0,0.1,0)
saveButton.Position = UDim2.new(.5,0,0.6,0)
saveButton.BackgroundTransparency = .4
saveButton.AnchorPoint = Vector2.new(0.5,0.5)
saveButton.BackgroundColor3 = Color3.fromRGB(0,0,0)
saveButton.Text = "Save"
saveButton.TextColor3 = Color3.fromRGB(177, 131, 16)
saveButton.TextScaled = true
local loadButton = Instance.new("TextButton",Main)
loadButton.Size =UDim2.new(0.5,0,0.1,0)
loadButton.Position = UDim2.new(.5,0,0.75,0)
loadButton.BackgroundTransparency = .4
loadButton.AnchorPoint = Vector2.new(0.5,0.5)
loadButton.BackgroundColor3 = Color3.fromRGB(0,0,0)
loadButton.Text = "Load"
loadButton.TextColor3 = Color3.fromRGB(177, 131, 16)
loadButton.TextScaled = true
local padding = Instance.new("UIPadding",saveButton)
padding.PaddingTop = UDim.new(0.05,0)
padding.PaddingBottom = UDim.new(0.05,0)
padding.PaddingLeft = UDim.new(0.05,0)
padding.PaddingRight = UDim.new(0.05,0)
local padding = Instance.new("UIPadding",loadButton)
padding.PaddingTop = UDim.new(0.05,0)
padding.PaddingBottom = UDim.new(0.05,0)
padding.PaddingLeft = UDim.new(0.05,0)
padding.PaddingRight = UDim.new(0.05,0)
local aspect = Instance.new("UIAspectRatioConstraint",button2)
local aspect = Instance.new("UIAspectRatioConstraint",button1)
local Title2 = Instance.new("TextLabel",Main)
Title2.Size = UDim2.new(0.45,0,0.1,0)
Title2.Text = "Slot"
Title2.TextScaled = true
Title2.TextColor3 = Color3.fromRGB(177, 131, 16)
Title2.BackgroundTransparency = 1
Title2.BackgroundTransparency = 1
Title2.AnchorPoint = Vector2.new(0.5,0.5)
Title2.Font = Enum.Font.SourceSansBold
Title2.Position = UDim2.new(0.5,0,0.2675,0)
loadoutSelector:GetPropertyChangedSignal("Text"):Connect(function() loadoutSelector.Text = loadoutSelector.Text:gsub('%D+', '') end)
loadoutSelector.FocusLost:Connect(function()
local x = false
if loadoutSelector.Text == "" or tonumber(loadoutSelector.Text) <= 0 then
loadoutSelector.Text = 1
end
for i = 1,loadoutSelector.Text:len() do
if loadoutSelector.Text:sub(i,i) == "0" and loadoutSelector.Text:sub(i+1,i+1) ~= "0" and x == false then
print(i)
x = true
loadoutSelector.Text = loadoutSelector.Text:gsub("0","",i)
end
end
end)
button1.Activated:Connect(function()
loadoutSelector.Text = tostring(tonumber(loadoutSelector.Text) + 1)
end)
button2.Activated:Connect(function()
if tonumber(loadoutSelector.Text) - 1 < 1 then
loadoutSelector.Text = 1
else
loadoutSelector.Text = tostring(tonumber(loadoutSelector.Text) - 1)
end
end)
saveButton.Activated:Connect(function()
local loadout = tonumber(loadoutSelector.Text)
game.ReplicatedStorage.SaveLoadout:FireServer(loadout,PASSWORD)
game.ReplicatedStorage.ee:FireServer("save")
end)
loadButton.Activated:Connect(function()
local loadout = tonumber(loadoutSelector.Text)
game.ReplicatedStorage.LoadLoadout:FireServer(loadout,PASSWORD)
game.ReplicatedStorage.ee:FireServer("load")
end)
game.ReplicatedStorage.CropHarvestsSFX.OnClientEvent:Connect(function(x)
PASSWORD = x
end)
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS