i’ve had this issue for a few days now, the issue is that buttons dont work unless a button (that presumably works) is clicked first, i’ve narrowed down a few things
edit: note “work” only replies after the ssh-40 tag works as shown in video)
-not an issue with my code setup (if’s, elseif’s etc)
- not a mousebutton1click() issue
- not a studio issue (same result happens in-game)
- not a code layout issue
Frame.LoadoutOption1.MouseButton1Down:Connect(function()
print("work")
clicknoise:Play()
Frame.LoadoutOption1.Image = "rbxassetid://10631497747"
Frame.LoadoutOption2.Image = "rbxassetid://10631482068"
Frame.LoadoutOption3.Image = "rbxassetid://10631482068"
Frame.LoadoutOption4.Image = "rbxassetid://10631482068"
if Frame.LoadoutOption1.DeployTag.Text == "Premier Attire" then
--placement holder
elseif Frame.LoadoutOption1.DeployTag.Text == "Deputy Attire" then
--placement holder
elseif Frame.LoadoutOption1.DeployTag.Text == "General Attire" then
if GeneralStaff == true then
Dummy.Parent = game.Workspace.DeploySystem
--weld code
end
elseif Frame.LoadoutOption1.DeployTag.Text == "Standard Cap" then
--placement holder
elseif Frame.LoadoutOption1.DeployTag.Text == "SSH-40" then --only button that works
if StandardEnlist == true then
--weld code
end
elseif Frame.LoadoutOption1.DeployTag.Text == "Player Attire" then
--placement holder
elseif Frame.LoadoutOption1.DeployTag.Text == "NKVD Cap" then
--placement holder
end
end)