I'm making a game that has to do with generating blocks around the map and I am currently working on a script to accomplish that, but the script I'm making isnt working.
print("Started")
workspace.StartingChunk.Transparency = 1
script.Parent.Touched:Connect(function()
-- Chunk gen engine
if workspace.StartingChunk.Value.Value == false then
workspace.StartingChunk.Value.Value = true
local clone1 = workspace.StartingChunk:Clone()
clone1.Transparency = 1
clone1.Name = "ChunkMark1"
clone1.CFrame = CFrame.new(clone1.Position.X, clone1.Position.Y, clone1.Position.Z + 63.86?)
clone1.Parent = workspace
end
end)
Basically, when I am the chunk I start at I generate a bunch of other chunks around me. It clones the part StartingChunk and uses it as a marking point to generate a chunk. But, my script doesnt even create a chunk mark and nothing happens. No errors while editing the script but I think I did see an error in-game.
Thanks for answering if you answered.

2 comments
What is workspace.StartingChunk.Value.Value's value?
False, wouldn't set it to true if it wern't false, right?