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: Help please

Previous Thread :: Next Thread 
myactiveplayingalt is not online. myactiveplayingalt
Joined: 28 Nov 2014
Total Posts: 2330
29 Nov 2014 11:31 PM
Hi, i'm just learning to script and so far i'm doing better than ever! I've just started to mess around with scripts and bricks, so far its going great. One problem i have is that this script for some reason isn't working. Would anyone tell me why?

local part = Instance.new('Part',game.Workspace)
part.Anchored = true
part.Transparency = .3
part.BrickColor = BrickColor.new('Bright red')
part.Touched:connect(function()
part.Transparency = 0 wait(2)
part.Transparency = .3 wait(2)
part.Transparency = .6 wait(2)
part.Transparency = .9 wait (2) if part.Transparency ~= .9 then part = nil
end)
Report Abuse
Qivr is not online. Qivr
Joined: 22 Aug 2014
Total Posts: 5407
29 Nov 2014 11:33 PM
is the problem that the part doesn't disappear?
if so, you'd need to make the transparency something other .9 because you didn't change it after part.Transparency = .9
if something else is wrong, I'd need to know where it stop working

[Qivr] Hail Greenland!
Report Abuse
myactiveplayingalt is not online. myactiveplayingalt
Joined: 28 Nov 2014
Total Posts: 2330
29 Nov 2014 11:35 PM
I was hoping for it to go from 0, to 6, to 9, wait 2 then go nil.
Report Abuse
myactiveplayingalt is not online. myactiveplayingalt
Joined: 28 Nov 2014
Total Posts: 2330
29 Nov 2014 11:36 PM
All it does is dissappear when i enter the game.
Report Abuse
Qivr is not online. Qivr
Joined: 22 Aug 2014
Total Posts: 5407
29 Nov 2014 11:37 PM
local part = Instance.new('Part',game.Workspace)
part.Anchored = true
part.Transparency = .3
part.BrickColor = BrickColor.new('Bright red')
part.Touched:connect(function()
part.Transparency = 0
wait(2)
part.Transparency = .3
wait(2)
part.Transparency = .6
wait(2)
part.Transparency = .9
wait (2)
part = nil
end)

[Qivr] Hail Greenland!
Report Abuse
myactiveplayingalt is not online. myactiveplayingalt
Joined: 28 Nov 2014
Total Posts: 2330
29 Nov 2014 11:37 PM
sorry go from 0 to 6 then when it reached 9 it disappeared.
Report Abuse
myactiveplayingalt is not online. myactiveplayingalt
Joined: 28 Nov 2014
Total Posts: 2330
29 Nov 2014 11:37 PM
Oh okay thank you! :)
Report Abuse
myactiveplayingalt is not online. myactiveplayingalt
Joined: 28 Nov 2014
Total Posts: 2330
29 Nov 2014 11:42 PM
It didn't work. So i put part:destroy() end)
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