how do I make it take the changed value?
local teleport = game:GetService("TeleportService") local player = game.Players.LocalPlayer local Data = { face = script.Parent.Parent.Value.Value } script.Parent.MouseButton1Click:Connect(function() teleport:Teleport(4834144822, player, Data) end)
My code
Here's a guide:https://developer.roblox.com/en-us/api-reference/class/TeleportService
local Players = game:GetService("Players") local TeleportService = game:GetService("TeleportService") local placeId = 0 -- replace here local userId = 1 -- replace with player's userId -- find the player local player = Players:GetPlayerByUserId(userId) -- teleport the player TeleportService:Teleport(placeId, player)