Hi! I want to adorn a SurfaceGui to the screen of every self-check-in kiosk in a folder in workspace. The script seems to work (the print debug prints and when I check the guis they have the adornees set) BUT the guis don’t show up on the screens.
local models = workspace:WaitForChild("sciModels")
local parent = script.Parent
local gui = game:GetService("StarterGui")
task.wait(1)
for i, tool in ipairs(models:GetChildren()) do
local newFrame = parent:Clone()
newFrame.Parent = gui
print("Parented to", newFrame.Parent.Name)
newFrame.Adornee = tool:WaitForChild("screen"):WaitForChild("Part")
print("Adorned to", newFrame.Adornee.Name)
wait(1)
end
If anyone has any help, that would be great, thanks!