1	move = script.Parent.Parent.ham -- name that variable whatever you want
2	function onTouched(hit)
3	move.CFrame = CFrame.new(0,0,1)
4	end
5	script.Parent.Touched:connect(onTouched)

Firstly I found this script on this website but there are a few problems:

Also I want the brick that was touched to move down one block (So -1 on the Y axis)

Next I want to make the block that moved return to its original position

Then I want 30 seconds later for the block to go back up and the 'trap' is able to be 'armed' again, so it can the process can happen again, should another person step on the block.

Bear in mind I am a beginner scripter (Hence the reason I am on this website, because I require help) and can't handle too well with complicated codes, the one above is fine.

Thank you in advance.

3 comments

0

Sorry the code up at the top glitched out slightly

0

If you put it in Code Block, it would be easier to read

0

Fixed