Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
|
| 01 Aug 2012 02:32 PM |
What am I doing wrong?
c = script.Parent
function error1(x)
print(x)
local a = Instance.new("StringValue") a.Value = x a.Parent = script local b = Instance.new("Message") b.Parent = game.Workspace b.Text = x wait(5) b:Destroy()
end
function c1()
if (not c:IsDescendantOf(game.Workspace) then print ("error: NDO-1") error1("error: NDO-1") end
end
while true do c1() wait() end
|
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
| |
|
Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
|
| 01 Aug 2012 02:36 PM |
| I did, none of them could fix it. |
|
|
| Report Abuse |
|
|
Tarabukka
|
  |
| Joined: 18 Jan 2011 |
| Total Posts: 394 |
|
|
| 01 Aug 2012 02:38 PM |
I think you're missing a ):
... if (not c:IsDescendantOf(game.Workspace) then print ("error: NDO-1") error1("error: NDO-1") end ...
That first line I quoted should be:
if (not c:IsDescendantOf(game.Workspace)) then |
|
|
| Report Abuse |
|
|
Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
|
| 01 Aug 2012 02:41 PM |
| Did that, it still doesn't work. |
|
|
| Report Abuse |
|
|
Malcolt3
|
  |
| Joined: 17 Dec 2009 |
| Total Posts: 11442 |
|
| |
|
|
| 01 Aug 2012 03:05 PM |
I think there is also a potential problem with your liberal use of the wait statement:
wait(5) b:Destroy()
Replace with:
game.Debris:AddItem(b,5)
-God Bless- |
|
|
| Report Abuse |
|
|