im trying to make it that when a player touches a brick they get teleported from where they are upwards but its not working
script.Parent.Touched:connect(function(t)
if t.Parent.Humanoid ~= nil then
t.Parent.HumanoidRootPart.CFrame = t.Parent.HumanoidRootPart.CFrame.new(0,20,0)
end
end)
