This works in test mode, but no in-game?
OK so I have a GUI called "greenpower" and It's current Parent is ServerStorage.
I also have a tool and when i activate it (clicking) the GUI is supposed to move to the Player's PlayerGui.
This works just fine in test mode, but in actual game it doesn't.
LocalScript:
1 | local player = game.Players.LocalPlayer |
2 | local power = game.ServerStorage:WaitForChild( "greenpower" ) |
3 | local plrgui = player:WaitForChild( "PlayerGui" ) |
4 | script.Parent.Activated:connect( function () |
5 | power:Clone().Parent = plrgui |
Help?