dave448
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 36 |
|
|
| 08 Dec 2013 01:02 PM |
how do you find the current players gui like i got a tool in the tool i got a script that should make a gui pop up if you press a boutton
function onKeyDown(key) if key == "f" and game.Players.LocalPlayer.Character:findFirstChild("Board") ~=nil then -- yes it is a skate game if game.Players.LocalPlayer.Character:findFirstChild("Board").SkateboardPlatform.InAir.Value == true then
wait(2) local GUI = Game.ReplicatedStorage:FindFirstChild(script.Parent.LocalScript.Name) local AlreadyHaveGUI = player.PlayerGui:FindFirstChild(script.Parent.LocalScript.Name) if AlreadyHaveGUI == nil then GUI:Clone().parent = player.PlayerGui else print("Already have GUI!") end end else print("Humanoid not found!") end end
mouse.KeyDown:connect(onKeyDown) like this help i cant find the current players player gui via the tool |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 01:03 PM |
| playerGui = game.Players.LocalPlayer.PlayerGui |
|
|
| Report Abuse |
|
|
dave448
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 36 |
|
|
| 09 Dec 2013 06:08 AM |
like
local skate = playerGui = game.Players.LocalPlayer.PlayerGui ? |
|
|
| Report Abuse |
|
|
|
| 09 Dec 2013 06:20 AM |
| What's 'Skate' defined as? |
|
|
| Report Abuse |
|
|
|
| 09 Dec 2013 06:21 AM |
local skate = playerGui == game.Players.LocalPlayer.PlayerGui
|
|
|
| Report Abuse |
|
|
dave448
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 36 |
|
| |
|