Advertisement
Guest User

Untitled

a guest
Jan 6th, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. for i, v in pairs(game:GetService("Workspace").Game:GetDescendants()) do
  2. if v.Name == "DoorPrompt" then
  3. local clone = v:Clone()
  4. clone.Parent = v.Parent
  5. local par = v.Parent
  6. v:Destroy()
  7. clone.Triggered:Connect(function()
  8. par.Parent.Transparency = 0.75
  9. par.Parent.CanCollide = false
  10. wait(3)
  11. par.Parent.Transparency = 0
  12. par.Parent.CanCollide = true
  13. end)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement