|
| 12 Jun 2013 02:40 PM |
If it's spelled locl, is it supposed to be local?
Here's the script
SwordCost = 35 locl = script.Parent.Parent.Parent.Parent.leaderstats -- Assuming this will be on a >Frame<
script.Parent.ShopGUI.MouseButton1Click:connect(function() if locl.KOs.Value == SwordCost then game.Lighting.Cerulean_Vengeance:clone().Parent = locl.Backpack end end)
Also, if the gear in the lighting is Cerulean Vengeance, not Cerulean_Vengeance, will the script still work? |
|
|
| Report Abuse |
|
|
| |
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 12 Jun 2013 02:43 PM |
No, you put local infront of a variable, for example:
local locl = script.Parent.Parent.Parent.Parent.leaderstats |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2013 02:45 PM |
Can you fix the script for me? I don't understand, I'm new to scripting.
Then post the full script here? |
|
|
| Report Abuse |
|
|
|
| 12 Jun 2013 02:46 PM |
| Also, what does LOCL mean/ |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 12 Jun 2013 02:47 PM |
'locl' is a variable that was defined.
local SwordCost = 35 local locl = script.Parent.Parent.Parent.Parent.leaderstats -- Assuming this will be on a >Frame<
script.Parent.ShopGUI.MouseButton1Click:connect(function() if locl.KOs.Value == SwordCost then game.Lighting["Cerulean_Vengeance"]:clone().Parent = locl.Parent.Backpack end end) |
|
|
| Report Abuse |
|
|
| |
|