Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local door = script.Parent
- local debounce = false
- while wait() do
- if plr.Badges > 1 then
- local distance = (door.Position - char.HumanoidRootPart.Position).Magnitude
- if distance < 10 and debounce == false then
- debounce = true
- for i = 1,50 do
- wait()
- door.Transparency = door.Transparency + 0.02
- end
- else
- for i = 1,50 do
- wait()
- door.Transparency = door.Transparency - 0.02
- end
- debounce = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement