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

How would I go about creating a global Gui?

Asked by 10 years ago

When something changes for one person, it changes for everyone. Say I input something in a textbox and press a textbutton, that textbutton would send the data to other players and change there

Here is a small little example, I know it's buggy but it's basically what I am trying to do?

function _G.SendData()  --Initiates when they press the button.

Object = Instance.new("TextLabel")
Object.Parent  = game.Players:FindAllChildren("PlayerGui")
--Declare design here

end)

I'm guessing this is what it's called for a global Gui

I have also ran into another problem.. This button script is in a local script in the Player Gui.

Would I do a global function or variable?

_G.SendData() --Like this?

1 answer

Log in to vote
0
Answered by
devDave 50
10 years ago

_G.variableName for a variable but I doont know for a global function, check here http://wiki.roblox.com/index.php?title=Global_function

0
Thanks! IntellectualBeing 430 — 10y
Ad

Answer this question