When I make my scripts they all seem to need me to disable then enable then in the explorer properties thing please help. Even if I do what I would consider a good code it still does it like this one I made.
local brick = game.Workspace.Brick
function onTouch(part)
brick.Transparency = 1
wait(1)
brick.Transparency = 0
end
brick.Touched:connect(onTouch)

2 comments
What do you mean by the world is being simulated?
If the world is not being simulated then it is paused and no code is running. You think you're editing the code that is running, but you can't do that. The code is read and the read code is run. You're changing the code that gets read after it already has been read, so you have to tell it to read it again.