This is my script.
door = script.Parent badgeholder = door.Parent.BadgeID.Value local badgeservice = game:GetService("BadgeService")
function onTouched(hit) if hit.Parent:FindFirstChild("Humanoid") then local p = game.Players:GetPlayerFromCharacter(hit.Parent) if p then if badgeservice:UserHasBadgeAsync(p.UserId, badgeholder) then door.Transparency = 0.8 door.CanCollide = false wait(0.3) door.Transparency = 0.5 door.CanCollide = true else hit.Parent.Humanoid.Health = 0 end end end end
door.Touched:connect(onTouched)
Do I have to change it in a way so that it can work from another game?

1 comment
first of can u format it so it doesn't kill my eyes while looking at it?