Ok, my issue is as simple as strange.
I have a script which is in a part.
When this part is touched, the player gets a tool, and a subtitle shows up in the player’s GUI, telling that the tool has been taken.
To avoid bugs, i’ve inserted a line of code which detects if another subtitle is showing up while the tool is taken, so the script will wait before the subtitle is shown.
(I’ve used as point of reference the subtitle’s background image: Subtitles_Roundify_8px)
My issue: the script does not find the gui (“Assistant”) where the other subtitles are shown.
Here’s the line of code i have troubles with:
script.Parent.Parent.Key1.Touched:Connect(function(gamer)
--[...]
local player = game.Players:GetPlayerFromCharacter(gamer.Parent)
while player.PlayerGui.Assistant.Subtitles.Subtitles_Roundify_8px.ImageTransparency < 1 do
wait(1)
end
--[...]
end)
Here’s the output:
“Assistant” is not found by the script, but… It’s there, as you can see here:
What could the problem be?