I have no idea what's wrong with this script, it's supposed to remove the "harvest" at the time given. I made this script with a bit help from freefurbie, but it doesn't work, the harvest don't die when the time is given. Everything is the same, capitals for the harvest, everything. When it got light outside, they didn't die. Then, after they die they're supposed to regenerate at a certain time, but I don't know if that works or not since they won't die. So, anyone know what the problem is?
_________________________________________
model2 = game.Workspace.harvest
messageText = "Hide!Harvest have came!"
message = Instance.new("Message")
message.Text = messageText
backup = model:clone()
while true do
if(game.Lighting.TimeOfDay == "02:50:00") then
message.Parent = game.Workspace
wait(5) -- display regen message for 5 seconds
model3 = backup:clone()
model3.Parent = game.Workspace
model3:makeJoints()
message.Parent = nil
elseif(game.Lighting.TimeOfDay == "04:50:00") then
game.Workspace.harvest.Head:remove()
end
end |