1 | script.Parent.Touched:connect( function (part) |
2 | gui = script.GuiNameHere:Clone() |
3 | if part.Parent:FindFirstChild( "Humanoid" ) then |
4 | supermarioworld 323 = part.Parent.Name |
5 | if game.Players:FindFirstChild(supermarioworld 323 ) then |
6 | gui.Parent = game.Players [ supermarioworld 323 ] .PlayerGui |
7 | end |
8 | end |
9 | end ) |
How do you make this script work for everyone?
01 | function g(h) |
02 | gui = script.GuiNameHere:Clone() |
03 | if h.Parent:findFirstChild( "Humanoid" ) then |
04 | Hum = h.Parent:findFirstChild( "Humanoid" ) |
05 | if game.Players:findFirstChild(Hum.Parent.Name) then |
06 | gui.Parent = game.Players:findFirstChild(Hum.Parent.Name).PlayerGui |
07 | end |
08 | end |
09 | end |
10 |
11 | script.Parent.Touched:connect(g) |