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

onTouch script not working?

Asked by 8 years ago

Ive got this script, so when you hit a block, it disapears and gets replaced by another block, but its not working.

block = script.Parent.Parent["Question Mark Block"]
function onTouch(hit) 
    workspace.ServerStorage["Question Mark Block Deactivate"]:Clone().Parent = block.Parent
    wait(0.1)
    script.Parent.Parent["Question Mark Block Deactivate"].Position = block.Postion
    wait(0.1)
    block:Destroy()
end
script.Parent.Touched:connect(onTouch)

My script so far

These are links to my Explorer image: http://prntscr.com/92d0yu http://prntscr.com/92d1ac

So the question is why isnt it working :(

Answer this question