Like my last one but i made a place holder brick inside the block
01 | block = script.Parent.Parent [ "Question Mark Block" ] |
02 | place = script.Parent.Parent [ "Place holder block" ] |
03 | function onTouch(hit) |
04 | game.ServerStorage [ "Question Mark Block Deactivate" ] :Clone().Parent = block.Parent |
05 | wait( 0.1 ) --here |
06 | script.Parent.Parent [ "Question Mark Block Deactivate" ] .Position = place.Position |
07 | place.Parent.Touch.Script:Destroy() |
08 | block:Destroy() |
09 | end |
10 | script.Parent.Touched:connect(onTouch) |
Ive added the path on here. http://prntscr.com/92djsx
And again im not sure why its not working. It works upto the comment "--here"
Not sure if this would work for you but try this.
01 | block = script.Parent.Parent [ "Question Mark Block" ] |
02 | place = script.Parent.Parent [ "Place holder block" ] |
03 | function onTouch(hit) |
04 | if hit.Parent:findFirstChild( "Humanoid" ) then |
05 | game.ServerStorage [ "Question Mark Block Deactivate" ] :Clone().Parent = block.Parent |
06 | wait( 0.1 ) --here |
07 | script.Parent.Parent [ "Question Mark Block Deactivate" ] .Position = place.Position |
08 | place.Parent.Touch.Script:Destroy() |
09 | block:Destroy() |
10 | end |
11 | end |
12 | script.Parent.Touched:connect(onTouch) |
I did this quickly and I didn't test it on studio so yea.