I created a script that is supposed to clone wheat, it is in replicated storage.
Script:
print("works on line 1")
local Wheat = game.ReplicatedStorage.Farm.Wheat:Clone(); print("works on line 2")
Wheat.Parent = game.Workspace; print("works on line 3")
script:Destroy(); print("works on line 4")
print("works on line 5")
and it didnt even print on line 1, sorry about this, I never did lua in a while.
this is now how it looks like
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Farm = ReplicatedStorage:WaitForChild("Farm")
local Wheat = Farm:WaitForChild("Wheat")
local xpos = -161.75
local zpos = 48.375
local Count = 0
local Count2 = 0
local ifyethappend = true
while Count < 32 do
local WheatClone = Wheat:Clone()
WheatClone.Parent = game.Workspace
WheatClone.Name = "Wheat"
WheatClone.Position = Vector3.new(WheatClone.Position.x, WheatClone.Position.y, zpos)
while Count2 < 32 do
local WheatClone2 = WheatClone:Clone()
WheatClone2.Parent = game.Workspace
WheatClone2.Name = "Wheat"
if ifyethappend == true then
WheatClone2.Position = Vector3.new(xpos, WheatClone.Position.y, WheatClone.Position.z)
ifyethappend = false
else
WheatClone2.Position = Vector3.new(xpos, WheatClone2.Position.y, WheatClone2.Position.z)
end
xpos = xpos - 3
Count2 = Count2 + 1
if Count2 == 31 then
ifyethappend = true
end
end
xpos = -161.75
zpos = zpos - 3
Count = Count + 1
Count2 = 0
end
local Count = 0
script:Destroy()

3 comments
please answer
Any errors in the output?
nope