Advertisement
MedelRoblox

Proximity Prompt Interact Script

Jan 12th, 2021
2,726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local ProximityPrompt = script.Parent
  2. local Door = script.Parent.Parent
  3.  
  4. ProximityPrompt.Triggered:Connect(function()
  5. if ProximityPrompt.ActionText == "Open" then
  6. Door.Transparency = .5
  7. Door.CanCollide = false
  8. ProximityPrompt.ActionText = "Close"
  9. else
  10. Door.Transparency = 0
  11. Door.CanCollide = true
  12. ProximityPrompt.ActionText = "Open"
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement