This is solved. Thank you for your help, TheAlphaStigma.

This is how my gui looks in explorer:

ScreenGui

**-**BackgroundFrame

**--**ForegroundFrame

**---**Script

I'm trying to get the ForegroundFrame to be in the center of the BackgroundFrame, with each side revealing 6 pixels of the Background Frame. I have a script to do this, but it only seems to work in Solo Mode. There is no output, even when I go online.

wait(2)

fg = script.Parent --The ForegroundFrame
bg = script.Parent.Parent --The Background Frame
bgs = bg.AbsoluteSize --The BackgroundFrame's AbsoluteSize

fg.Size = UDim2.new(0, bgs.x - 12, 0, bgs.y - 12)
fg.Position = UDim2.new(0, 6, 0, 6)

script.Parent.Parent.Visible = true

4 comments

2

Are you using a 'LocalScript' type instance for the code? If not, then thats the problem, Roblox did an Update where you HAVE to use LocalScripts in order to run Client-Sided coding. :/

0

I am not using a LocalScript for this code. I'll try it out right now.

0

Fantastic, thanks. Gave you a reputation.

0

Thanks man. :) And no problem, I was glad to help. :)