Image won't go at 0 transparency?
Asked by
4 years ago Edited 4 years ago
https://gyazo.com/34fb2392f8a7fe5de60db616e7b74bc6
In this gif I first click on the purple logo, and then when I click on the red logo the purple logo is supposed to go at 0 transparency.
Here is the code:
01 | local StartingScreen = script.Parent |
02 | local ParthiaButton = StartingScreen.MainFrame.Parthia |
03 | local player = game.Players.LocalPlayer |
04 | local TeamInform = StartingScreen.MainFrame.TeamInform |
05 | local RomeButton = StartingScreen.MainFrame.Rome |
06 | StartingScreen.Enabled = true |
08 | ParthiaButton.MouseButton 1 Click:Connect( function () |
09 | print ( "Assigned team to Parthia" ) |
10 | player.Team = game.Teams.Parthia |
11 | ParthiaButton.ImageTransparency = 0.6 |
12 | TeamInform:TweenPosition(UDim 2. new( 0.4 , 0 , 0.6 , 0 ), "Out" , "Bounce" , 3 ) |
13 | TeamInform.Text = "Your team is the Parthian Empire!" |
14 | if player.Team = = game.Teams.Rome then |
15 | RomeButton.ImageTransparency = 0 |
20 | RomeButton.MouseButton 1 Click:Connect( function () |
21 | print ( "Assigned team to Rome" ) |
22 | player.Team = game.Teams.Rome |
23 | RomeButton.ImageTransparency = 0.6 |
24 | TeamInform:TweenPosition(UDim 2. new( 0.4 , 0 , 0.6 , 0 ), "Out" , "Bounce" , 3 ) |
25 | TeamInform.Text = "Your team is the Roman Empire!" |
26 | if player.Team = = game.Teams.Parthia then |
27 | ParthiaButton.ImageTransparency = 0 |
Here is the explorer
https://gyazo.com/08a3ea82f08e1957fd5d5516caff9ea8
In the properties tab of the image transparency it doesn't change at all when I click on each logo. Does anyone know why?
(I had a third logo and it worked perfectly. I recently team shared and deleted the third logo. Every since I did it does not work. The output shows nothing also.)