So I have a Part that when it is Touched it Clones a Folder with a LocalScript in it into the Player's PlayerGui. To make the function in the LocalScript fire when it is copied, I had an event listener wait for its parent to be changed.
An equivelent example:
function PrintHello()
print("Hello")
end
script.Changed:connect(PrintHello)
--note that in my actual script it is actually script.Parent.Changed since the LocalScript is in a folder. Also, my function does more than print.
This worked fine when I tested it in Studio, but when I started a server the function for some reason does not fire (the folder is cloned in fine, though.)
Does anyone know why this is?

2 comments
From how I'm looking at the function; It does not have an 'end' to end the chunk.
Sorry, fixed. My real script does end too.