probably has been asked a lot but I can’t seem to find answer…
I am trying to link Button1 to make TrailFrame Visible inside but which works for other buttons for some reason even if I give the script the exact place it still shoots error “frame is not valid part of image button” even if im Parent.Parent.Parent away…
my script so far
local toggle = script.Parent
local frame = script.Parent.Parent:WaitForChild("TrailFrame")
toggle.MouseButton1Click:Connect(function()
frame.Visible = true
end)
yea, that’s what I’m trying to figure out why when I parent.parent to leave the button1 and reference the correct frame it keeps taking me back and saying i’m trying to reference TrailFrame
very weird… Means that is impossible to find that object in ur GUI…
Maybe its trying to check the existance of the Frame, while the player is loading? So the frame is not created yet.
You used the wait(5) just to be sure its not about delay?
Well, I dont know all the mechanics that occurs when you use Test, but it would be better if u make ur player’s GUI tests, using Play instead of Test, just to be sure a player is loading in the server