Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make a brick move another brick?

Asked by
Mystdar 352 Moderation Voter
10 years ago
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.

0
Sorry the code up at the top glitched out slightly Mystdar 352 — 10y
0
If you put it in Code Block, it would be easier to read Tempestatem 884 — 10y
0
Fixed Mystdar 352 — 10y

Answer this question