|
| 23 Nov 2017 02:03 AM |
How do I change this script so when I click it the value in workspace will change?
local value = workspace.Value
value.Changed:Connect(function() if value.Value then script.Parent.StoredAmmo.Value = 90 end end) |
|
|
| Report Abuse |
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 23 Nov 2017 07:49 AM |
do you mean when you click the part that the script is inside of, the value in workspace will change?
local cd = Instance.new("ClickDetector",script.Parent) cd.MouseClick:Connect(function() workspace.Value.Value = --enter new value here end) |
|
|
| Report Abuse |
|