Ok so I have this code which is meant to edit multiple values inside of multiple models. Im not getting any errors.
This is my code it is a normal script inside of a part in workspace.
function onTouched(part)
if part.Parent:findFirstChild("Humanoid")~=nil then
local map = script.Parent.Parent.Parent
local waves = map.Waves
print (waves)
local Wave1 = waves.Wave1:GetDescendants()
print (Wave1)
Wave1.Anchored = false
Wave1.Transparency = 0
Wave1.Anchored = false
Wave1.Transparency = 0
Wave1.Anchored = false
Wave1.Transparency = 0
wait (3)
end
end
script.Parent.Touched:connect(onTouched)
Note: The code changes the values multiple times I just added that to make sure that it wasnt the issue which it wasnt.
Is there a better way I can do this or do I have to make edits to my code? Any help is much appreciated!
