I am a new scripter and a problem has arisen in my project. I am trying to make a one way teleporting brick. Could someone teach/help me with this? Sorry for not providing anything to work with.
Seriously, google is your friend.
This is one of the simplest pieces of code you can write. Since this is your first question, I'm giving you a break and upvoting your question.
In the future, please include the code you're working with as well as any Output and/or an explanation of what it is doing incorrectly.
local teleportFrom = workspace.Brick1 local teleportTo = workspace.Brick2 teleportFrom.Touched:connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then hit.Parent.Torso.CFrame = teleportTo.CFrame + Vector3.new(0, 3, 0) end end)