-
What do you want to achieve? A Gui effect that changes the transparency of a GUI randomly (using math.random)
-
What is the issue? The function looks right but when I run it, it just changes the transparency to 0
-
What solutions have you tried so far? I’ve tried looking at the GUI API’s but nothing has been helpful
here’s the function
local function SpellEffect(plr)
for count = 1,5 do
plr.PlayerGui.SpellEffect.Frame.BackgroundTransparency = math.random(0.4,0.8)
wait(0.2)
end
end
all help is appreciated