so i made a script to delete multiple frames with the same name from a group of models but it wont work why is this?
any help is appreciated
for i,v in pairs(workspace.Screens.Pae.SurfaceGui.Frame.Frame.Frame:GetChildren()) do
if v.name == GIFPlayer then
v:Destroy()
end
end
1 Like
Deezylolz
(Deezylolz)
#2
for i,v in pairs(workspace.Screens.Pae.SurfaceGui.Frame.Frame.Frame:GetChildren()) do
if v.Name == "GIFPlayer" then
v:Destroy()
end
end
You had ‘v.Name’ in lowercase. Also, you have to put GIFPlayer in quotation marks, unless it’s a variable you forgot to mention.
1 Like
The problem is i have more than one part inside the model and it needs to be for all of them thats my problem how do i fix that?