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
 

GUI Visibility Script, need help

Previous Thread :: Next Thread 
EmperorD is not online. EmperorD
Joined: 31 Jan 2012
Total Posts: 386
26 Jan 2015 01:16 PM
local clearance = { "EmperorD" }
local start = "startapps"
local stop = "stopapps"



local function checkClearance(name)
for i = 1,#clearance do
if (string.upper(name) == string.upper(clearance[i])) then return true end
end
return false
end



local function onMessaged(msg, recipient, speaker)
local source = string.lower(speaker.Name)

if msg == start or msg == stop then

if (checkClearance(source)) then

if msg == start then
script.Parent.Visible = true
end

if msg == stop then
script.Parent.Visible = false
end

end

end
end



function onPlayerJoin(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onMessaged(msg, recipient, newPlayer) end)
end

game.Players.ChildAdded:connect(onPlayerJoin)


"Intellectuals solve problems, geniuses prevent them."
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
26 Jan 2015 01:18 PM
when you're doing something locally you don't use PlayerAdded
Report Abuse
EmperorD is not online. EmperorD
Joined: 31 Jan 2012
Total Posts: 386
26 Jan 2015 02:56 PM
No luck, still nothing


"Intellectuals solve problems, geniuses prevent them."
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