local player = game.Players.LocalPlayer<br />
local TweenService = game:GetService("TweenService")<br />
local UIS = game:GetService("UserInputService")<br />
<br />
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))<br />
gui.Name = "PortalTP_UI"<br />
gui.ResetOnSpawn = false<br />
<br />
local toggle = Instance.new("TextButton", gui)<br />
toggle.Size = UDim2.new(0,120,0,30)<br />
toggle.Position = UDim2.new(0,20,0.5,-160)<br />
toggle.Text = "Abrir TP"<br />
toggle.BackgroundColor3 = Color3.fromRGB(35,35,35)<br />
toggle.TextColor3 = Color3.new(1,1,1)<br />
Instance.new("UICorner", toggle)<br />
<br />
local frame = Instance.new("Frame", gui)<br />
frame.Size = UDim2.new(0,220,0,0)<br />
frame.Position = UDim2.new(0,20,0.5,-120)<br />
frame.BackgroundColor3 = Color3.fromRGB(20,20,20)<br />
frame.BorderSizePixel = 0<br />
Instance.new("UICorner", frame)<br />
<br />
local title = Instance.new("TextLabel", frame)<br />
title.Size = UDim2.new(1,0,0,30)<br />
title.BackgroundTransparency = 1<br />
title.Text = "PORTAL TP"<br />
title.TextColor3 = Color3.new(1,1,1)<br />
title.Font = Enum.Font.GothamBold<br />
title.TextSize = 14<br />
<br />
local scroll = Instance.new("ScrollingFrame", frame)<br />
scroll.Position = UDim2.new(0,0,0,30)<br />
scroll.Size = UDim2.new(1,0,1,-30)<br />
scroll.BackgroundTransparency = 1<br />
scroll.ScrollBarThickness = 4<br />
scroll.CanvasSize = UDim2.new(0,0,0,0)<br />
<br />
local layout = Instance.new("UIListLayout", scroll)<br />
layout.Padding = UDim.new(0,5)<br />
<br />
local function tp(part)<br />
local char = player.Character or player.CharacterAdded:Wait()<br />
local hrp = char:WaitForChild("HumanoidRootPart")<br />
hrp.CFrame = part.CFrame + Vector3.new(0,5,0)<br />
end<br />
<br />
local aberto = false<br />
<br />
toggle.MouseButton1Click:Connect(function()<br />
aberto = not aberto<br />
<br />
if aberto then<br />
toggle.Text = "Fechar TP"<br />
TweenService:Create(frame, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {<br />
Size = UDim2.new(0,220,0,300)<br />
}):Play()<br />
else<br />
toggle.Text = "Abrir TP"<br />
TweenService:Create(frame, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {<br />
Size = UDim2.new(0,220,0,0)<br />
}):Play()<br />
end<br />
end)<br />
<br />
local portals = workspace:FindFirstChild("Portals")<br />
<br />
if portals then<br />
for _,p in pairs(portals:GetChildren()) do<br />
local btn = Instance.new("TextButton", scroll)<br />
btn.Size = UDim2.new(1,-10,0,30)<br />
btn.BackgroundColor3 = Color3.fromRGB(40,40,40)<br />
btn.TextColor3 = Color3.new(1,1,1)<br />
btn.Text = p.Name<br />
Instance.new("UICorner", btn)<br />
<br />
btn.MouseButton1Click:Connect(function()<br />
local part = p:FindFirstChildWhichIsA("BasePart")<br />
if part then<br />
tp(part)<br />
end<br />
end)<br />
end<br />
<br />
task.wait()<br />
scroll.CanvasSize = UDim2.new(0,0,0,layout.AbsoluteContentSize.Y + 10)<br />
end
I love it
👍
good throwing simulator script
script is legit
Too lazy to add a loadstring. still got good features.
i tested it on Xeno and its working.