generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why Not Working?

Previous Thread :: Next Thread 
Malcolt3 is not online. 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 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
01 Aug 2012 02:34 PM
Go to scripting helpers.
Report Abuse
Malcolt3 is not online. 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 is not online. 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 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
01 Aug 2012 02:41 PM
Did that, it still doesn't work.
Report Abuse
Malcolt3 is not online. Malcolt3
Joined: 17 Dec 2009
Total Posts: 11442
01 Aug 2012 02:50 PM
UMG IM SO FRUSTRATED
Report Abuse
noobertuber is not online. noobertuber
Joined: 16 Jan 2007
Total Posts: 2321
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image