adrenyslopez
Member
- Joined
- Dec 22, 2015
- Messages
- 201
- Reaction score
- 15
Hello, someone help me, I am trying to do this scripts but I have this error when the vortexes appear, erase the floor, I want it not to erase the floor and appear above the crystal
Lua:
local function createVortex()
local positions1 = {
{x = 33749, y = 31661, z = 14},
{x = 33743, y = 31662, z = 14},
}
local positions2 = {
{x = 33747, y = 31666, z = 14},
{x = 33739, y = 31666, z = 14},
}
local positions3 = {
{x = 33751, y = 31663, z = 14},
{x = 33754, y = 31665, z = 14},
}
local positions4 = {
{x = 33751, y = 31670, z = 14},
{x = 33745, y = 31671, z = 14},
}
local tempo = 10
if vortexPositions == 0 then
for i = 1, #positions1 do
local items = Tile(Position(positions1[i])):getGround()
items:transform(37249)
addEvent(function()
items:transform(14938)
end, tempo*1000)
end
vortexPositions = 1
elseif vortexPositions == 1 then
for i = 1, #positions2 do
local items = Tile(Position(positions2[i])):getGround()
items:transform(37249)
addEvent(function()
items:transform(14938)
end, tempo*1000)
end
vortexPositions = 2
elseif vortexPositions == 2 then
for i = 1, #positions3 do
local items = Tile(Position(positions3[i])):getGround()
items:transform(37249)
addEvent(function()
items:transform(14938)
end, tempo*1000)
end
vortexPositions = 3
elseif vortexPositions == 3 then
for i = 1, #positions4 do
local items = Tile(Position(positions4[i])):getGround()
items:transform(37249)
addEvent(function()
items:transform(14938)
end, tempo*1000)
end
vortexPositions = 0
end
greedTransform = false
areagreed2 = addEvent(createVortex, tempo*1000)
end