Advertisement
Guest User

fghfh

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. script.Parent.Touched:connect(function(p)
  2. if p.Parent.Name == "Key1" then -- Instead of key1, type the name of your tool
  3. script.Parent.Transparency = 0.5
  4. script.Parent.CanCollide = false
  5. wait(1)
  6. script.Parent.Transparency = 0
  7. script.Parent.CanCollide = true
  8. end
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement