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
 

script screengui

Previous Thread :: Next Thread 
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
16 Sep 2014 12:29 PM
ready = true
function onTouched(touch)
if touch.Parent:findFirstChild("Humanoid") then
local s = game.Players:GetPlayerFromCharacter(touch.Parent)
if ready then
s.PlayerGui.ScreenGui.ScrollingFrame.Foto3.Visible = true
wait(1)
ready = false
end
end
end

game.Workspace.Key1.ClickDetector.MouseClick:connect(onTouched)

why this script dont works
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
16 Sep 2014 01:24 PM
help me please
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
16 Sep 2014 02:06 PM
Does it work at the first time then don't work at the second time you pressed it?
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
16 Sep 2014 02:35 PM
it never works
Report Abuse
darthpyro is not online. darthpyro
Joined: 18 Aug 2009
Total Posts: 3569
16 Sep 2014 02:39 PM
As I explained earlier, a ClickDetector passes you the Player object, not the Character object.


ready = true
function onTouched(touch)
if ready then
touch.PlayerGui.ScreenGui.ScrollingFrame.Foto3.Visible = true
wait(1)
ready = false
end
end

game.Workspace.Key1.ClickDetector.MouseClick:connect(onTouched)
Report Abuse
kakbroek1 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
16 Sep 2014 02:59 PM
thx
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
16 Sep 2014 03:19 PM
Wow I did I not spot that problem >.<
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