So, I’m trying to make a unioned box containing 6 parts, and I have a script where when the box is clicked, it fades out. It works perfectly in Studio, but not in-game. I need help!
local Present = script.Parent.Parent
for i = 0, 10 do
Present.Union.Transparency = Present.Union.Transparency + 0.1
Present.Union.CanCollide = false
I would add in :WaitForChild to the local Present = script.Parent, right? Also, I found out that it works when it is in workspace, but I’m trying ot get it to be parented to workspace from server storage when I click a button, and that’s when it breaks.
i dont think you need the waitforchild for local Present = script.Parent.Parent but try putting the object in replicated storage instead and cloning it from there instead of sever storage? i dont use server storage since it sometimes bugs out when i try cloning from there.