Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Basic script doesn't work in Play mode?

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

Hmm....try adding

wait()

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.