Skip to content

Attempt to index nil with :GetDescendants() #3

@phyouthcenter1

Description

@phyouthcenter1

Console:

image

Line 41 Function:

function Morph:SeekFolder(Folder)
	for i,v in pairs(self.MorphFolder:GetDescendants()) do
		if v:IsA('Folder') then
			if v.Name == Folder then
				return v
			end
		end
	end
end

My code:

local module = require(script.Parent.MorphModule)

module.new(game.ServerStorage.Morphs)

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		module:ApplyFullMorph(plr,"Chancellor",true)
	end)
end)

Explorer:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions