So basically I’m new to coding, and I’m trying to make a system where a local script detects a model in workspace.camera and then selects a part in the model I want to edit. But the problem is the models name is based off tools in the players backpack, and the name of the model changes to the name of the tool equipped by the player at the time.
*edit sorry, “insert model name here” is suppose to be “ArmaClient”
“ArmaClient” is the name of the tool currently equipped by the player, I then tried to use the variable “Toolname” as it contains the name of the model to try and find the model in “workspace.camera” but instead of using the variables value as a name, it actually tries to find a object named “Toolname” in workspace.camera.
I looked everywhere but I cant seen to find a person with the same problem as me, this could also be a very simple error but I’m not that experienced with Lua to figure this out, please help me out.