Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

This only works on Solo Mode? [SOLVED]

Asked by
Discern 1007 Moderation Voter
9 years ago

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
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. :/ TheeDeathCaster 2368 — 9y
0
I am not using a LocalScript for this code. I'll try it out right now. Discern 1007 — 9y
0
Fantastic, thanks. Gave you a reputation. Discern 1007 — 9y
0
Thanks man. :) And no problem, I was glad to help. :) TheeDeathCaster 2368 — 9y

Answer this question