Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Unable to assign property MeshId. Script write access is restricted?

--Note That Everything Is Correctly Done--

It Breaks At this line "PlrCha:FindFirstChild(v.Name).MeshId = v.MeshId"

local PacksIDs = AS:GetAssetIdsForPackage(T)
			local PlrCha = plr.Character
			for i ,v in pairs(PacksIDs) do
				wait()
				if plr.Character:FindFirstChild('Humanoid') and plr.Character:FindFirstChild('Humanoid').Health > 0 then
					local LoadedPack = IS:LoadAsset(v)
					local LoadedPackChild = LoadedPack:FindFirstChild('R15'):GetChildren()
					for i ,v in pairs(LoadedPackChild) do 
						wait()
						if PlrCha:FindFirstChild(v.Name) then
							PlrCha:FindFirstChild(v.Name).MeshId = v.MeshId
						end
					end
					else break
				end
			end		

I am trying to make a Gui that Allows the Players to change their Character package by using it's ID.

Is there any way to fix this? or any alternative ways?

Thank you for your support

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.