I have tried different ways. This is the most recent:
local player = game.Players.LocalPlayer
local endingPos = Vector3.new(-17.93, .5, 360.89)
script.Parent.MouseButton1Click:Connect(function(teleport)
local inJobspot = false
function teleport(par1)
if not inJobspot then
par1.Character:MoveTo(endingPos)
inJobspot = true
end
end
end)

2 comments
What about it doesn't work? Also, post all your attempts
Two things: You should indent better, that should help with readability. Also, you should define another function outside of the function, preferably with another name.