Im trying to make a door open upon standing on a brick. The door opens using this script:
p=game.Workspace.Part2
for i=1,29 do wait(.02) p.CFrame=p.CFrame+Vector3.new(0,0,.5) wait() end
How would I make that script only run when a different brick is touched?
I'm quite new to scripting, it's been a while since i've been a roblox so thanks for any help!

2 comments
THANKS SO MUCH!
No problem :)