Home   Search   Register  
Help Center  > Scripting Help  > a script that makes something disappear after a few seconds  
 
Display using:  
Previous Thread :: Next Thread 
 Author  Thread: a script that makes something disappear after a few seconds
purplemario74 is offline. Last active: 2/27/2021 9:15:14 PM purplemario74
Joined: 14 Oct 2019
Total Posts: 53
 
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 is offline. Last active: 11/3/2024 3:56:33 PM Dylan
Forum Moderator
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 is offline. Last active: 11/3/2024 3:56:33 PM Dylan
Forum Moderator
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
purplemario74 is offline. Last active: 2/27/2021 9:15:14 PM purplemario74
Joined: 14 Oct 2019
Total Posts: 53
 
Re: a script that makes something disappear after a few seconds
Posted: 17 Jun 2020 21:41 PM
oh ok
Report Abuse
Jiquor is offline. Last active: 3/4/2024 5:34:18 AM Jiquor
Forum Moderator
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
purplemario74 is offline. Last active: 2/27/2021 9:15:14 PM purplemario74
Joined: 14 Oct 2019
Total Posts: 53
 
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 is offline. Last active: 2/27/2021 10:19:58 PM 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
Previous Thread :: Next Thread 
Page 1 of 1
 
GoodBlox Forum  > Help Center  > Scripting Help  > a script that makes something disappear after a few seconds