Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. script.Parent.Touched:Connect(function(hit)
  2. if hit.Parent.Name == "Keycard" then
  3. script.Parent.CanCollide = false
  4. script.Parent.Transparency = 1
  5. end
  6.  
  7. script.Parent.TouchEnded:Connect(function(hit)
  8. if hit.Parent.Name == "Keycard" then
  9. script.Parent.CanCollide = true
  10. script.Parent.Transparency = 0
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement