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 » Scripters
Home Search
 

Re: WHYYY ROBLOX, NEVER WORKS

Previous Thread :: Next Thread 
AmaZZing_viTAe is not online. AmaZZing_viTAe
Joined: 16 Oct 2013
Total Posts: 74
17 Jun 2017 05:58 AM
doesn't show up anything....

script.Parent.Touched:connect(function(other)
local parent = other.Parent
if game.Players:GetPlayerFromCharacter(parent) then
game.Players.LocalPlayer.PlayerGui.CookGui.ScrollingFrame.Visible = true
end
end)

also tryed

script.Parent.Touched:connect(function(other)
local parent = other.Parent
if game.Players:GetPlayerFromCharacter(parent) then
game.StarterGui.CookGui.ScrollingFrame.Visible = true
end
end)
Report Abuse
HamilcarMago is not online. HamilcarMago
Joined: 11 Jul 2010
Total Posts: 1094
17 Jun 2017 06:02 AM
Why don't you just do something like this :

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
Player.PlayerGui.CookGui.ScrollingFrame.Visible = true
end
end)
Report Abuse
AmaZZing_viTAe is not online. AmaZZing_viTAe
Joined: 16 Oct 2013
Total Posts: 74
17 Jun 2017 06:05 AM
still doesn't work, Is it something with r15 that makes it uncompatible?
Report Abuse
HamilcarMago is not online. HamilcarMago
Joined: 11 Jul 2010
Total Posts: 1094
17 Jun 2017 06:05 AM
Not really, check out your gui.
Report Abuse
AmaZZing_viTAe is not online. AmaZZing_viTAe
Joined: 16 Oct 2013
Total Posts: 74
17 Jun 2017 06:06 AM
??
Report Abuse
AmaZZing_viTAe is not online. AmaZZing_viTAe
Joined: 16 Oct 2013
Total Posts: 74
17 Jun 2017 06:06 AM
It never becomes visible...
Report Abuse
AmaZZing_viTAe is not online. AmaZZing_viTAe
Joined: 16 Oct 2013
Total Posts: 74
17 Jun 2017 06:08 AM
bump
Report Abuse
FloweryMonkeyboy5 is not online. FloweryMonkeyboy5
Joined: 19 Sep 2012
Total Posts: 528
17 Jun 2017 07:01 AM
Did you make your script in a localscript?

If not I can explain your error.

In the first example you're asking the game for the LocalPlayer, which only exists in LocalScripts, this feature doesn't work in a normal script.

In the second example you're editing the script in StarterGui, this won't have an effect since GUI's in StarterGui are cloned into the PlayerGui folder once players join. The changes won't have effect until the player dies and reloads the GUI.
Report Abuse
packid851rb is online. packid851rb
Joined: 28 Dec 2016
Total Posts: 120
17 Jun 2017 09:28 AM
Sorry if I'm a bit slow on the subject, but R15 is still in beta. So it could be a bug.
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
17 Jun 2017 09:28 AM
um R15 has nothing to do with his code
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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