Is it possible to do visible the part/parts/mesh/meshs to person that owns a badge?

Is it possible, please write if it’s possible.And, I forgot to write, the code I tried to do it:

local badgeService = game:GetService("BadgeService")
local badgeId = 2143254607
local plr = game:GetService("Players").LocalPlayer

if badgeService:UserOwnsBadgeAsync(plr, badgeId) then
		script.Parent.Blanket.Transparency = 0
		script.Parent.Main.Transparency = 0
		script.Parent.Mattress.Transparency = 0
		script.Parent.Pillow.Transparency = 0
		script.Parent.Wood1.Transparency = 0
		script.Parent.Wood2.Transparency = 0
		script.Parent.Wood3.Transparency = 0
		script.Parent.Wood4.Transparency = 0
		script.Parent.Wood5.Transparency = 0
		script.Parent.Blanket.CanCollide = true
		script.Parent.Main.CanCollide = true
		script.Parent.Mattress.CanCollide = true
		script.Parent.Pillow.CanCollide = true
		script.Parent.Wood1.CanCollide = true
		script.Parent.Wood2.CanCollide = true
		script.Parent.Wood3.CanCollide = true
		script.Parent.Wood4.CanCollide = true
		script.Parent.Wood5.CanCollide = true
	else
		script.Parent.Blanket.Transparency = 1
		script.Parent.Main.Transparency = 1
		script.Parent.Mattress.Transparency = 1
		script.Parent.Pillow.Transparency = 1
		script.Parent.Wood1.Transparency = 1
		script.Parent.Wood2.Transparency = 1
		script.Parent.Wood3.Transparency = 1
		script.Parent.Wood4.Transparency = 1
		script.Parent.Wood5.Transparency = 1
		script.Parent.Blanket.CanCollide = false
		script.Parent.Main.CanCollide = false
		script.Parent.Mattress.CanCollide = false
		script.Parent.Pillow.CanCollide = false
		script.Parent.Wood1.CanCollide = false
		script.Parent.Wood2.CanCollide = false
		script.Parent.Wood3.CanCollide = false
		script.Parent.Wood4.CanCollide = false
		script.Parent.Wood5.CanCollide = false
	end

Yes, it is possible. Are there any errors, because the code looks fine. (On a side note, consider either looping through the contents of a model to change the properties of parts inside it, or simply keep the entire model in a storage service when you want it out of the game world)

Yes, there’s an error code.But I didn’t understand your side note.And things I want to do appear or dissapear are mesh(Not all, some of them).Anyways, the error code:

20:46:25.769 Script 'Workspace.Map.Bed Doors.Script', Line 5 - Studio - Script:5

Is that really the whole thing? Im pretty sure it would atleast tell you your mistake, not just the line number…

Actually, I think I see whats wrong… are you sure you’re using a function that exists? Its UserHasBadgeAsync