im trying to change the mesh of a players sword using findfirstchild, but i recieved a nil value error for the local
local Dd = plr.Backpack:FindFirstChild("ClassicSword")
Dd.Handle.Mesh.MeshId = "http://www.roblox.com/asset/?id=201941127"
im trying to change the mesh of a players sword using findfirstchild, but i recieved a nil value error for the local
local Dd = plr.Backpack:FindFirstChild("ClassicSword")
Dd.Handle.Mesh.MeshId = "http://www.roblox.com/asset/?id=201941127"
More than likely is that Dd is nil, and you're trying to access it anyway.
Try using WaitForChild instead:
local Dd = plr:WaitForChild("Backpack"):WaitForChild("ClassicSword")
Dd.Handle.Mesh.MeshId = "rbxassetid://201941127"
This discussion is preserved as it was. New answers, comments, and votes are closed.