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:
local StartingScreen = script.Parent
local ParthiaButton = StartingScreen.MainFrame.Parthia
local player = game.Players.LocalPlayer
local TeamInform = StartingScreen.MainFrame.TeamInform
local RomeButton = StartingScreen.MainFrame.Rome
StartingScreen.Enabled = true
ParthiaButton.MouseButton1Click:Connect(function()
print("Assigned team to Parthia")
player.Team = game.Teams.Parthia
ParthiaButton.ImageTransparency = 0.6
TeamInform:TweenPosition(UDim2.new(0.4, 0,0.6, 0),"Out","Bounce",3)
TeamInform.Text = "Your team is the Parthian Empire!"
if player.Team == game.Teams.Rome then
RomeButton.ImageTransparency = 0
end
end)
RomeButton.MouseButton1Click:Connect(function()
print("Assigned team to Rome")
player.Team = game.Teams.Rome
RomeButton.ImageTransparency = 0.6
TeamInform:TweenPosition(UDim2.new(0.4, 0,0.6, 0),"Out","Bounce",3)
TeamInform.Text = "Your team is the Roman Empire!"
if player.Team == game.Teams.Parthia then
ParthiaButton.ImageTransparency = 0
end
end)
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.)

1 comment
Thanks! This really helped.