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: Script not working?

Previous Thread :: Next Thread 
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
25 Jan 2016 01:35 PM
The script's purpose is to make a screengui frame that is in the startergui visible when it is equipped, and invisible when it is unequipped. Can someone tell me what part is wrong? (If i make a error, woops, I only just started to script, thanks.)

========================================================================================

local tool = script.Parent
local function onEquip()
if tool.Equipped then
game.StarterGui.RequipGui.Frame.Visible = true
end

end

local tool = script.Parent
local function onUnequip()
if tool.Unequipped then
game.StarterGui.RequipGui.Frame.Visible = false
end

end
Report Abuse
WoolHat is not online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
25 Jan 2016 01:39 PM
You're changing the StarterGui, instead of the individual player's PlayerGui. You can also just remove the if statements
Report Abuse
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
25 Jan 2016 01:43 PM
So I just remove the if statements?
Report Abuse
Alimegacorn is not online. Alimegacorn
Joined: 24 May 2013
Total Posts: 899
25 Jan 2016 01:55 PM
bump
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