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: Guys, help me out

Previous Thread :: Next Thread 
ZombieT2 is not online. ZombieT2
Joined: 06 May 2012
Total Posts: 6000
02 Nov 2013 11:24 PM
I am learning how to script now and I need help with a simple script that will make a brick transparent 0.25 2 seconds then transparent 0 another 2 seconds.

Don't make fun of my bad script skills. lol.


print 'Hello world!'

function onTouch
game.workspace.brick.script
Transparent - 0.25
wait(2)
Transparent = 0
wait(2)
Transparent = 0.25
wait(2)
Transparent = 0

end



----

I know it's wrong.
Report Abuse
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
02 Nov 2013 11:38 PM
first get rid of
print 'Hello world!'
and second, you have the function on touch
delete that too if you dont want it on touch
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
02 Nov 2013 11:57 PM
Hope this helps:

brick = game.workspace.brick

function onTouch(p)
brick.Transparency = 0.25
wait(2)
brick.Transparency = 0
wait(2)
brick.Transparency = 0.25
wait(2)
brick.Transparency = 0
end

script.Parent.Touched:connect(onTouch)


~secretidagent
Report Abuse
ZombieT2 is not online. ZombieT2
Joined: 06 May 2012
Total Posts: 6000
03 Nov 2013 12:07 AM
Thank you Secret!
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