Hello! I've been working on a game and I cant figure out this problem with my lua code, I have tried to fix the code but I couldn't fix line 7. Heres the script:
blocks={} seed=math.random(1,10000)/10001 local pos local function makeblock(pos,block) table.insert(blocks,pos.X,{}) table.insert(blocks[pos.X],pos.Y,{}) table.insert(blocks[pos.X][pos.Y],pos.Z,{pos,Vector3.new(pos.X*2.5,pos.Y,pos.Z*2.5),block}) end for i = 1,100 do for z = 1,100 do height = math.noise(i,z,seed)*30 heightfit = math.floor(height/2.5)*2.5 _=makeblock(Vector3.new(i,heightfit,z),"Stone") wait() end end spawn(function() while wait(3) do game.ReplicatedStorage.RemoteEvent:FireAllClients(blocks) end end)
At the end of the seventh line, you finished it with a comma so replace the comma with a parenthesis.