Can someone help me with this error:
Knife is not a valid member of Model
Knife is a tool inside the Model, WEP at my ReplicatedStorage
So here is the Script:
for i, v in pairs(game.Players:GetPlayers()) do
backpack = v:FindFirstChild("Backpack")
if backpack then
wepaasd = v:FindFirstChild("Weapon") -- check if the player has the StringValue, Weapon
if wepaasd then
-- error
if wepaasd.Value == "Knife" then
tool = weps.Knife
tool:Clone()
tool.Parent = backpack
-- could be an error...
elseif wepaasd.Value == "Sword" then
tool1 = weps.Sword
tool1:Clone()
tool1.Parent = backpack
end
end
end
end
I made multiple edits and tests, but still, the error is still inside the script. Admins, please lock this question when i approved a helpful answer...
