ServerScript not creating ObjectValue?
01 | local plr = script.Parent |
02 | local weapons = plr.plrData.ownedWeapons |
03 | weapons.ChildAdded:Connect( function (newwep) |
04 | if newwep:IsA( "Tool" ) then |
05 | local id = newwep:FindFirstChild( "ID" ) |
06 | local val = Instance.new( "ObjectValue" ,plr) |
07 | val.Name = "PATH_" ..id |
Why isn't this ServerScript creating the ObjectValue? It is placed in a Player object. The script is not disabled.
If you want the script that clones it into the Player, here you go:
1 | game.Players.PlayerAdded:Connect( function (nplr) |
2 | game.ServerStorage.fixInv:Clone().Parent = nplr |
3 | nplr.fixInv.Disabled = false |