Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

transparency wont go up (Stays at 0)?

Asked by 4 years ago

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")
1
Psudar's answer should've worked, it might be that the scripts parent doesn't have a transparency property. Daemonophobiaa 37 — 4y
0
give me the solution LUL Psudar 882 — 4y

1 answer

Log in to vote
1
Answered by
Psudar 882 Moderation Voter
4 years ago
Edited 4 years ago

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

0
still doesn't work there was a error that said user data something fistter1 88 — 4y
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. Psudar 882 — 4y
0
dude post a scrip tthat works your slowing down my developement fistter1 88 — 4y
2
We do not ask for people to make scripts for us, we provide help, we don't do it for you. Destroyer1234x 52 — 4y
0
now this is what I call an epic gamer moment Le_Teapots 913 — 4y
Ad

Answer this question