|
| 22 Jan 2014 08:29 PM |
I've been trying to make this work.. but apparently it just keeps looping and doesn't remove itself.. It's a local script.
while wait() do wait(2) local plr = game.Players.LocalPlayer if plr:FindFirstChild("leaderstats").Stage.Value == 150 then local tools = game.ToolStorage:getChildren() for i=1,#tools do local tool = tools[i]:Clone() tool.Parent = plr.Backpack script:remove() end end end |
|
|
| Report Abuse |
|
|
devLucas
|
  |
| Joined: 10 Dec 2013 |
| Total Posts: 526 |
|
|
| 22 Jan 2014 08:30 PM |
| Try script:Destroy() instead. |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2014 09:05 PM |
| It still won't be removed. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jan 2014 09:18 PM |
| Are you sure "ToolStorage" is even holding anything? |
|
|
| Report Abuse |
|
|
domorox17
|
  |
| Joined: 06 Mar 2012 |
| Total Posts: 1710 |
|
|
| 22 Jan 2014 09:49 PM |
| Even if it is, it will delete after the first tool. Put the remover after the first end |
|
|
| Report Abuse |
|
|
Vyxium
|
  |
| Joined: 31 Aug 2010 |
| Total Posts: 1020 |
|
|
| 22 Jan 2014 10:00 PM |
| maybe break the loop and then remove it |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2014 10:01 PM |
| Destroy the script Destroy() |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2014 11:13 PM |
| I got it to work, breaking the loop worked. |
|
|
| Report Abuse |
|
|
eendo
|
  |
| Joined: 26 Feb 2012 |
| Total Posts: 1237 |
|
|
| 23 Jan 2014 03:00 AM |
remove() is not supported anymore
use Destroy() instead
~Instance = no |
|
|
| Report Abuse |
|
|