Universal Script 📌
1.5k Views
6.9k Executions

Salvar e teleportar para localizao salva

Universal Script 📌
RED_SCRIPT
RED_SCRIPT10K executions
9 months 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

Esse script serve para salvar sua localização e teleportar nas localizações salvar (ele também tem a função de minimizar), recomendo usar executor "delta"

View Raw
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")

local player = Players.LocalPlayer

-- COLOQUE O ID DA IMAGEM AQUI
local IMAGE_ID = "rbxassetid://SEU_ID_AQUI"

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = player:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false

--------------------------------------------------
-- FUNÇÃO DE ARRASTAR 100% FUNCIONAL
--------------------------------------------------

local function MakeDraggable(frame)
	local dragging = false
	local dragStart = nil
	local startPos = nil

	frame.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 
		or input.UserInputType == Enum.UserInputType.Touch then
			
			dragging = true
			dragStart = input.Position
			startPos = frame.Position
			
			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					dragging = false
				end
			end)
		end
	end)

	frame.InputChanged:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseMovement
		or input.UserInputType == Enum.UserInputType.Touch then


Comments

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

More universal scripts

See all
Universal Script 📌
6.9k
319.0k
Bumped 4 hours ago
Script hub
29.3k
242.8k
Bumped 5 hours ago
Script hub
7.0k
101.5k
Bumped 6 hours ago

Script hub

SAGAZx Hub

Script hub
280.2k
190.0k
Bumped 6 hours ago
Key System
Script hub
412
509
Bumped 7 hours ago

Script hub

Blythe

Script hub
9.1k
57.2k
Bumped 8 hours ago
Key System