#GUI Transperency doesn't change in real time
1 messages · Page 1 of 1 (latest)
its because Transparency value is 0-1
not 1-100
also i recommend using Tweens instead of for loops
wait you can use tweens for transparency?
you can use tweens for almost every property that has numbers
i mean like Transparency, Size, Position, Density, Value, etc
i see
why is that ?
is tweens just better than for loops on these occasions ?
its more optimized, more clear, etc
smoother animation
you can use tweens for almost every property
makes sense, I will use it more then, I thouhgt it would be less optimized
especially scales
Quick question before I put this thread as solved, how do i make the frame cover the entire screen?, because when i play, the frame only covers a part of the screen, but the toppart where the roblox logo is, it doesnt cover that for some reason, and also some tips for better coding ? 🥺
enable GuiInSet property in ScreenGui
enable a property called IgnoreGuInSET
🙏 you are god on earth
arigato gosaiamsu
but fr thank you so much yall
Doitashimashite
tweens are much easier and smoother than for loops
you can also customize it very throughly with tweens unlike for loops which require additional scripting
for example on tweens you can set easing styles for the tweens to make it do things like slowly fade in or out
or make it reverse when after it does the tween
that is true, but i dont sometimes I'm a bit too scared of using functions all the time, since I'm learning, I think using pre-made functions may result in bad habits and lack of knowledge on the future, since I will just use them, but don't know how to create them, but I guess I should stop worrying too much about such
tweens do seem hella useful
it would actually be a bad habit to rely on for loops to make effects like those
tweens are better in the long run unless you need to script custom behavior during the tween
Oh shi really ?
** You are now Level 2! **
even then you can still make custom behavior during tweens
lol
well yes because for loops just make it time consuming and difficult to do
the one thing I think that makes for loops better than tweens for those effects is if you're scripting custom behavior during the tween that controls the tween as well
but other than that tweens are generally better for every use case like that
I see, so tweens are just generally better for transactions ?
transitions*
idk why i said that
it really just depends on what it is you're trying to do
if you're trying to transition a number to another number smoothly then use tweens
if you're trying to do something like decrease a value linearly until it reaches another value then use for loops
doesnt tweenservice also provide a linear event ?
best example I can think of is like if for example you're trying to gradually decrease the range of a light until it reaches zero, then use tween service
however if you're doing something like, for example, making a clock tick down to zero, use a for loop for that instead of a tween
yeah
ohhhh
makes senseee
using tweenservice for something purely depends on what it is that you're actually trying to do with the number
got it, well I willl try to use more functions then
like premade functions from the roblox lib
also something i don't know if other people mentioned is that tween service actually works with alot of things that involve numbers
something that is really hard to code with a for loop most likely is actually really easy with a tween
for example smoothly transitioning the color of a brick to a different color
whereas a for loop would require a bunch of lines of code reconfiguring all rgb values with calculations to transition to the color you want, tween service is as simple as stating the color you want it to change to, and then just playing the tween
hmmm, so I should focus on using functions, not only because they can be more effiecient, its also easier for other people to understand it aswell ?
wdym
functions are just functions
you can put a tween inside one and call it perhaps
functions are different things entirely from tweens
no no yea, like when i'm saying functions, I'm saying like "TweenService", CFrame.look at and etc..
like instead of just trying to invent the wheel, I should just use tools that roblox already offers
I guess
tweens are just more efficient and easier to use than making transitions yourself in for loops
got it, thank you man, imma use it more often then
