Universal Script 📌
1.6k Views
1.7k Executions

Teleport gui

Universal Script 📌
Gojo000031
Gojo00003110K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Tp gui u set where u eant to go when u click tp u go where u seted simple

View Raw
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")

local frame = script.Parent 
frame.Active = true
frame.Draggable = true 

local setBtn = frame:WaitForChild("Set")
local tpBtn = frame:WaitForChild("TP")

local savedCFrame = nil

-- Set butonu
setBtn.MouseButton1Click:Connect(function()
	savedCFrame = hrp.CFrame
	setBtn.Text = "Set ✔"
	task.wait(1)
	setBtn.Text = "Set"
end)


tpBtn.MouseButton1Click:Connect(function()
	if savedCFrame then
		hrp.CFrame = savedCFrame
	end
end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
15
3
Approved 37 minutes ago
Universal Script 📌
16
3
Approved 42 minutes ago
Universal Script 📌
4.0k
185.5k
Bumped 8 hours ago
Script hub
733
52
9 hours ago
Universal Script 📌
28.9k
674.0k
Bumped 10 hours ago
Script hub
14.1k
2.7k
Bumped 12 hours ago
Key System
Paid