generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: find current playergui?

Previous Thread :: Next Thread 
dave448 is not online. 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
BreachedSecurity is not online. BreachedSecurity
Joined: 18 Feb 2013
Total Posts: 156
08 Dec 2013 01:03 PM
playerGui = game.Players.LocalPlayer.PlayerGui
Report Abuse
dave448 is not online. dave448
Joined: 28 Feb 2009
Total Posts: 36
09 Dec 2013 06:08 AM
like

local skate = playerGui = game.Players.LocalPlayer.PlayerGui
?
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
09 Dec 2013 06:20 AM
What's 'Skate' defined as?
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
09 Dec 2013 06:21 AM
local skate = playerGui == game.Players.LocalPlayer.PlayerGui
Report Abuse
dave448 is not online. dave448
Joined: 28 Feb 2009
Total Posts: 36
09 Dec 2013 06:38 AM
nofing,just a example
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image