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

"Customize is not a valid member of DataModel"?

Asked by 7 years ago
Edited 7 years ago

Okay, so I'm using a slightly modified version of Turbofusion's Planekit V2 (v0.1.3) and I made a nice TIE fighter from Star Wars. Everything seems to work fine, except one error that comes up twice in the output, being the one in the title.

"21:17:49.096 - Customize is not a valid member of DataModel 21:17:49.097 - Stack Begin 21:17:49.098 - Script 'Workspace.Seat.Giver', Line 4 21:17:49.098 - Stack End"

Previously I overlooked this because I had no use for weapons. Well, now I'm trying to use the machine guns, the settings for which are in the "Customize" configuration folder, which makes this error a problem now.

The portion of the script that generates this error is the part at the beginning which sets the variables. It is as follows:

local Seat = script.Parent
local PlaneTool = Seat.Plane
local PlaneMain = Seat.Parent.Parent
local Customize = PlaneMain.Customize
local Crashed = PlaneMain.Crashed
local Origin = PlaneMain.Origin
local Player = nil

Oddly, everything else works entirely fine. The tool is still given to the player, the fighter is still flyable, etc. You just can't fire. A speedy response would be appreciated. Thanks!

Edits: Here is the hierarchy of the model: https://gyazo.com/a9b5215cc955eb6cbd10c2f89f961ac4 https://gyazo.com/d6678d408e9ac817b897edc916f8c6a2

0
DataModel usually represents `game`. What is the hierarchy of PlaneMain? Shawnyg 4330 — 7y
0
That's very odd. Is there an extra space in the name? Try :WaitForChild(). Anything that can possibly destroy it? Shawnyg 4330 — 7y
0
No. I used the waitforchild and still got the same error. Once you sit in the seat, it gives another. "21:48:13.725 - Infinite yield possible on 'Workspace:WaitForChild("Customize")' 21:48:13.727 - Stack Begin 21:48:13.729 - Script 'Workspace.VTOL.VTOL.Plane.MainParts.Seat.Giver', Line 4 21:48:13.730 - Stack End" SHmods_arebad 0 — 7y
View all comments (2 more)
0
Also, sometimes it says "Plane is not a valid member of Model". This seems to be random, as it only sometimes does this. SHmods_arebad 0 — 7y
0
bump SHmods_arebad 0 — 7y

Answer this question