So, I'm trying to make a door that only works once you get a key, And I'm trying to make it so whenever you grab the key, it automatically moves the script into the door so you can click to open it. It didn't work though
script.Keyholescript:Clone().Parent=game.Workspace.Keyhole.ClickDetector
Any advice? Thanks

4 comments
Sadly its not a tool, its a model that dissapears when u press it
just keep the script in the door, then disable it. whenever the player gets the card, enable it.
Tried that, It enabled it when I got the key, but the script didnt work. But if i started with it enabled, it would work just fine.
and i tried to change the parent property via script and it just doesnt work, it puts it in the clickdetector but doesnt execute