i want to teleport the player to another place but it won't work
the code:
1 | local player = game:GetService( "Players" ).LocalPlayer |
2 | local TP = game:GetService( "TeleportService" ) |
3 |
4 | script.Parent.MouseButton 1 Click:Connect( function () |
5 | TP:Teleport(placeid, player) |
6 | end ) |
the placeid is the place id i have in my game not local placeid