local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
-- UI Theme
local Theme = {
Background = Color3.fromRGB(20, 20, 20),
Button = Color3.fromRGB(35, 35, 35),
Text = Color3.fromRGB(255, 255, 255),
Accent = Color3.fromRGB(0, 255, 255),
ToggleOn = Color3.fromRGB(0, 200, 0),
ToggleOff = Color3.fromRGB(200, 0, 0),
TabActive = Color3.fromRGB(45, 45, 45),
TabInactive = Color3.fromRGB(30, 30, 30)
}
-- Main UI
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "SanedScriptsUI"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = player:WaitForChild("PlayerGui")
-- Main Frame
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 300, 0, 250)
MainFrame.Position = UDim2.new(0.10, 0, 0.5, -125)
MainFrame.BackgroundColor3 = Theme.Background
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Visible = true
MainFrame.ClipsDescendants = true
MainFrame.Parent = ScreenGui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 6)
UICorner.Parent = MainFrame
local UIStroke = Instance.new("UIStroke")
UIStroke.Color = Theme.Accent
UIStroke.Thickness = 1
UIStroke.Transparency = 0.7
UIStroke.Parent = MainFrame
-- Title
local Title = Instance.new("TextLabel")
Title.Name = "Title"
Title.Text = "Saned Scripts"
Title.Size = UDim2.new(1, 0, 0, 30)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.TextColor3 = Theme.Text
Title.Font = Enum.Font.GothamBold
Title.TextSize = 16
Title.Parent = MainFrame
-- Toggle Button
local ToggleButton = Instance.new("TextButton")
ToggleButton.Name = "ToggleButton"
ToggleButton.Text = "-"
ToggleButton.Size = UDim2.new(0, 25, 0, 25)
ToggleButton.Position = UDim2.new(1, -30, 0, 2)
ToggleButton.BackgroundColor3 = Theme.Button
ToggleButton.TextColor3 = Theme.Text
ToggleButton.Font = Enum.Font.GothamBold
ToggleButton.TextSize = 16
ToggleButton.Parent = MainFrame
local ToggleUICorner = Instance.new("UICorner")
ToggleUICorner.CornerRadius = UDim.new(0, 4)
ToggleUICorner.Parent = ToggleButton
ToggleButton.MouseButton1Click:Connect(function()
MainFrame.Visible = false
local ShowButton = Instance.new("TextButton")
ShowButton.Text = "Open"
ShowButton.Size = UDim2.new(0, 80, 0, 30)
ShowButton.Position = UDim2.new(0, 10, 0, 10)
ShowButton.BackgroundColor3 = Theme.Button
ShowButton.TextColor3 = Theme.Text
ShowButton.Font = Enum.Font.GothamBold
ShowButton.TextSize = 14
ShowButton.Parent = ScreenGui
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 4)
corner.Parent = ShowButton
ShowButton.MouseButton1Click:Connect(function()
MainFrame.Visible = true
ShowButton:Destroy()
end)
end)
-- Divider
local Divider = Instance.new("Frame")
Divider.Name = "Divider"
Divider.Size = UDim2.new(1, -20, 0, 1)
Divider.Position = UDim2.new(0, 10, 0, 30)
Divider.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
Divider.BorderSizePixel = 0
Divider.Parent = MainFrame
-- Tabs Container
local TabsContainer = Instance.new("Frame")
TabsContainer.Name = "TabsContainer"
TabsContainer.Size = UDim2.new(1, -20, 0, 30)
TabsContainer.Position = UDim2.new(0, 10, 0, 40)
TabsContainer.BackgroundTransparency = 1
TabsContainer.Parent = MainFrame
local TabsListLayout = Instance.new("UIListLayout")
TabsListLayout.FillDirection = Enum.FillDirection.Horizontal
TabsListLayout.Padding = UDim.new(0, 5)
TabsListLayout.Parent = TabsContainer
-- Tab Template
local function CreateTab(name)
local Tab = Instance.new("TextButton")
Tab.Name = name
Tab.Text = name
Tab.Size = UDim2.new(0.5, -5, 1, 0)
Tab.BackgroundColor3 = Theme.TabInactive
Tab.TextColor3 = Theme.Text
Tab.Font = Enum.Font.Gotham
Tab.TextSize = 14
Tab.AutoButtonColor = false
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 4)
UICorner.Parent = Tab
local ButtonStroke = Instance.new("UIStroke")
ButtonStroke.Color = Theme.Accent
ButtonStroke.Thickness = 1
ButtonStroke.Transparency = 0.8
ButtonStroke.Parent = Tab
Tab.MouseEnter:Connect(function()
if Tab.BackgroundColor3 ~= Theme.TabActive then
TweenService:Create(ButtonStroke, TweenInfo.new(0.2), {Transparency =
0.4}):Play()
TweenService:Create(Tab, TweenInfo.new(0.2), {BackgroundColor3 =
Color3.fromRGB(40, 40, 40)}):Play()
end
end)
Tab.MouseLeave:Connect(function()
if Tab.BackgroundColor3 ~= Theme.TabActive then
TweenService:Create(ButtonStroke, TweenInfo.new(0.2), {Transparency =
0.8}):Play()
TweenService:Create(Tab, TweenInfo.new(0.2), {BackgroundColor3 =
Theme.TabInactive}):Play()
end
end)
Tab.MouseButton1Down:Connect(function()
TweenService:Create(Tab, TweenInfo.new(0.1), {Size = UDim2.new(0.5, -5,
0.95, 0)}):Play()
end)
Tab.MouseButton1Up:Connect(function()
TweenService:Create(Tab, TweenInfo.new(0.1), {Size = UDim2.new(0.5, -5, 1,
0)}):Play()
end)
return Tab
end
-- Create New Tabs
local TeleportStructureTab = CreateTab("Teleport Structure")
local TeleportTownTab = CreateTab("Teleport Town")
TeleportStructureTab.Parent = TabsContainer
TeleportTownTab.Parent = TabsContainer
-- Scrollable Containers
local function CreateScrollContainer(name)
local Scroll = Instance.new("ScrollingFrame")
Scroll.Name = name
Scroll.Size = UDim2.new(1, -20, 0, 180)
Scroll.Position = UDim2.new(0, 10, 0, 80)
Scroll.BackgroundTransparency = 1
Scroll.BorderSizePixel = 0
Scroll.CanvasSize = UDim2.new(0, 0, 0, 0)
Scroll.ScrollBarThickness = 4
Scroll.ScrollingDirection = Enum.ScrollingDirection.Y
Scroll.AutomaticCanvasSize = Enum.AutomaticSize.Y
Scroll.Visible = false
local Layout = Instance.new("UIListLayout")
Layout.Padding = UDim.new(0, 8)
Layout.Parent = Scroll
return Scroll
end
local TeleportStructureContainer =
CreateScrollContainer("TeleportStructureContainer")
TeleportStructureContainer.Visible = true
TeleportStructureContainer.Parent = MainFrame
local TeleportTownContainer = CreateScrollContainer("TeleportTownContainer")
TeleportTownContainer.Visible = false
TeleportTownContainer.Parent = MainFrame
-- Button Template
local function CreateButton(text, callback)
local Button = Instance.new("TextButton")
Button.Name = text
Button.Text = text
Button.Size = UDim2.new(1, 0, 0, 32)
Button.BackgroundColor3 = Theme.Button
Button.TextColor3 = Theme.Text
Button.Font = Enum.Font.Gotham
Button.TextSize = 14
Button.AutoButtonColor = false
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 4)
UICorner.Parent = Button
local ButtonStroke = Instance.new("UIStroke")
ButtonStroke.Color = Theme.Accent
ButtonStroke.Thickness = 1
ButtonStroke.Transparency = 0.8
ButtonStroke.Parent = Button
Button.MouseEnter:Connect(function()
TweenService:Create(ButtonStroke, TweenInfo.new(0.2), {Transparency =
0.4}):Play()
TweenService:Create(Button, TweenInfo.new(0.2), {BackgroundColor3 =
Color3.fromRGB(45, 45, 45)}):Play()
end)
Button.MouseLeave:Connect(function()
TweenService:Create(ButtonStroke, TweenInfo.new(0.2), {Transparency =
0.8}):Play()
TweenService:Create(Button, TweenInfo.new(0.2), {BackgroundColor3 =
Theme.Button}):Play()
end)
Button.MouseButton1Down:Connect(function()
TweenService:Create(Button, TweenInfo.new(0.1), {Size = UDim2.new(0.98, 0,
0, 30)}):Play()
end)
Button.MouseButton1Up:Connect(function()
TweenService:Create(Button, TweenInfo.new(0.1), {Size = UDim2.new(1, 0, 0,
32)}):Play()
end)
Button.MouseButton1Click:Connect(function()
callback()
end)
return Button
end
-- Structure Teleport Functions
local function TeleportToTrain()
-- Function Here Nigga
end
local function TeleportToEnd()
-- Function Here Nigga
end
local function TeleportToCastle()
-- Function Here Nigga
end
local function TeleportToFort()
-- Function Here Nigga
end
local function TeleportToTeslaLab()
-- Function Here Nigga
end
local function TeleportToBarn()
-- Function Here Nigga
end
-- Town Teleport Functions
local function TeleportToTown1()
-- Function Here Nigga
end
local function TeleportToTown2()
-- Function Here Nigga
end
local function TeleportToTown3()
-- Function Here Nigga
end
local function TeleportToTown4()
-- Function Here Nigga
end
local function TeleportToTown5()
-- Function Here Nigga
end
local function TeleportToTown6()
-- Function Here Nigga
end
local function TeleportToTown7()
-- Function Here Nigga
end
local function TeleportToTown8()
-- Function Here Nigga
end
-- Structure Tab Buttons
CreateButton("Tp to train (dont move the train)", TeleportToTrain).Parent =
TeleportStructureContainer
CreateButton("Tp to end", TeleportToEnd).Parent = TeleportStructureContainer
CreateButton("Tp to castle", TeleportToCastle).Parent = TeleportStructureContainer
CreateButton("Tp to fort", TeleportToFort).Parent = TeleportStructureContainer
CreateButton("Tp to Tesla lab", TeleportToTeslaLab).Parent =
TeleportStructureContainer
CreateButton("Tp to barn", TeleportToBarn).Parent = TeleportStructureContainer
-- Town Tab Buttons
CreateButton("Town 1", TeleportToTown1).Parent = TeleportTownContainer
CreateButton("Town 2", TeleportToTown2).Parent = TeleportTownContainer
CreateButton("Town 3", TeleportToTown3).Parent = TeleportTownContainer
CreateButton("Town 4", TeleportToTown4).Parent = TeleportTownContainer
CreateButton("Town 5", TeleportToTown5).Parent = TeleportTownContainer
CreateButton("Town 6", TeleportToTown6).Parent = TeleportTownContainer
CreateButton("Town 7", TeleportToTown7).Parent = TeleportTownContainer
CreateButton("Town 8", TeleportToTown8).Parent = TeleportTownContainer
-- Tab Switching
TeleportStructureTab.MouseButton1Click:Connect(function()
TweenService:Create(TeleportStructureTab, TweenInfo.new(0.2), {BackgroundColor3
= Theme.TabActive}):Play()
TweenService:Create(TeleportTownTab, TweenInfo.new(0.2), {BackgroundColor3 =
Theme.TabInactive}):Play()
TeleportStructureContainer.Visible = true
TeleportTownContainer.Visible = false
end)
TeleportTownTab.MouseButton1Click:Connect(function()
TweenService:Create(TeleportTownTab, TweenInfo.new(0.2), {BackgroundColor3 =
Theme.TabActive}):Play()
TweenService:Create(TeleportStructureTab, TweenInfo.new(0.2), {BackgroundColor3
= Theme.TabInactive}):Play()
TeleportStructureContainer.Visible = false
TeleportTownContainer.Visible = true
end)
-- Default tab
TeleportStructureTab.BackgroundColor3 = Theme.TabActive
-- Keybind to toggle UI
UIS.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.RightControl then
MainFrame.Visible = not MainFrame.Visible
end
end)