local plr = game.Players.LocalPlayer
local foil = plr.Backpack:FindFirstChild("LinkedSword3").Handle.Mesh
local foil2 = plr.StarterGear:FindFirstChild("LinkedSword3").Handle.Mesh
script.Parent.MouseButton1Click:Connect(function()
if foil.TextureId == ("rbxassetid://2150176816") or foil2.TextureId == ("rbxassetid://2150176816") then
print ("Already Has This Item")
else
if plr.leaderstats.Wins.Value>=5 then
foil.TextureId = ("rbxassetid://2150176816")
foil2.TextureId = ("rbxassetid://2150176816")
else
print ("Does Not Have Enough Wins")
end
end
end)
".LocalScript:3: attempt to index a nil value 19:26:13.576 - Stack Begin"
StarterGear is a nil value? Its a shop that switches sword textures. The whole script works without the startergear, but when you reset it goes back to normal, which is why I want to include startergear. Thanks ~innhale

1 comment
Where is StarterGear being created, It's most likely getting made after this script.