|
| 07 Sep 2011 12:25 PM |
sword = game.Lighting.SparklySword
script.Parent.DialogChoiceSelected:connect(function(shop) if game.workspace.leaderstats:FindFirstChild().Gold.Value = <=200 then sword:Clone() Clone.Parent = Players:FindFirstChild().Starterpack end end)
the output says it expects a then near '=' on line 4 |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 12:29 PM |
| nvm, i checked roblox wiki and i know whats wrong |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2011 12:38 PM |
iv'e edited it to this
sword = game.Lighting.SparklySword cash = game.Players:FindFirstChild().leaderstats.Gold.value
script.Parent.DialogChoiceSelected:connect(function(shop) if cash <= script.Parent.Cost.Value then cash.Value = cash.value - 200 sword:Clone() Clone.Parent = Players:FindFirstChild().Starterpack end end)
and now the dialog simply says 'missing argument' |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 12:39 PM |
| you need a then after the argument on the first if line. |
|
|
| Report Abuse |
|
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 07 Sep 2011 12:41 PM |
| its alright, we always make mistakes every now and then :D |
|
|
| Report Abuse |
|
|