|
How can I make it so that when a player presses a key an gui pops up only on that players screen or only in that player's PlayerGui???
Thanks
dragon |
|
|
BladeXEJoin Date: 2012-12-22 Post Count: 3857 |
lp = game.Players.LocalPlayer -- dis is LOCALSCRIPT!!!!
mouse = lp:GetMouse()
mouse.KeyDown:connect(function(k)
Gui = LinkToGui:clone()
if k:lower()=="KEYHERE example : m" then
Gui.Parent = lp.PlayerGui
end
end) |
|
|
Thanks, yea I figured a Local Script but wasn't sure... haven't really done a whole lot with them, don't make guns and stuff like that yet.
Where do I put this??? Sorry just a bit more in detail on how to implement or use this? |
|
|
I'm thinking of making the gui in a script(normal, under workspace)... is that the way to go? |
|
|
If you put it in workspace, good luck trying to figure out if someone clicks the button |
|
|
no i mean have the script that creates the gui in workspace and have it disabled and then clone it and activate it in PlayerGui
|
|
|
|
|
|
|
|
|