|
a script that makes something disappear after a few seconds
Posted: 17 Jun 2020 08:40 AM
|
theres this pie item in the iron cafe and people keep throwing them, and the thrown pies stay there as long as the server is up so i need a script to make them disappear after a few seconds |
|
|
Report Abuse |
|
Dylan
|
|
|
Joined: 04 Oct 2019 |
Total Posts: 22 |
|
|
Re: a script that makes something disappear after a few seconds
Posted: 17 Jun 2020 21:39 PM
|
probably all you need to do is put a wait and then script.Parent:Destroy() in the script but i dont know |
|
|
Report Abuse |
|
Dylan
|
|
|
Joined: 04 Oct 2019 |
Total Posts: 22 |
|
|
Re: a script that makes something disappear after a few seconds
Posted: 17 Jun 2020 21:40 PM
|
actually i am wrong do not do that |
|
|
Report Abuse |
|
|
Re: a script that makes something disappear after a few seconds
Posted: 17 Jun 2020 21:41 PM
|
oh ok |
|
|
Report Abuse |
|
Jiquor
|
|
|
Joined: 03 Oct 2019 |
Total Posts: 38 |
|
|
Re: a script that makes something disappear after a few seconds
Posted: 18 Jun 2020 04:12 AM
|
I will get that for you next week if someone else doesn't beat me to it. |
|
|
Report Abuse |
|
|
Re: a script that makes something disappear after a few seconds
Posted: 18 Jun 2020 08:45 AM
|
ok, I was wondering why you didnt post the script for a while. |
|
|
Report Abuse |
|
RGT
|
|
Joined: 31 Oct 2019 |
Total Posts: 76 |
|
|
Re: a script that makes something disappear after a few seconds
Posted: 23 Jun 2020 20:17 PM
|
i posted this on the thread before the forums were wiped
while true do
for i = 1, #game.Workspace:GetChildren() do
if i.Name == "CherryPie" then
if i:FindFirstChild("Humanoid") == nil then
i:Remove()
end
end
end
wait(30)
end |
|
|
Report Abuse |
|