Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || BADGE DOOR
- ]]
- local BadgeService = game:GetService("BadgeService")
- local id = 0
- local function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player ~= nil then
- if BadgeService:UserHasBadgeAsync(player.UserId, id) then
- script.Parent.Transparency = 0.8
- script.Parent.CanCollide = false
- wait(1)
- script.Parent.Transparency = 0.5
- script.Parent.CanCollide = true
- else
- player.Character:BreakJoints()
- end
- end
- end
- script.Parent.Touched:Connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement