Unable to cast Instance to int64

I’m trying to make a button that when clicked, teleports all the players in a game to another game. I used a RemoteEvent for this. I keep getting an error: “Unable to cast Instance to int64” line 10 on the server script.

Server script:

local player = game:GetService("Players")
local players = player:GetPlayers()

local TeleService = game:GetService("TeleportService")
local place = 6193878588


game.ReplicatedStorage.TeleportPlayers.OnServerEvent:Connect(function()
	for i,v in pairs(player:GetPlayers()) do
		TeleService:Teleport(v, place) -- Error here, line 10
	end
end)

Local script:

local TeleportButton = script.Parent.TeleportButton
local player = game.Players.LocalPlayer


if player:GetRankInGroup(8727752) >= 253 or player.UserId == 1866443684 then
	
	player.PlayerGui.BorderTeleportGui.TeleportButton.Visible = true
	
	TeleportButton.MouseButton1Click:Connect(function()
		game.ReplicatedStorage.TeleportPlayers:FireServer()
	end)
	
else
	player.PlayerGui.BorderTeleportGui.TeleportButton.Visible = false
end
1 Like

The first argument must be placeid, the secodn is the player
e.g.

TeleService:Teleport(place, v)
2 Likes