Struggling in many hours and can't figure it out? :(
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
01 | local type = script.Parent.Parent.Name |
02 | type = type :sub(# type - 1 ,# type ) |
07 | ID = game:GetService( "ServerScriptService" ).DOL.LicenseSender:Invoke( type ) |
08 | if type :sub( 1 , 1 ) = = " " then |
11 | for _,p in pairs (script.Parent:GetChildren()) do |
12 | if p.Name = = "Plate" then |
13 | g = p:FindFirstChild( type ) |
14 | p.BrickColor = g.Color.Value |
17 | for _,i in pairs (p:GetChildren()) do |
18 | if i:IsA( "SurfaceGui" ) and i.Name ~ = type then |
The Error,
22:25:20.815 - Workspace.Sports Car-PD.Body.License Plates:14: attempt to index global 'g' (a nil value)
22:25:20.817 - Stack Begin
22:25:20.819 - Script 'Workspace.Sports Car-PD.Body.License Plates', Line 14
22:25:20.820 - Stack End