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