the script is a local script inside the gui
local player = game:GetService("Players").LocalPlayer
game.Workspace.teleport.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
player.RespawnLocation = Vector3.new(game.Workspace.teleport.Position)
end
end)
but im only getting the error "Players.Gameplayer365247v2.PlayerGui.ScreenGui.speed.LocalScript:4: bad argument #3 to 'RespawnLocation' (Object expected, got Vector3)" idk what that means

1 comment
that is the same thing as i did just with longer text so it wont work, because the position holds those 3 positions