Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

it says lap is not a valid member of datamodel, how can i fix it?

script.Parent.Parent.Lap.Changed:connect(function(lap)

1 comment

0

Please elaborate on your answer, as it will be easier for the community to answer your question correctly.

1 answer

If Lap is not a valid member of a model, then you might have messed up the path. You could also try script.Parent.Parent:WaitForChild("Lap")

Another suggestion IS TO GIVE US MORE THAN ONE LINE OF THE SCRIPT, AND MAYBE THE EXPLORER AS WELL SO WE CAN VERIFY THE PATH, SINCE THE PATH IS BASICALLY THE ENTIRE CODE WE SEE.

I hope this helps. till next time.

This discussion is preserved as it was. New answers, comments, and votes are closed.