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

Basic script doesn't work in Play mode?

Asked by 10 years ago

Whenever I go to Play Solo mode, the script works, but when I click Play, it doesn't work. Why?

H = game.Workspace.Door

function onTouch(Door)
H.Transparency = 0.5
H.CanCollide = false
wait(5)
H.Transparency = 0
H.CanCollide = true
end

script.Parent.Touched:connect(onTouch)

2 answers

Log in to vote
0
Answered by 10 years ago

Hmm....try adding

wait()

at the top. I've heard that with certain scripts, you need the wait function for some reason.

Ad
Log in to vote
-4
Answered by
Prioxis 673 Moderation Voter
10 years ago

Don't do play solo only do Play, Scripts don't work in play solo

Answer this question