Advertisement
krLuCiEzkr

Owner Door Script

Dec 11th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. script.Parent.Touched:Connect(function(hit)
  2. if hit.Parent and hit.Parent:FindFirstChild("Humanoid") and game.Players:GetPlayerFromCharacter(hit.Parent) then
  3. local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
  4. if Player.UserId == game.CreatorId then
  5. script.Parent.CanCollide = false
  6. script.Parent.Transparency = .5
  7. wait(3)
  8. script.Parent.CanCollide = true
  9. script.Parent.Transparency = 0
  10. else
  11. hit.Parent:BreakJoints()
  12. end
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement