In the App file I create some instances of a model, I then attach the square Lua file.
In the Lua file there is
Script.block = 0.
How can i change that value using code in the App file, or can you?
for a =1,10 do
for b =1,10 do
land = tolua.cast(land:Instance(),"Model")
land:SetScript("Scripts/Player/square.lua")
land:SetPosition(a,0,B)
land.block = land.block + 1 -- this does not do it
end end
Can someone set me straight.