Touch Teleporting

kind of a simple question, i’m just asking how when you touch an object it teleports you to another object.

local objectTouched = _ --whatever object you need to touch
local objectTeleported = _ -- whatever object you want to tele to


objectTouched.Touched:Connect(function(plr)
       local char = Player.Character or Player.CharacterAdded:Wait() -- gets character
       char.HumanoidRootPart.Position = objectTeleported.Position -- teleports to part
end)

Before making a post, please search more on the forums and documentation before making a post.

2 Likes