Universal Script 📌
1.7k Views
2.1k 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
Script hub
11.4k
82.0k
Bumped 13 minutes ago
Key System
Universal Script 📌
31
4
Approved 43 minutes ago
Script hub
3.9k
15.1k
Bumped 45 minutes ago
Script hub
306.3k
1.1M
Bumped 2 hours ago
Key System

Script hub

#17 this month

Verified script badgeAxon Hub | 100+ Games & 3900+ Features

Script hub
2.0k
9.0k
Bumped 3 hours ago