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: Not sure why this isnt working

Previous Thread :: Next Thread 
Zerkonian is not online. Zerkonian
Joined: 16 Aug 2013
Total Posts: 1668
06 Sep 2013 10:16 PM
Ok, so I thought the "while" loop Made it so while something is happening Another something is happening due to that action so why isnt this working?

while function OnTouched(hit) do

While Someone is touching the brick It will change transparency. Why isnt this right?
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
06 Sep 2013 10:39 PM
That's unnecessary.
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
06 Sep 2013 10:40 PM
He asked for a script to make, So I gave him 1
Report Abuse
SpewedDollar is not online. SpewedDollar
Joined: 18 Jul 2013
Total Posts: 273
06 Sep 2013 10:41 PM
Add this;

door.CanCollide = false
door.Transparency = 0.7
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
06 Sep 2013 10:43 PM
The while loop goes while something is true, which is why "while true do" works. You can also do "if true do"
but that is horribly redundant, since why would you need to see if true is true. True is always true... at least i hope.
Report Abuse
Zerkonian is not online. Zerkonian
Joined: 16 Aug 2013
Total Posts: 1668
07 Sep 2013 08:33 AM
Its not a door, And alright
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
07 Sep 2013 08:37 AM
function onTouched(part)

script.Parent.Transparency = 1
wait(seconds)
script.Parent.Transparency = 0

end

script.Parent.Touched:connect(onTouched)


:)
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
07 Sep 2013 08:38 AM
UMG ITS SUPEROMAR, Get out. Stop making other people getting more stupid than they already are.
AND STOP GIVIN OUT FREE MODELS. Jk I do too.
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
07 Sep 2013 08:42 AM
How about you be more mature?
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
07 Sep 2013 08:45 AM
Ok, scripters sometimes tend to go crazy. Maybe not you. I just don't like people who encourage slavery of scripters. Like FreeToTake himself.
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
07 Sep 2013 08:46 AM
local brick = script.Parent

brick.Touched:connect(function(part)
brick.Transparency = 0.5
while (brick.TouchEnded:wait() ~= part) do end
brick.Transparency = 0
end)
Report Abuse
SuperOmar54 is not online. SuperOmar54
Joined: 12 Aug 2012
Total Posts: 415
07 Sep 2013 08:50 AM
@DragonODeath, I'm just trying to help or so.
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