Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The Statement for printing isn't working?

Asked by 5 years ago

My script seems to be working fine its just that the printing doesn't work?

1if playerGui:SetTopbarTransparency(1) then --The Transparency is Invisible
2    print("1") --Not Printing
3end

1 answer

Log in to vote
3
Answered by
IDKBlox 349 Moderation Voter
5 years ago

you're trying to get and set the value at the same time lol

for this to work how you'd like, must use GetTopbarTransparency()

1local topBarTransparency = playerGui:GetTopbarTransparency()
2 
3if topBarTransparency == 1 then
4    print('Its 1')
5else
6    print('Its ',topBarTransparency)
7end
Ad

Answer this question