-- KD Teleport GUI local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Création du ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "KDTPGui" screenGui.ResetOnSpawn = false screenGui.Parent = PlayerGui -- Frame principal (déplaçable) local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 50) frame.Position = UDim2.new(0, 50, 0, 100) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 40) frame.BorderSizePixel = 0 frame.Parent = screenGui frame.Active = true frame.Draggable = true -- Titre local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -10, 0, 20) title.Position = UDim2.new(0, 5, 0, 5) title.BackgroundTransparency = 1 title.Text = "KD TP GUI" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.SourceSansBold title.TextScaled = true title.Parent = frame -- Bouton pour TP local tpButton = Instance.new("TextButton") tpButton.Size = UDim2.new(0, 180, 0, 25) tpButton.Position = UDim2.new(0, 10, 0, 25) tpButton.Text = "TP aux coordonnées TP" tpButton.BackgroundColor3 = Color3.fromRGB(70, 130, 180) tpButton.TextColor3 = Color3.fromRGB(255, 255, 255) tpButton.Font = Enum.Font.SourceSansBold tpButton.TextSize = 16 tpButton.Parent = frame -- Fonction de TP tpButton.MouseButton1Click:Connect(function() local char = LocalPlayer.Character if char and char:FindFirstChild("HumanoidRootPart") then char.HumanoidRootPart.CFrame = CFrame.new(-191.3, 600.6, 46.6) end end) -- Bouton Masquer / Afficher le GUI local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 25, 0, 25) toggleButton.Position = UDim2.new(1, -30, 0, 5) toggleButton.Text = "-" toggleButton.BackgroundColor3 = Color3.fromRGB(180, 70, 70) toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.Font = Enum.Font.SourceSansBold toggleButton.TextSize = 18 toggleButton.Parent = frame toggleButton.MouseButton1Click:Connect(function() frame.Visible = not frame.Visible end)