Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

transparency wont go up (Stays at 0)?

i have this code and the transparency wont go up for some reason

wait (1)
	script.Parent.Transparency  + 1
wait (1)
script.Parent.Transparency  + 1
wait (1)
print ("DONE")

2 comments

1

Psudar's answer should've worked, it might be that the scripts parent doesn't have a transparency property.

0

give me the solution LUL

1 answer

90% sure this is a troll but heres what you're doing wrong:

You're only performing arithmetic, you should also be changing the actual Transparency property.

Here's what I mean:

wait(1)
script.Parent.Transparency = script.Parent.Transparency + 1
print("Done")

Also keep in mind that Transparency is from 0-1, so if you want to give a fading in effect, i'd use 0.1 .

Also check out tweenService or Lerp, might be better for ya.

https://developer.roblox.com/en-us/api-reference/class/TweenService

5 comments

0

still doesn't work there was a error that said user data something

1

Must be a different script you have mate. The one you posted has nothing to do with UserData. Unless, script.Parent doesn't have a transparency property or something.

0

dude post a scrip tthat works your slowing down my developement

2

We do not ask for people to make scripts for us, we provide help, we don't do it for you.

0

now this is what I call an epic gamer moment

This discussion is preserved as it was. New answers, comments, and votes are closed.