I am making a brick and when clicked will clone a model in the workspace and place it in the designated parts position. However I need to make some changes in the way it works due to saving data and because of that I need to add a String value inside of the brick and whenever it has a value (in this example Archer Hut) it will clone and place the cloned model in that parts position. Here is the code (I checked the actual string value in workspace and it has the same value as the script needs):
while true do
wait(0.001)
if script.Parent.Building.Value == "ArcherHut" then
print("ArcherHut")
end
end

2 comments
What value is it??
It is a string value. Some more information, I am checking the value via a script and I am changing the value via a local script. Please tell me if that changes anything