Ok, When you say something, this pad turns green (1020), That works. Than I inserted a Teleporter script, that worked too. THAN I inserted:
and brick.BrickColor == 1020 then
And it doesnt work.
Full script:
function onTouched(hit)
brick = game.Workspace.Transporterpad2
h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil
and brick.BrickColor == 1020 then
hit.Parent:MoveTo(brick.Position + Vector3.new(0,10,0))
end
end
script.Parent.Touched:connect(onTouched) |