So I'm using loadstring() for my game, I have enabled LoadStringEnabled.
LocalBricks.DescendantAdded:connect(function(AI)
local Attack = AI:FindFirstChild("Attack")
if Attack then
coroutine.resume(coroutine.create(function()
while wait(.3) do
loadstring(Attack.Value)()
end
end))
end
end)
LocalBricks.DescendantAdded:connect(function(AI)
local Rotate = AI:FindFirstChild("Rotate")
if Rotate then
coroutine.resume(coroutine.create(function()
while wait(.1) do
loadstring(Rotate.Value)()
end
end))
end
end)
I don't know if the code is necessary, but I'll put it here if it maybe helps.

2 comments
If this is a LocalScript, loadstring won't work. I'm also not entirely sure what you're trying to accomplish here.
Oh, it is a local script, and what do you mean by not sure what to accomplish?