Sorry for confusing title. I am having a mind blank and completely forgot how to reference a variable.
So this is what i want to do:
variable = part
workspace.Folder.Model.*variablehere*.item
How would i do this? This isn't my actual script, just some place holders. But i want to set the variable value using remote events from another script, which i have done, then place that into my script. Here is a more accurate representation of what i want to do:
game.ReplicatedStorage.remoteevent.OnClientEvent:Connect(function(variablename)
variable = variablename
end)
workspace.Folder.Model.*variablehere*.item
Sorry, is this confusing?
Any help would be appreciated.

1 comment
Thanks. It turns out i wasn't having a mind blank. I had tried this already, but the problem wasn't referencing the value, it was the fact that i forgot that i had changed the name of the remote event i used, therefore the value that i wanted to reference was actually nil. Thanks anyway, i accepted ur answer :)