for some reason, it won't let me change the transparency of the beam with the script and i just can't put my finger on the reason edit: I've tried using
1 | repeat |
2 | beam.Transparency = beam.transparency + 0.05 |
3 | until beam.Transparency = = 1 |
and removing the "()"
error: "Players.TheRisingTides.PlayerGui.LocalScript:3: bad argument #3 to 21:51:46.122 'Transparency' (NumberSequence expected, got number)" script:
01 | local beam = game.Workspace.lights.Part.Beam |
02 | repeat |
03 | beam.Transparency = ( 0.55 ) |
04 | wait( 0.05 ) |
05 | beam.Transparency = ( 0.6 ) |
06 | wait( 0.05 ) |
07 | beam.Transparency = ( 0.65 ) |
08 | wait( 0.05 ) |
09 | beam.Transparency = ( 0.7 ) |
10 | wait( 0.05 ) |
11 | beam.Transparency = ( 0.75 ) |
12 | wait( 0.05 ) |
13 | beam.Transparency = ( 0.8 ) |
14 | wait( 0.05 ) |
15 | beam.Transparency = ( 0.85 ) |
Its more complex than you think, Beam,Trail,Particle Emitters' Transparency
are not used
in regular numbers
but in NumberSequence
so you have to write :
1 | beam.Transparency = NumberSequence.new { |
2 | NumberSequenceKeypoint.new( 1 , 1 ) --use these instead and adjust as you will |
3 | } |
Just a quick note, I don't use NumberSequence
that much so if I make an error just do your research.