Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Please help me with this error?

Asked by 8 years ago

Okay, so the error says:

-- Configuration is not a valid member of VehicleSeat -- Script 'Workspace.WealthyDrakor.Seat.Script'.Line 5 -- Stack End

Configuration is a folder that IS INSIDE the VehicleSeat

This is line 5 of the script:

local data=script.Parent.Configuration

0
Is it spelt right? If not, can you post you ENTIRE code? TheHospitalDev 1134 — 8y

1 answer

Log in to vote
3
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
8 years ago

Most likely, the Script is running before the VehicleSeat has been fully initialized/replicated.

See if this code fixes it for that line:

local data = script.Parent:WaitForChild("Configuration")
Ad

Answer this question