So I have this in a server script. What it aims to do is add an effect where it seems like a thing is disappearing when actually it's just changing the opacity and then unanchoring it. The unanchoring bit works fine but is it the bit where the change in opacity is worded incorrectly? I don't expect anyone to read this so all you have to do is look at the first bits and the last bit to see what I did wrong.
-- manual values
local ChangeMeA = game.Workspace.Partysarec.Transparency
local ChangeMeB = game.Workspace.P.Transparency
local ChangeMeC = game.Workspace.Pa.Transparency
local ChangeMeD = game.Workspace.Par.Transparency
local ChangeMeE = game.Workspace.Parte.Transparency
local ChangeMeF = game.Workspace.Party.Transparency
local ChangeMeG = game.Workspace.Partys.Transparency
local ChangeMeH = game.Workspace.Partysa.Transparency
local ChangeMeI = game.Workspace.Partysar.Transparency
local ChangeMeJ = game.Workspace.Partysare.Transparency
local UNANCHORED = game.Workspace
-- script
ChangeMeA = 0
ChangeMeB = 0
ChangeMeC = 0
ChangeMeD = 0
ChangeMeE = 0
ChangeMeF = 0
ChangeMeG = 0
ChangeMeH = 0
ChangeMeI = 0
ChangeMeJ = 0
wait(0.15)
ChangeMeA = 0.05
ChangeMeB = 0.05
ChangeMeC = 0.05
ChangeMeD = 0.05
ChangeMeE = 0.05
ChangeMeF = 0.05
ChangeMeG = 0.05
ChangeMeH = 0.05
ChangeMeI = 0.05
ChangeMeJ = 0.05
wait(0.15)
ChangeMeA = 0.1
ChangeMeB = 0.1
ChangeMeC = 0.1
ChangeMeD = 0.1
ChangeMeE = 0.1
ChangeMeF = 0.1
ChangeMeG = 0.1
ChangeMeH = 0.1
ChangeMeI = 0.1
ChangeMeJ = 0.1
wait(0.15)
-- 10 years later after 200 lines of code in transparency increments of 0.05
wait(0.15)
ChangeMeA = 0.95
ChangeMeB = 0.95
ChangeMeC = 0.95
ChangeMeD = 0.95
ChangeMeE = 0.95
ChangeMeF = 0.95
ChangeMeG = 0.95
ChangeMeH = 0.95
ChangeMeI = 0.95
ChangeMeJ = 0.95
wait(0.15)
ChangeMeA = 1
ChangeMeB = 1
ChangeMeC = 1
ChangeMeD = 1
ChangeMeE = 1
ChangeMeF = 1
ChangeMeG = 1
ChangeMeH = 1
ChangeMeI = 1
ChangeMeJ = 1
UNANCHORED.P.Anchored = false
UNANCHORED.Pa.Anchored = false
UNANCHORED.Par.Anchored = false
UNANCHORED.Parte.Anchored = false
UNANCHORED.Party.Anchored = false
UNANCHORED.Partys.Anchored = false
UNANCHORED.Partysa.Anchored = false
UNANCHORED.Partysar.Anchored = false
UNANCHORED.Partysare.Anchored = false
UNANCHORED.Partysarec.Anchored = false
okay so this is it if you read everything you wasted a lot of time. and yes this was VERY painful to type out and I'm sure everyone out there with better knowledge than me could do this within 20 lines. Thanks anyone for help I appreciate it. I had to manually indent all this for this question ;-; just imagine 200 more lines all the same ChangeMeX = -value-.
notes:
server script
manually changes every block in the workspace non of them are grouped.
Unanchoring works so this has lead me to believe it's the wrong variable?
No errors in the output
and that's about it I think. Thanks everyone for their answers. I'm sure I missed out some important info. If you leave a note asking for it I should be on this thread for the next 20-30 mins.
Edit: bad grammar

1 comment
@OP accept this answer