Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

" 12 is not a valid member of IntValue" ? [closed]

Asked by 6 years ago

idk what to do

local Dad = game.ServerStorage.PlayerData:WaitForChild("Dadithan", 20)
local F = Dad.Inventory


function si()
    if F["12"].Value == 1 then
        F["12"].Value = 100
        F["12"].Metal.Value = 14
        F["12"].Wood.Value = 15 
        F["12"].Name = "40"
    end
end

si()

0
Please explain your question. theCJarmy7 1293 — 6y
0
you don't even have the number 12 in that Earthkingiv 51 — 6y

Closed as Too Broad by User#5423, DevNetx, and RayCurse

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago

Create an instance of IntValue:

local i = Instance.new("IntValue")

Then apply it to your script.

0
Use the number of your script with the Instance. DeceptiveCaster 3761 — 6y
Ad