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: should this work?

Previous Thread :: Next Thread 
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
05 Jul 2012 01:35 PM
im trying to make this make the brick's transparency into 1 and the brick when you touch it you fall through. Should it work?
while true do
script.Parent.Transparency = 0.1
wait(5)
script.Parent.Transparency = 0.3
wait(1)
script.Parent.Transparency = 0.5
wait(1)
script.Parent.Transparency = 0.7
wait(1)
script.Parent.Transparency = 0.9
wait(1)
script.Parent.Transparency = 1
wait(1)
script.Parent.CanCollide = true
wait(5)
script.Parent.Transparency = 0
wait(1)
script.Parent.CanCollide = false
wait(1)
end
Report Abuse
boomerangbro9 is not online. boomerangbro9
Joined: 26 Nov 2011
Total Posts: 287
05 Jul 2012 01:39 PM
that will...

while true do -- loop
script.Parent.Transparency = 0.1 10% invis.
wait(5) 5 sec later
script.Parent.Transparency = 0.3 30
wait(1) 1 sec
script.Parent.Transparency = 0.5 50
wait(1) 1
script.Parent.Transparency = 0.7 70
wait(1) 1
script.Parent.Transparency = 0.9 90
wait(1) 1
script.Parent.Transparency = 1 100
wait(1) 1
script.Parent.CanCollide = true make it able to be hit
wait(5) 1
script.Parent.Transparency = 0 make it 100% visible
wait(1) 1
script.Parent.CanCollide = false make it walkthrough
wait(1) 1
end
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
05 Jul 2012 01:40 PM
It will not work the way he wants it to.

> † KMXD †
Report Abuse
boomerangbro9 is not online. boomerangbro9
Joined: 26 Nov 2011
Total Posts: 287
05 Jul 2012 01:40 PM
CanCollide is "Is this able to be hit?" (true yes false no)
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
05 Jul 2012 01:41 PM
That is so messy. Use a for loop for the transparency change.
Report Abuse
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
05 Jul 2012 01:59 PM
white, i dont know how to do that
Report Abuse
TehPwnzerLord is not online. TehPwnzerLord
Joined: 15 Sep 2010
Total Posts: 2661
05 Jul 2012 02:28 PM
That will work but it's messy.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
05 Jul 2012 02:30 PM
...It will not work the way he wants it to.

> † KMXD †
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
05 Jul 2012 02:40 PM
script.Parent.CanCollide = true

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
for i = 1,10 do wait()
script.Parent.Transparency = script.Parent.Transparency + .1
end
script.Parent.CanCollide = false
wait(5)
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
05 Jul 2012 02:40 PM
oh look sword actually read the OP's post

> † KMXD †
Report Abuse
Swordphin123 is not online. Swordphin123
Joined: 09 Apr 2008
Total Posts: 5234
05 Jul 2012 02:41 PM
^ :3
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