Good day, so I’ve been trying to fix this problem myself for a few months now. So here’s how the script was supposed to work: if I click a button — which in this case, the script’s parent — the script changes another UI’s size.
Here’s the script:
local Player = game.Players.LocalPlayer -- get player here
local PlayerGui = Player.PlayerGui -- need to get the playersgui not the starter gui
local gui1 = PlayerGui:WaitForChild('TheWholePC').Frame["File Explorer"] -- might not need the wait depends on script
script.Parent.MouseButton1Click:Connect(function()
gui1.Size = UDim2.new(0.08, 0,0.122, 0)
gui1.Position = UDim2.new(0.027, 0,0.046, 0)
end)
@Nyonic I’ll try that, thanks for the correction on the player gui. @DeltOof12345 I’ll just put this above the function script as variable. right?
Sorry for the late replies to these comments, I hadn’t seen them 'cause of timezones. Anyway, I’ll update this if it does work.