testVariable = script.Parent.Transparency if testVariable < 1 then testVariable = testVariable + .1 end
\ I want it to add .1 to the transparency value until it reaches 1, I also have a need for when it's OVER 1 but if this script works then I can just reverse it. It'd be best to message me on roblox. (not sure if that's already how this works)
Thanks
Do this
local Part = script.Parent --last time I tried, you cannot put properties in variubles. while Part.Transparency > 1 then Part.Transparency = + .1 wait(1) -- replace 1 with how long u want to wait before adding more transparency. end
What this does, is it keeps checking if the part is NOT fully transparent. Then, it adds a bit of transparency, and wait for the amount of time you enter.