So like, a maze somewhat, when you touch a brick you get teleported. this is all I can come up with.
function onTouch(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) player:CFrame(0, 0, 0) --That is what I'm going to use as it for now. end
Thanks! :)
You almost have it.
function onTouch(hit) if hit.Parent.Humanoid then hit.Parent.PrimaryPart.CFrame = CFrame.new(0,0,0) end end
Basically, you check to make sure that what hit you is indeed a player by making sure they have the "Humanoid" component in the correct place, then modify the main CFrame of the character model.