Alright, so far in making a tycoon from scratch I have had good luck with finding out code (as it is my first time coding) but I cannot seem to find the command to put in a script that will spawn a block in a certain location, here is a snippet of that I have so far:
function onClicked(playerWhoClicked)
script.Parent.BrickColor = BrickColor.Red()
local points = playerWhoClicked.leaderstats.Copper
points.Value = points.Value-1 --If I knew the command I would put it below this comand
wait(1) --Time it takes to cross conveyor
local points = playerWhoClicked.leaderstats.Money
points.Value = points.Value+5
wait(4)
script.Parent.BrickColor = BrickColor.Green()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Sorry my question is so simple I couldn't find it anywhere else and I am not giving up on making my fist code without any free models! So please if you know the command and how to implement it please let me know!
