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 » Scripting Helpers
Home Search
 

Re: attempt to call a nil value

Previous Thread :: Next Thread 
ExtraProfileView is not online. ExtraProfileView
Joined: 21 May 2013
Total Posts: 1
23 May 2013 02:12 AM
Heres my script:

p = script.Parent
for i=1, -10 do
function touched()
wait(0.3)
p.Transparency =p.Transparency - 0.1
end
end

script.Parent.Touched:connect(touched)

What is ment to happen is the brick is touched and it slowly fades out.
Report Abuse
Destiny1147 is not online. Destiny1147
Joined: 08 Jun 2011
Total Posts: 699
23 May 2013 02:21 AM
script.Parent.Touched:connect()
p = script.Parent
for i = 1,10 do
wait(0.3)
p.Transparency = p.Transparency - 0.1
end
end)
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
23 May 2013 02:43 AM
I will assume that guy found your Nil, but,

No Touched script with a Wait() in it, is going to work without a Debounce gate. Put the Debounce Variable back in..... or come back here crying.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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