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
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:
Backpack
, such as a child of a Tool
character
modelPlayerGui
PlayerScripts
.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.