Pretty much the title.
For example:
part = -- lets say this is unknown, and it was defined some other place. just ignore this line
theOtherCommand = -- also unknown
My question is, how do I execute "theOtherCommand"?
To clarify, let's say
theOtherCommand = part.CanCollide = false
I wouldn't know the value though, but I still need to execute it. The value of theOtherCommand came from something that could have made the value anything. How do I execute it?
My first idea was:
function runCommand(theOtherCommand) -- yes, it was received as an argument from another function
theOtherCommand
end
That didn't work though, as it gave me an error on end that said it expected an identifier or something, so that got ruled out. What way is there, if it exists?

5 comments
That's not the issue. Let's say I didn't want to destroy it, and what I wanted to do with it was in the variable. How do I execute that?
What do you mean? Like using loadstring or something? loadstring("part:" ..command)?
Read the question now, I just edited it.
Finished edits.
Testing right now, but loadstring looks to be correct, thanks!