Ive opened up the console and it says player is a nil value but it works in roblox studio help? My script only works in a script not local. Here it is
wait(1)
player = game.Players.LocalPlayer
button = script.Parent
local debounce = false
function teleport() if not debounce then
debounce = true torso = player.Character.Torso torso.CFrame = game.Workspace.plswork.CFrame end
end
local allow = ( game.CreatorId == player.userId
) if allow then
m = Instance.new("Message", game.Workspace)
m.Text = "Welcome Admins"
wait(2)
m:Remove()
teleport() end
Heres a link that might help. ;) https://scriptinghelpers.org/blog/it-works-in-studio-but-not-online