Teleport Brick Script Roblox

[Solved] Teleport Brick Script Roblox | Lua - Code Explorer | yomemimo.com
Question : teleport brick script roblox

Answered by : wrong-wombat-0gw53kbb2ur1

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.

Source : https://scriptinghelpers.org/questions/3676/how-to-teleport-a-player-on-brick-touch | Last Update : Mon, 19 Oct 20

Answers related to teleport brick script roblox

Code Explorer Popular Question For Lua