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

Ancestry Changed only works in Local Script?

Asked by 5 years ago

Okay so, when I placed a Local Script in a custom "tool" folder with the following code:

script.Parent.AncestryChanged:Connect(function()
    print ("Ancestry Changed")
end)

I then moved the folder into the player's model, and it did notice the change and printed the text.

HOWEVER, when I did the same to a normal Script with the same code, 100% matching, also in the folder. When I moved the folder into the player's model, IT DID NOT EXECUTE! Is this normal? If so, what is the work around or what a I doing wrong?

0
Assuming that it was done locally, it fired at first. If the ancestry is changed while the game is running, a server script can then fire the event. DeceptiveCaster 3761 — 5y
0
OOOH Thank you so much, I forgot about that. Aneither 20 — 5y

Answer this question