|
| 11 Oct 2012 03:35 PM |
It returns no output and there are already values in the player for it.
It is supposed to check if the value (e.x. michaelofthefuture1) is equal to "0" and, if it is, add one to the "Candy" Value.
Otherwise, if the value is equal to "1" it will say: "User already has this item".
local dialog = script.Parent dialog.DialogChoiceSelected:connect(function(player, choice) local stats = player:FindFirstChild('leaderstats') if not stats then return end local candy = stats:FindFirstChild('Candy') if not candy then return end
local Value1 = player.""..player.."1" if choice == script.Parent.DialogChoice.Choice3 then if Value1.Value == 1 then print("User already has this item") elseif Value1.Value == 0 then candy.Value = candy.Value + 1 Value1.Value = 1 end end end)
|
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 03:36 PM |
>local Value1 = player.""..player.."1"
What is this line supposed to be? |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 03:37 PM |
| It is supposed to tell the script to look for a value named PLAYERNAME1. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Oct 2012 04:20 PM |
| I need to get this place done by the 15th. |
|
|
| Report Abuse |
|
|