Hi. I've made a script that when the ball (which you can push around) touches the green part, it makes the obstacle course that is invisible , become visible. This is the code.
local gPart = workspace.GreenPart local sphere = workspace.Ball gPart.Touched:Connect(function(touchingPart) if touchingPart.Name == "Ball" then for i, v in ipairs(workspace.Obby:GetChildren()) do if v:IsA("Part") then v.Transparency = 0 v.CanCollide = true end end end end)
What it tells me in the output: Obby is not a valid member of Workspace " Workspace "
Not sure how this is happening, but somehow the " Obby " model disappears when I click play?
If you can help, please do. I am a beginner scripter from the Philippines, and I'm looking forward to improving and getting better.