UI Position for boxy type screens

What would you need? The frame to be parented to another frame, ScreenGui, or something like that? If so, try this:

script.Parent = game.StarterGui._anmeofthinghere

I did, but feel free to disregard my reply if you don’t want to, I was just trying to help.

LocalScript would replicate the script each time a player uses the item. Using a ServerScript only replicates the script once! (:

Where in the script would I put this?

I always had the frame inside the TextButton so I had it to open that in the Textbutton, do I not need to change anything but add that?

No, that’s not how it works. From my understanding, a serverscript will replicate to each player IF it’s in startergui (which all of the things in startergui goes into the player’s playergui on the start of the game.) localscripts are only supposed to show on the localplayer’s screen, (and UI are supposed to, too,) so localscripts are used for that.

In the developer wiki it says:
" A LocalScript will only run Lua code if it is a descendant of one of the following objects:

  • A Player’s Backpack , such as a child of a Tool
  • A Player’s character model
  • A Player’s PlayerGui
  • A Player’s PlayerScripts .
  • The ReplicatedFirst service."

Also, no, I’m not tying an essay. I haven’t been here for the 20 minutes.

Are ya’ll writing a whole essay? It’s been 20 minutes and both of you are still typing

Hey dude can you just help me? I really want this done before tonight.

Hello? Is literally anyone here?

If you do see this, and have time to reply, this is what I mean. Here is my LocalScript to open the Codes frame that I had originally in there. How can I make it now open the Frame inside the “ExclusiveCodes” ScreenGui? Image on what everything is in down below.

LocalScript to open the frame -

script.Parent.MouseButton1Click:Connect(function()
	
	for _, v in pairs (script.Parent.Parent.Parent.Parent:GetChildren()) do
		if v:IsA("Frame") then
			for _, nV in pairs(v:GetChildren()) do
				if nV:IsA("TextButton") then
					for _, v2 in pairs(nV:GetChildren()) do
						if v2:IsA("Frame") then
							if v2 == script.Parent.Parent.Frame then
								v2.Visible = not v2.Visible
							else
								v2.Visible = false
							end
						end
					end
				end
			end
		end
	end

end)

The Example picture -

Set the anchor point of the Frame to 0.5, 0.5. Then, set the Position of the Frame to 0.5, 0, 0.5, 0. You can do this in studio by editing the properties of the Frame.