Custom Forsaken game / Skins

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    So apparently i wanted to make a custom Forsaken game with OCS. Everything was fine but the problem was, where do i put rigs for skins? Everything that i try leads to:
    ServerStorage.ServerSystems.InventoryManager:118: attempt to index nil with 'Value'
  2. What is the issue? Include screenshots / videos if possible!
    The issue is that i cant find the right place of putting a rig.
  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    I tried moving it but it didnt work, and creator hub didn’t help.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

3 Likes

And what line of code is causing that error? It’s trying to find something and it’s not able to

1 Like

That code is

            if ActorValueSkin.Value == StringItem then
				ActorValueSkin.Value = ''
			else 
				ActorValueSkin.Value = StringItem
			end

So it gets a value from a random DataStore and tries to check the non-existent value

Whatever ActorValueSkin is, it is not defined

It gets the value a random data store

There are no data stores if it’s a new game, and it has a Value property so it sounds like it’s meant to be a StringValue, do you know what that value is used for in the code?

1 Like

for selecting skins maybe, fully i dont know :confused:

See if you’re able to avoid that check without anything breaking (just comment it out), you could also try to figure out what it’s for

1 Like

i don’t really know about forsaken but Skin is just a cosmetic reskin It updates the characters appearance textures mesh accessories or animations etc and It does not create a new character entity you’re still using the same player model under-the-hood. better use external data to load skins dynamically and don’t use Object values please :pray: :sob: better use table also read about my oop table it’s gonna help you about that Full tutorial about OOP

local module = {}
module.__index = {}

function module.new(player: Player)
	local self = setmetatable({
		--//Variables
		
		player = player,
		Character = player.Character or player.CharacterAdded:Wait(),
		
		SkinColor = Color3.fromRGB(255, 211, 134),
		
		--//I Used a number better for saving
		SkinID = 1,
		--anything else you want to add
	}, module)
	
	
	
	return self
end

function module.ApplySkin(self, num: number)
	
	self.SkinID = tonumber(num)
	--you're codes
end

function module.SaveData(self)
	--saveing all faces
end

return module
local module = require(...)
local data = module.new(YSH122331)

data :ApplySkin(2)
data :SaveData()
1 Like

okay now i figured put that this bug was only for my char. idk why so i’ll go researching more ;_;

1 Like