Skip to content

Instantly share code, notes, and snippets.

@sergiecode
Last active December 2, 2025 21:37
Show Gist options
  • Select an option

  • Save sergiecode/e7feaffc38cfccf863e7f944584da75e to your computer and use it in GitHub Desktop.

Select an option

Save sergiecode/e7feaffc38cfccf863e7f944584da75e to your computer and use it in GitHub Desktop.
Instalaciones Necesarias y recomendadas para el curso de SQL
@gd3335456-ctrl
Copy link

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local savedPosition = nil

-- Crear el hub deslizable
local screenGui = Instance.new("ScreenGui")
local hubFrame = Instance.new("Frame")
hubFrame.Size = UDim2.new(0.3, 0, 0.5, 0)
hubFrame.Position = UDim2.new(0.7, 0, 0.25, 0)
hubFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
hubFrame.Parent = screenGui

-- Crear botones
local function createButton(name, position, callback)
local button = Instance.new("TextButton")
button.Size = UDim2.new(1, 0, 0.2, 0)
button.Position = position
button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
button.Text = name
button.Parent = hubFrame

button.MouseButton1Click:Connect(callback)

end

-- Funciones para cada opción
createButton("tp", UDim2.new(0, 0, 0, 0), function()
savedPosition = character.HumanoidRootPart.Position
print("Ubicación guardada.")
end)

createButton("tpX", UDim2.new(0, 0, 0.2, 0), function()
if savedPosition then
character.HumanoidRootPart.Position = savedPosition
print("Teletransportado a la ubicación guardada.")
else
print("No hay ubicación guardada.")
end
end)

createButton("trax", UDim2.new(0, 0, 0.4, 0), function()
-- Lógica para traspasar paredes (puedes ajustar según tu necesidad)
character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame + Vector3.new(0, 0, 10) -- Ajusta el valor según lo que necesites
print("Atravesando paredes.")
end)

createButton("GPS", UDim2.new(0, 0, 0.6, 0), function()
for _, otherPlayer in pairs(game.Players:GetPlayers()) do
if otherPlayer ~= player then
print(otherPlayer.Name .. " está en " .. tostring(otherPlayer.Character.HumanoidRootPart.Position))
end
end
end)

-- Mostrar el hub
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

@gd3335456-ctrl
Copy link

local scriptCode = [[
-- Variables globales
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local savedPosition = nil

-- Crear el hub deslizable
local screenGui = Instance.new("ScreenGui")
local hubFrame = Instance.new("Frame")
hubFrame.Size = UDim2.new(0.3, 0, 0.5, 0)
hubFrame.Position = UDim2.new(0.7, 0, 0.25, 0)
hubFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
hubFrame.Parent = screenGui

-- Crear botones
local function createButton(name, position, callback)
local button = Instance.new("TextButton")
button.Size = UDim2.new(1, 0, 0.2, 0)
button.Position = position
button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
button.Text = name
button.Parent = hubFrame

button.MouseButton1Click:Connect(callback)

end

-- Funciones para cada opción
createButton("tp", UDim2.new(0, 0, 0, 0), function()
savedPosition = character.HumanoidRootPart.Position
print("Ubicación guardada.")
end)

createButton("tpX", UDim2.new(0, 0, 0.2, 0), function()
if savedPosition then
character.HumanoidRootPart.Position = savedPosition
print("Teletransportado a la ubicación guardada.")
else
print("No hay ubicación guardada.")
end
end)

createButton("trax", UDim2.new(0, 0, 0.4, 0), function()
-- Lógica para traspasar paredes (puedes ajustar según tu necesidad)
character.HumanoidRootPart.CFrame = character.HumanoidRootPart.CFrame + Vector3.new(0, 0, 10) -- Ajusta el valor según lo que necesites
print("Atravesando paredes.")
end)

createButton("GPS", UDim2.new(0, 0, 0.6, 0), function()
for _, otherPlayer in pairs(game.Players:GetPlayers()) do
if otherPlayer ~= player then
print(otherPlayer.Name .. " está en " .. tostring(otherPlayer.Character.HumanoidRootPart.Position))
end
end
end)

-- Mostrar el hub
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
]]

-- Cargar y ejecutar el script
loadstring(scriptCode)()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment