Advertisement
pitrioptixiop

Roblox | Door lock script

Aug 1st, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.64 KB | None | 0 0
  1. lp = game.Players.LocalPlayer
  2. char = lp.Character
  3. tool = Instance.new("Tool",lp.Backpack)
  4. tool.Name = "Door Lock"
  5. tool.ToolTip = "retrojooooono"
  6. tool.CanBeDropped = false
  7. handle = Instance.new("Part",tool)
  8. handle.Name = "Handle"
  9. handle.Size = Vector3.new(2,2,0.1)
  10. handle.Transparency = 1
  11. decal = Instance.new("Decal",handle)
  12. decal.Face = Enum.NormalId.Front
  13. decal.Texture = "http://www.roblox.com/asset/?id=2157778553"
  14. decal2 = Instance.new("Decal",handle)
  15. decal2.Face = Enum.NormalId.Back
  16. decal2.Texture = "http://www.roblox.com/asset/?id=2157778553"
  17. tool.Activated:connect(function()
  18. target = lp:GetMouse().Target
  19. if target.CanCollide == false then
  20. target.CanCollide = true
  21. decal = Instance.new("Decal",target)
  22. decal.Face = Enum.NormalId.Front
  23. decal.Texture = "http://www.roblox.com/asset/?id=2157778553"
  24. decal2 = Instance.new("Decal",target)
  25. decal2.Face = Enum.NormalId.Back
  26. decal2.Texture = "http://www.roblox.com/asset/?id=2157778553"
  27. decal3 = Instance.new("Decal",target)
  28. decal3.Face = Enum.NormalId.Left
  29. decal3.Texture = "http://www.roblox.com/asset/?id=2157778553"
  30. decal4 = Instance.new("Decal",target)
  31. decal4.Face = Enum.NormalId.Right
  32. decal4.Texture = "http://www.roblox.com/asset/?id=2157778553"
  33. decal5 = Instance.new("Decal",target)
  34. decal5.Face = Enum.NormalId.Top
  35. decal5.Texture = "http://www.roblox.com/asset/?id=2157778553"
  36. decal6 = Instance.new("Decal",target)
  37. decal6.Face = Enum.NormalId.Bottom
  38. decal6.Texture = "http://www.roblox.com/asset/?id=2157778553"
  39. tool:Destroy()
  40. wait(60)
  41. decal:Destroy()
  42. decal2:Destroy()
  43. decal3:Destroy()
  44. decal4:Destroy()
  45. decal5:Destroy()
  46. decal6:Destroy()
  47. target.CanCollide = false
  48. end
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement