Hi, I need some help with my script I am still a beginner
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Visible = false
script.Parent:FindFirstChild("ForceField"):Destroy()
end)
I know somethings missing but I don't know what is it
and my button is
Button > ScreenGui > Starter Gui
I also tried doing
script.Parent.Parent.Parent:FindFirstChild
too but it doesn't work

2 comments
Where is your script located? Is it Server or Client/Script or LocalScript
Oh I already figured it out, I used LocalScript since it is a gui but I managed to script it correctly but thanks for trying to help