Why dos this script work in studio mode not player mode. I was assured before that it was because the script has a bug, but I cant find it. I'm new to scripting btw!
Next = script.Parent Frame = Next.Parent function onClicked(GUI) Frame:Remove() end script.Parent.MouseButton1Click:Connect(onClicked)
This script should work, but what would happen is the script, next, and frame would all be deleted. Because you are Removing "Frame", which is the parent of Next and the script.
Next = script.Parent Frame = Next.Parent function onClicked(GUI) Frame:Remove() end script.Parent.MouseButton1Click:connect(onClicked)
So I updated my answer because I noticed that :Connect was capitalized, so I made the C lower-cased. Functions, events, etc. are case sensitive (most of them) so be careful!