Answers for "How to teleport a player to a brick in roblox"

1

teleport brick script roblox

place = CFrame.new(0,0,0) -- Where you want the player to go on touched
script.Parent.Touched:connect(function(p)--Creating the function
local humanoid = p.Parent:findFirstChild("Humanoid")--Trying to find the humanoid
if (humanoid ~= nil) then -- Checking if what touched it IS a player.
humanoid.HumanoidRootPart.CFrame = place -- Moves the torso to what is specified in the place variable
end
end)--Ending the fuction, if you see on the function line above there is an unclosed parenthesis that I am closing here.
Posted by: Guest on October-12-2020

Code answers related to "How to teleport a player to a brick in roblox"

Browse Popular Code Answers by Language