I have a transparent brick and when it is touched by a player. I want 2 bricks which are in the workspace to move with cframe but when I try it, it does not work!
Trigger has a touch intrest in it but when I touch it the intrest goes away! Help!
I tried this.
function onTouched(hit)
script.Parent.Parent.Wall1.CFrame = script.Parent.Wall1.CFrame + Vector3.new(0,0,1)
script.Parent.Parent.Wall2.CFrame = script.Parent.Wall2.CFrame + Vector3.new(0,0,-1)
end
script.Parent.Touched:connect(onTouched)
I'm awful at scripting!

1 comment
I don't know much, but my guess is that your vector3's need to be CFrames and you need denounce within the function.