
1.5k Views
6.9k Executions
Salvar e teleportar para localizao salva
Universal Script 📌
RED_SCRIPT10K executions
9 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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"
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
0Log in to join the conversation. Login
No comments yet. Be the first!







