I mean, keeping it simple you could always do this:
local TeleportService = game:GetService("TeleportService")
script.Parent.MouseButton1Click:Connect(function()
TeleportService:Teleport(1324061305)
end)
I don’t really ever use :Teleport, instead I usually use :TeleportAsync, so I’m not 100% sure on the inner workings of :Teleport. It states that it can be called from either the server or the client, which should be working with this.
Despite this, you’ll notice on the :Teleport dev wiki page, it states TeleportAsync should be used instead. Try the following instead with a RemoteEvent.
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer(1324061305) -- place id
end)
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr, placeId)
TeleportService:TeleportAsync(placeId, {plr})
end)