|
| 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
|
  |
| 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 |
|
|
|
| 25 Jan 2016 01:43 PM |
| So I just remove the if statements? |
|
|
| Report Abuse |
|
|
| |
|