I tryied before but it didn't worked (I don't remember the code because it was a long ago)
Please help
JesseSong you actually make a gui server sided. If you insert a ModuleScript in StarterGui and then renaming it to "MainModule" and then put the gui into the MainModule script and then in the MainModule script you put in this script
1 | local module = { } |
2 |
3 | function module:Fire(player) |
4 | local plr = game.Players:FindFirstChild(player) |
5 | local clone = script [ "GUINAMEGOESHERE" ] :Clone() |
6 | clone.Parent = plr.PlayerGui |
7 | end |
8 | return module |
To make a gui you must insert it in a local script this means that any code will run client sided also.
I think what your trying to say is how to make a gui server sided that's impossible because guis can't run server sided. Meaning that other players can't see it. Only you.