im trying to make a teleport move that tps you to a room, and back where you originally tped from, it does teleport you to the room and makes a part from where u teleported from but you cant go back
local name = character.Name
print(name)
ev1.Event:Connect(function(a)
ev2:FireServer()
hrp.CFrame = To.CFrame
end)
del2.Event:Connect(function(a)
for i, parts in pairs (workspace) do
if parts:IsA("Part") and parts.Name == name then
hrp.CFrame = parts.CFrame
end
end
end)
this is a local script inside of starter character scripts