game^StarterGui^ScreenGui^Frame^Textbutton - where here do i put it?
You can put it in either the Frame or the Textbutton. If it's a button script, I recommend you put it in the TextButton, so it's a bit organized.
It's all a personal preference as long as the LocalScript
is a descendant of StarterGui
. Just remember you may have to change some things in the script depending on where you place it, i.e.
local Button = script.Parent -- Inside the TextButton local Button = script.Parent.TextButton -- Inside the Frame