tarekscripter tp button shortcut
Key RequiredUniversal

tarekscripter tp button shortcut

Universal ScriptTarekscripterTarekscripter 315 views 160 executesUpdated Apr 25, 2026
Unrated
00
Lua Script•149 lines (5122 chars)
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local MinimizeBtn = Instance.new("TextButton")
local SavePosBtn = Instance.new("TextButton")
local ClearPosBtn = Instance.new("TextButton")
local ToggleShortcutBtn = Instance.new("TextButton")
local ShortcutBtn = Instance.new("TextButton")
local DeleteShortcutBtn = Instance.new("TextButton")

local TweenService = game:GetService("TweenService")
local savedPosition = nil
local player = game:GetService("Players").LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

ScreenGui.Name = "tarekscripter_Core"
ScreenGui.Parent = playerGui
ScreenGui.ResetOnSpawn = false

MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 220, 0, 210)
MainFrame.Position = UDim2.new(0.5, -110, 0.5, -105)
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.ClipsDescendants = true
MainFrame.Parent = ScreenGui

local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 8)
MainCorner.Parent = MainFrame

local MainStroke = Instance.new("UIStroke")
MainStroke.Color = Color3.fromRGB(0, 170, 255)
MainStroke.Thickness = 1.5
MainStroke.Parent = MainFrame

Title.Size = UDim2.new(1, -40, 0, 35)
Title.Position = UDim2.new(0, 10, 0, 0)
Title.Text = "tarekscripter"
Title.TextColor3 = Color3.fromRGB(0, 170, 255)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.TextSize = 16
Title.Parent = MainFrame

MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
MinimizeBtn.Position = UDim2.new(1, -35, 0, 2)
MinimizeBtn.Text = "ـ"
MinimizeBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
MinimizeBtn.Parent = MainFrame
Instance.new("UICorner", MinimizeBtn).CornerRadius = UDim.new(0, 5)

local function CreateStyledButton(btn, text, pos)
    btn.Size = UDim2.new(0, 200, 0, 30)
    btn.Position = pos
    btn.Text = text
    btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
    btn.TextColor3 = Color3.fromRGB(255, 255, 255)
    btn.Font = Enum.Font.Gotham
    btn.TextSize = 12
    btn.Parent = MainFrame
    Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
    local s = Instance.new("UIStroke", btn)
    s.Color = Color3.fromRGB(60, 60, 60)
    s.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
end

CreateStyledButton(SavePosBtn, "Save Position | حفظ الموقع", UDim2.new(0, 10, 0, 45))
CreateStyledButton(ClearPosBtn, "Clear Position | حذف الموقع", UDim2.new(0, 10, 0, 80))
CreateStyledButton(ToggleShortcutBtn, "Show Shortcut | إظهار الاختصار", UDim2.new(0, 10, 0, 115))
CreateStyledButton(DeleteShortcutBtn, "Remove Shortcut | حذف الاختصار", UDim2.new(0, 10, 0, 150))

ShortcutBtn.Size = UDim2.new(0, 40, 0, 40)
ShortcutBtn.Position = UDim2.new(0, 50, 0, 50)
ShortcutBtn.Text = "TP"
ShortcutBtn.Visible = false
ShortcutBtn.Active = true
ShortcutBtn.Draggable = true
ShortcutBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
ShortcutBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ShortcutBtn.Font = Enum.Font.GothamBold
ShortcutBtn.Parent = ScreenGui
Instance.new("UICorner", ShortcutBtn).CornerRadius = UDim.new(0, 10)
local ss = Instance.new("UIStroke", ShortcutBtn)
ss.Color = Color3.fromRGB(255, 255, 255)
ss.Thickness = 2

local minimized = false
MinimizeBtn.MouseButton1Click:Connect(function()
    minimized = not minimized
    local targetSize = minimized and UDim2.new(0, 220, 0, 35) or UDim2.new(0, 220, 0, 210)
    local info = TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
    
    if not minimized then
        SavePosBtn.Visible = true
        ClearPosBtn.Visible = true
        ToggleShortcutBtn.Visible = true
        DeleteShortcutBtn.Visible = true
    end
    
    local tween = TweenService:Create(MainFrame, info, {Size = targetSize})
    tween:Play()
    
    tween.Completed:Connect(function()
        if minimized then
            SavePosBtn.Visible = false
            ClearPosBtn.Visible = false
            ToggleShortcutBtn.Visible = false
            DeleteShortcutBtn.Visible = false
        end
    end)
end)

SavePosBtn.MouseButton1Click:Connect(function()
    local char = player.Character
    if char and char:FindFirstChild("HumanoidRootPart") then
        savedPosition = char.HumanoidRootPart.CFrame
    end
end)

ClearPosBtn.MouseButton1Click:Connect(function()
    savedPosition = nil
end)

ToggleShortcutBtn.MouseButton1Click:Connect(function()
    ShortcutBtn.Visible = true
end)

local dragStart = 0
ShortcutBtn.MouseButton1Down:Connect(function()
    dragStart = tick()
end)

ShortcutBtn.MouseButton1Up:Connect(function()
    local duration = tick() - dragStart
    if duration < 0.2 then -- إذا كانت الضغطة أقل من 0.2 ثانية تعتبر نقرة وليست سحباً
        local char = player.Character
        if char and char:FindFirstChild("HumanoidRootPart") and savedPosition then
            char.HumanoidRootPart.CFrame = savedPosition
        end
    end
end)

DeleteShortcutBtn.MouseButton1Click:Connect(function()
    ShortcutBtn.Visible = false
end)

Features & Information

create tp button shortcut Arabic & English

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts