The code is really long so I’ll just remove the things that don’t have to be put in. Here’s the local handler for the gui.
Handler.
--]]
repeat
wait()
until game.Players.LocalPlayer
wait(3)
-- Variables --
local Player = game:GetService("Players").LocalPlayer
local InformationFrame = script.Parent.InformationFrame
local FirstDismissButton = script.Parent.InformationFrame.DismissButton
local InformationOpen = false
local Mouse = Player:GetMouse()
local IsOpened = false
local LoadFrame = script.Parent.LoadFrame
local OpenButton = script.Parent.LoadFrame.OpenButton
local FirstCloseButton = script.Parent.LoadFrame.CloseButton
local MainFrame = script.Parent.MainFrame
local GreenLine = script.Parent.MainFrame.GreenLine
local FirstLabel = script.Parent.MainFrame.Label
local TweenService = game:GetService("TweenService")
local Scripthub = script.Parent.MainFrame.Scripthub
local SecondCloseButton = script.Parent.MainFrame.CloseButton
local RemoteHandler = game.ReplicatedStorage:WaitForChild("RemoteHandler")
local R6Remote = RemoteHandler.R6Remote
local RespawnRemote = RemoteHandler.RespawnRemote
-- Draggable --
MainFrame.Draggable = true
MainFrame.Active = true
MainFrame.Selectable = true
-- Scripts --
local R6Button = script.Parent.MainFrame.R6Button
local RespawnButton = script.Parent.MainFrame.REButton
local PandoraSwitcherV3 = Scripthub["Pandora Switcher V3"]
-- Remotes --
local PandoraSwitcherV3Remote = RemoteHandler.PandoraSwitcherV3Remote
-- Tweens --
local MainSlideOut = TweenService:Create(MainFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.376, 0, 0.283, 0)})
local MainSlideIn = TweenService:Create(MainFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.376, 0, 2, 0)})
local LoadSlideOut = TweenService:Create(LoadFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.84, 0, 0.834, 0)})
local LoadSlideIn = TweenService:Create(LoadFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.84, 0, 1.1, 0)})
local InformationSlideOut = TweenService:Create(InformationFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(0.84, 0, 0.551, 0)})
local InformationSlideIn = TweenService:Create(InformationFrame,TweenInfo.new(0.4, Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut),{Position = UDim2.new(1.1, 0, 0.551, 0)})
-- Loading Slide Out --
LoadSlideOut:Play()
-- Name Labels --
FirstLabel.Text = " Welcome back to Elixir Hub, ".. Player.Name .."!"
-- Mouse Functions --
OpenButton.MouseButton1Click:Connect(function()
LoadSlideIn:Play()
wait(1.5)
MainSlideOut:Play()
IsOpened = true
end)
FirstCloseButton.MouseButton1Click:Connect(function()
LoadSlideIn:Play()
wait(1.5)
end)
SecondCloseButton.MouseButton1Click:Connect(function()
MainSlideIn:Play()
wait(2)
InformationSlideOut:Play()
IsOpened = false
end)
FirstDismissButton.MouseButton1Click:Connect(function()
InformationSlideIn:Play()
end)
R6Button.MouseButton1Click:Connect(function()
R6Remote:FireServer()
end)
RespawnButton.MouseButton1Click:Connect(function()
RespawnRemote:FireServer()
end)
PandoraSwitcherV3.MouseButton1Click:Connect(function()
PandoraSwitcherV3Remote:FireServer()
end)
-- Open/Close Function --
Mouse.KeyDown:connect(function(Key)
if Key == "=" and IsOpened == false then
MainSlideOut:Play()
IsOpened = true
elseif Key == "=" and IsOpened == true then
MainSlideIn:Play()
IsOpened = false
end
end)
Here’s the RemoteHandler of the gui.
Remote Handler.
--]]
script.Parent = game.ReplicatedStorage
-- Variables --
local R6Remote = script.R6Remote
local RespawnRemote = script.RespawnRemote
local PandoraSwitcherV3Remote = script.PandoraSwitcherV3Remote
-- Variable Functions --
R6Remote.OnServerEvent:Connect(function(Player)
require()
end)
RespawnRemote.OnServerEvent:Connect(function(Player)
Player:LoadCharacter()
end)
PandoraSwitcherV3Remote.OnServerEvent:Connect(function(Player)
require()
end)