My local script does not work
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Visible = false
then
local TeleportService = game:GetService("TeleportService")
local Place = 9046212678
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
TeleportService:Teleport(Place, player)
then
local frame = script.Parent.Parent.Info
local open = false
script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
end)
end)
end)
end)

3 comments
It does not work
Please be more specific - how exactly does it not work? Are there errors in the output?
The script does nothing for some reason.