Script not recognizing instants

Hi people of devforum, for some reason this script doesnt wanna recognize instants in workspace, “IntName” is the name of the house located in folders, and “IntGroup” is the folder group the house is located in.

image

image

3 Likes

Is the Interior Value a BoolValue?

And Where exactly is Line 35?

Yes, the Interior Value is a BoolValue

Looking at your scripts, the game may not recognize that the Variables inside the function is.

Ive tried to use it without variables, still no luck sadly

Ill check the script later, right now i sinply do not have time.

IntTP is nil, so FindFirstChild(IntName) isn’t finding anything. Also this looks like a possible (but unrelated) mistake:
image

1 Like

IntTp is defining where the house is within workspace using the arguments provided from the event, so its not really nil. The interior value thing is suppose to be there

Perhaps inside of
IntTp = game.Workspace.InteriorGroups:FindFirstChild(IntGroup):FindFirstChild(IntName),
The script cannot find TestHouse In workspace.InteriorGroups.TestHouse

You could put a print(IntName) to see what IntName is.

1 Like

Whoops I solved the issue, it turns out when firing the event (I was firing the event from the console) I was also firing my player name in the arguments :face_with_open_eyes_and_hand_over_mouth:. Thank you everyone for your help and time.