Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Dissapeaering Tree that reapears?

Asked by 10 years ago

local clock = 0

function giveApple()

for i=1, 2 do

local apple = game.Lighting.Apple:clone()

apple.Parent = plr.Backpack

end

end

giveApple()

while wait(1) do

clock = clock + 1

if clock == 300 then

giveApple()

clock = 0

end

end

I don't actually know how to do this but when the tree is clicked and someone gets an apple off of it, the tree dissapears then reappears after about 150 seconds. Anyone know how to do that?

0
You WANT it to disappear and re-appear, or does it already? (Assuming you have another script, if so). Also, please enclose the code in the code-bracket (by clickin the Lua-symbol in the editor) - makes it a lot easier for us to sort the code from the rest. Ravenshield 180 — 10y
0
i WANT it to but i cant figure out how FastSnail5 8 — 10y

Answer this question