Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- -- Создаем ScreenGui с красивым дизайном
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "TeleportGUI"
- screenGui.Parent = game:GetService("CoreGui")
- -- Основной фрейм с закругленными углами и тенью
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 320, 0, 220)
- frame.Position = UDim2.new(0.5, -160, 0.5, -110)
- frame.AnchorPoint = Vector2.new(0.5, 0.5)
- frame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- frame.BorderSizePixel = 0
- frame.Parent = screenGui
- -- Закругление углов
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 8)
- corner.Parent = frame
- -- Тень
- local shadow = Instance.new("ImageLabel")
- shadow.Name = "Shadow"
- shadow.Size = UDim2.new(1, 10, 1, 10)
- shadow.Position = UDim2.new(0, -5, 0, -5)
- shadow.BackgroundTransparency = 1
- shadow.Image = "rbxassetid://1316045217"
- shadow.ImageColor3 = Color3.new(0, 0, 0)
- shadow.ImageTransparency = 0.8
- shadow.ScaleType = Enum.ScaleType.Slice
- shadow.SliceCenter = Rect.new(10, 10, 118, 118)
- shadow.Parent = frame
- -- Заголовок с градиентом
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 0, 40)
- title.Position = UDim2.new(0, 0, 0, 0)
- title.BackgroundColor3 = Color3.fromRGB(45, 45, 60)
- title.Text = "Телепортатор"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.Font = Enum.Font.GothamBold
- title.TextSize = 20
- title.Parent = frame
- -- Закругление углов заголовка
- local titleCorner = Instance.new("UICorner")
- titleCorner.CornerRadius = UDim.new(0, 8)
- titleCorner.Parent = title
- -- Градиент для заголовка
- local gradient = Instance.new("UIGradient")
- gradient.Color = ColorSequence.new({
- ColorSequenceKeypoint.new(0, Color3.fromRGB(80, 120, 200)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(100, 140, 220))
- })
- gradient.Rotation = 90
- gradient.Parent = title
- -- Текст с информацией о телепортации
- local coordsLabel = Instance.new("TextLabel")
- coordsLabel.Size = UDim2.new(1, -20, 0, 80)
- coordsLabel.Position = UDim2.new(0, 10, 0, 50)
- coordsLabel.BackgroundTransparency = 1
- coordsLabel.Text = "Тп на безопасное место\n\nКоординаты:\nX: -89.83 Y: 509.832 Z: 1520.155"
- coordsLabel.TextColor3 = Color3.fromRGB(220, 220, 255)
- coordsLabel.Font = Enum.Font.Gotham
- coordsLabel.TextSize = 16
- coordsLabel.TextXAlignment = Enum.TextXAlignment.Left
- coordsLabel.TextYAlignment = Enum.TextYAlignment.Top
- coordsLabel.Parent = frame
- -- Иконка безопасного места
- local safeIcon = Instance.new("ImageLabel")
- safeIcon.Size = UDim2.new(0, 40, 0, 40)
- safeIcon.Position = UDim2.new(1, -50, 0, 55)
- safeIcon.BackgroundTransparency = 1
- safeIcon.Image = "rbxassetid://3944680095" -- Иконка щита (можно заменить на другую)
- safeIcon.ImageColor3 = Color3.fromRGB(100, 200, 100)
- safeIcon.Parent = frame
- -- Кнопка телепортации с анимацией
- local teleportButton = Instance.new("TextButton")
- teleportButton.Size = UDim2.new(0.8, 0, 0, 45)
- teleportButton.Position = UDim2.new(0.1, 0, 0.75, 0)
- teleportButton.BackgroundColor3 = Color3.fromRGB(80, 160, 80)
- teleportButton.Text = "ТЕЛЕПОРТИРОВАТЬСЯ"
- teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- teleportButton.Font = Enum.Font.GothamBold
- teleportButton.TextSize = 18
- teleportButton.AutoButtonColor = false
- teleportButton.Parent = frame
- -- Закругление кнопки
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 6)
- buttonCorner.Parent = teleportButton
- -- Анимация кнопки при наведении
- teleportButton.MouseEnter:Connect(function()
- TweenService:Create(teleportButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(100, 180, 100)}):Play()
- end)
- teleportButton.MouseLeave:Connect(function()
- TweenService:Create(teleportButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(80, 160, 80)}):Play()
- end)
- -- Функция телепортации с эффектом
- teleportButton.MouseButton1Click:Connect(function()
- if character and character:FindFirstChild("HumanoidRootPart") then
- -- Анимация нажатия
- TweenService:Create(teleportButton, TweenInfo.new(0.1), {Size = UDim2.new(0.75, 0, 0, 40)}):Play()
- wait(0.1)
- TweenService:Create(teleportButton, TweenInfo.new(0.1), {Size = UDim2.new(0.8, 0, 0, 45)}):Play()
- -- Телепортация
- character.HumanoidRootPart.CFrame = CFrame.new(-89.83, 509.832, 1520.155)
- -- Эффект подтверждения
- teleportButton.Text = "УСПЕШНО!"
- TweenService:Create(teleportButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(100, 200, 100)}):Play()
- wait(1)
- teleportButton.Text = "ТЕЛЕПОРТИРОВАТЬСЯ"
- TweenService:Create(teleportButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(80, 160, 80)}):Play()
- else
- teleportButton.Text = "ОШИБКА!"
- TweenService:Create(teleportButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(200, 80, 80)}):Play()
- wait(1)
- teleportButton.Text = "ТЕЛЕПОРТИРОВАТЬСЯ"
- TweenService:Create(teleportButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(80, 160, 80)}):Play()
- end
- end)
- -- Кнопка закрытия с анимацией
- local closeButton = Instance.new("TextButton")
- closeButton.Size = UDim2.new(0, 30, 0, 30)
- closeButton.Position = UDim2.new(1, -35, 0, 5)
- closeButton.BackgroundColor3 = Color3.fromRGB(200, 70, 70)
- closeButton.Text = "×"
- closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- closeButton.Font = Enum.Font.GothamBold
- closeButton.TextSize = 24
- closeButton.Parent = frame
- -- Закругление кнопки закрытия
- local closeCorner = Instance.new("UICorner")
- closeCorner.CornerRadius = UDim.new(0, 15)
- closeCorner.Parent = closeButton
- -- Анимация кнопки закрытия
- closeButton.MouseEnter:Connect(function()
- TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(220, 90, 90)}):Play()
- end)
- closeButton.MouseLeave:Connect(function()
- TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(200, 70, 70)}):Play()
- end)
- -- Функционал перемещения GUI
- local dragging = false
- local dragInput, dragStart, startPos
- local function update(input)
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- title.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- title.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- closeButton.MouseButton1Click:Connect(function()
- TweenService:Create(frame, TweenInfo.new(0.2), {Size = UDim2.new(0, 0, 0, 0)}):Play()
- wait(0.2)
- screenGui:Destroy()
- end)
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local player = Players.LocalPlayer
- local mouse = player:GetMouse()
- -- Создаем основной интерфейс
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "WorldCreatorUI"
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- -- Главный фрейм
- local MainFrame = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.fromRGB(30, 35, 45)
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.3, 0, 0.3, 0)
- MainFrame.Size = UDim2.new(0, 300, 0, 350)
- MainFrame.ZIndex = 2
- -- Скругление углов
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 12)
- UICorner.Parent = MainFrame
- -- Тень для эффекта глубины
- local DropShadow = Instance.new("ImageLabel")
- DropShadow.Name = "DropShadow"
- DropShadow.Parent = MainFrame
- DropShadow.AnchorPoint = Vector2.new(0.5, 0.5)
- DropShadow.BackgroundTransparency = 1
- DropShadow.BorderSizePixel = 0
- DropShadow.Position = UDim2.new(0.5, 0, 0.5, 4)
- DropShadow.Size = UDim2.new(1, 24, 1, 24)
- DropShadow.ZIndex = 1
- DropShadow.Image = "rbxassetid://1316045217"
- DropShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
- DropShadow.ImageTransparency = 0.88
- DropShadow.ScaleType = Enum.ScaleType.Slice
- DropShadow.SliceCenter = Rect.new(10, 10, 118, 118)
- -- Заголовок
- local TitleBar = Instance.new("Frame")
- TitleBar.Name = "TitleBar"
- TitleBar.Parent = MainFrame
- TitleBar.BackgroundColor3 = Color3.fromRGB(40, 45, 60)
- TitleBar.BorderSizePixel = 0
- TitleBar.Size = UDim2.new(1, 0, 0, 40)
- TitleBar.ZIndex = 3
- local TitleCorner = Instance.new("UICorner")
- TitleCorner.CornerRadius = UDim.new(0, 12)
- TitleCorner.Parent = TitleBar
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Parent = TitleBar
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0, 15, 0, 0)
- Title.Size = UDim2.new(1, -30, 1, 0)
- Title.Font = Enum.Font.GothamBold
- Title.Text = "СОЗДАТЬ СВОЙ МИР"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 16
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Title.ZIndex = 4
- -- Кнопка закрытия
- local CloseButton = Instance.new("TextButton")
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = TitleBar
- CloseButton.AnchorPoint = Vector2.new(1, 0.5)
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 60, 60)
- CloseButton.BorderSizePixel = 0
- CloseButton.Position = UDim2.new(1, -10, 0.5, 0)
- CloseButton.Size = UDim2.new(0, 20, 0, 20)
- CloseButton.Font = Enum.Font.GothamBold
- CloseButton.Text = "×"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.TextSize = 18
- CloseButton.ZIndex = 4
- local CloseCorner = Instance.new("UICorner")
- CloseCorner.CornerRadius = UDim.new(1, 0)
- CloseCorner.Parent = CloseButton
- -- Основное содержимое
- local ContentFrame = Instance.new("Frame")
- ContentFrame.Name = "ContentFrame"
- ContentFrame.Parent = MainFrame
- ContentFrame.BackgroundTransparency = 1
- ContentFrame.Position = UDim2.new(0, 15, 0, 50)
- ContentFrame.Size = UDim2.new(1, -30, 1, -65)
- ContentFrame.ZIndex = 3
- -- Иконка
- local Icon = Instance.new("ImageLabel")
- Icon.Name = "Icon"
- Icon.Parent = ContentFrame
- Icon.AnchorPoint = Vector2.new(0.5, 0)
- Icon.BackgroundTransparency = 1
- Icon.Position = UDim2.new(0.5, 0, 0, 0)
- Icon.Size = UDim2.new(0, 100, 0, 100)
- Icon.Image = "rbxassetid://7072718362" -- Можно заменить на свою иконку
- Icon.ZIndex = 3
- -- Описание
- local Description = Instance.new("TextLabel")
- Description.Name = "Description"
- Description.Parent = ContentFrame
- Description.BackgroundTransparency = 1
- Description.Position = UDim2.new(0, 0, 0, 110)
- Description.Size = UDim2.new(1, 0, 0, 60)
- Description.Font = Enum.Font.Gotham
- Description.Text = "Создайте уникальный мир с помощью этого инструмента. Нажмите кнопку ниже, чтобы начать!"
- Description.TextColor3 = Color3.fromRGB(200, 200, 210)
- Description.TextSize = 14
- Description.TextWrapped = true
- Description.ZIndex = 3
- -- Главная кнопка
- local MainButton = Instance.new("TextButton")
- MainButton.Name = "MainButton"
- MainButton.Parent = ContentFrame
- MainButton.AnchorPoint = Vector2.new(0.5, 1)
- MainButton.BackgroundColor3 = Color3.fromRGB(80, 120, 200)
- MainButton.BorderSizePixel = 0
- MainButton.Position = UDim2.new(0.5, 0, 1, 0)
- MainButton.Size = UDim2.new(1, 0, 0, 40)
- MainButton.Font = Enum.Font.GothamBold
- MainButton.Text = "СОЗДАТЬ МИР"
- MainButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- MainButton.TextSize = 14
- MainButton.ZIndex = 3
- local ButtonCorner = Instance.new("UICorner")
- ButtonCorner.CornerRadius = UDim.new(0, 8)
- ButtonCorner.Parent = MainButton
- -- Анимация при наведении
- MainButton.MouseEnter:Connect(function()
- TweenService:Create(
- MainButton,
- TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundColor3 = Color3.fromRGB(100, 140, 220)}
- ):Play()
- end)
- MainButton.MouseLeave:Connect(function()
- TweenService:Create(
- MainButton,
- TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundColor3 = Color3.fromRGB(80, 120, 200)}
- ):Play()
- end)
- -- Функционал кнопки
- MainButton.MouseButton1Click:Connect(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/Y0QJjskj'))()
- -- Анимация нажатия
- TweenService:Create(
- MainButton,
- TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundColor3 = Color3.fromRGB(60, 100, 180)}
- ):Play()
- wait(0.1)
- TweenService:Create(
- MainButton,
- TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {BackgroundColor3 = Color3.fromRGB(80, 120, 200)}
- ):Play()
- -- Временное изменение текста
- local originalText = MainButton.Text
- MainButton.Text = "МИР СОЗДАЕТСЯ..."
- wait(2)
- MainButton.Text = originalText
- end)
- -- Закрытие интерфейса
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- -- Функционал перемещения
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- TitleBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- TitleBar.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- local player = game.Players.LocalPlayer
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- -- Ожидаем загрузку персонажа
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local savedPosition = nil
- local dragging = false
- local dragOffset = Vector2.new(0, 0)
- -- Создаем красивый интерфейс
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "TeleportUI"
- screenGui.ResetOnSpawn = false
- local mainFrame = Instance.new("Frame")
- mainFrame.Name = "MainFrame"
- mainFrame.Size = UDim2.new(0, 250, 0, 180)
- mainFrame.Position = UDim2.new(0.5, -125, 0.5, -90)
- mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- mainFrame.BackgroundTransparency = 0.2
- mainFrame.BorderSizePixel = 0
- mainFrame.ClipsDescendants = true
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 8)
- corner.Parent = mainFrame
- local titleBar = Instance.new("Frame")
- titleBar.Name = "TitleBar"
- titleBar.Size = UDim2.new(1, 0, 0, 30)
- titleBar.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
- titleBar.BorderSizePixel = 0
- local titleCorner = Instance.new("UICorner")
- titleCorner.CornerRadius = UDim.new(0, 8)
- titleCorner.Parent = titleBar
- local title = Instance.new("TextLabel")
- title.Name = "Title"
- title.Size = UDim2.new(1, -10, 1, 0)
- title.Position = UDim2.new(0, 10, 0, 0)
- title.BackgroundTransparency = 1
- title.Text = "Телепорт"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.TextXAlignment = Enum.TextXAlignment.Left
- title.Font = Enum.Font.GothamBold
- title.TextSize = 14
- local statusLabel = Instance.new("TextLabel")
- statusLabel.Name = "StatusLabel"
- statusLabel.Size = UDim2.new(1, -20, 0, 40)
- statusLabel.Position = UDim2.new(0, 10, 0, 40)
- statusLabel.BackgroundTransparency = 1
- statusLabel.Text = "Нажмите кнопку, чтобы сохранить позицию"
- statusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- statusLabel.TextXAlignment = Enum.TextXAlignment.Left
- statusLabel.Font = Enum.Font.Gotham
- statusLabel.TextSize = 12
- statusLabel.TextWrapped = true
- local teleportButton = Instance.new("TextButton")
- teleportButton.Name = "TeleportButton"
- teleportButton.Size = UDim2.new(1, -20, 0, 40)
- teleportButton.Position = UDim2.new(0, 10, 0, 90)
- teleportButton.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
- teleportButton.Text = "Сохранить позицию"
- teleportButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- teleportButton.Font = Enum.Font.GothamBold
- teleportButton.TextSize = 14
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 6)
- buttonCorner.Parent = teleportButton
- local closeButton = Instance.new("TextButton")
- closeButton.Name = "CloseButton"
- closeButton.Size = UDim2.new(0, 20, 0, 20)
- closeButton.Position = UDim2.new(1, -25, 0, 5)
- closeButton.BackgroundTransparency = 1
- closeButton.Text = "×"
- closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- closeButton.Font = Enum.Font.GothamBold
- closeButton.TextSize = 18
- -- Собираем интерфейс
- title.Parent = titleBar
- titleBar.Parent = mainFrame
- statusLabel.Parent = mainFrame
- teleportButton.Parent = mainFrame
- closeButton.Parent = mainFrame
- mainFrame.Parent = screenGui
- screenGui.Parent = player.PlayerGui
- -- Функция для обновления статуса
- local function updateStatus()
- if savedPosition then
- statusLabel.Text = string.format(
- "Позиция сохранена:\nX: %.1f, Y: %.1f, Z: %.1f\nНажмите, чтобы телепортироваться",
- savedPosition.X, savedPosition.Y, savedPosition.Z
- )
- teleportButton.Text = "Телепортироваться"
- teleportButton.BackgroundColor3 = Color3.fromRGB(0, 180, 100)
- else
- statusLabel.Text = "Позиция не сохранена\nНажмите кнопку, чтобы сохранить текущую позицию"
- teleportButton.Text = "Сохранить позицию"
- teleportButton.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
- end
- end
- -- Функция переключения телепорта
- local function toggleTeleport()
- if not savedPosition then
- -- Сохраняем текущую позицию
- savedPosition = humanoidRootPart.Position
- else
- -- Телепортируем к сохраненной позиции
- humanoidRootPart.CFrame = CFrame.new(savedPosition)
- savedPosition = nil
- end
- updateStatus()
- end
- -- Обработчики событий для перемещения окна
- titleBar.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- local mousePos = UserInputService:GetMouseLocation()
- local framePos = mainFrame.AbsolutePosition
- dragOffset = Vector2.new(mousePos.X - framePos.X, mousePos.Y - framePos.Y)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local mousePos = UserInputService:GetMouseLocation()
- mainFrame.Position = UDim2.new(
- 0, mousePos.X - dragOffset.X,
- 0, mousePos.Y - dragOffset.Y
- )
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- -- Обработчики кнопок
- teleportButton.MouseButton1Click:Connect(toggleTeleport)
- closeButton.MouseButton1Click:Connect(function()
- screenGui:Destroy()
- end)
- -- Инициализация
- updateStatus()
- -- Дополнительно: горячая клавиша (T)
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if input.KeyCode == Enum.KeyCode.T and not gameProcessed then
- toggleTeleport()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement