Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
- tool.Name = "'Key card'"
- card = Instance.new("Part", game.Players.LocalPlayer.Backpack["'Key card'"])
- card.Size = Vector3.new(0.6, 0.1, 0.9)
- card.Material = "Glass"
- card.Reflectance = 5
- card.BrickColor = BrickColor.new("Medium stone grey")
- card.Name = "Handle"
- card.Touched:connect(function(b)
- if b.Parent.Name == "block" then
- grandpa = b.Parent.Parent
- hi = b.Parent:Clone()
- b.Parent:Remove()
- grandpa.scn.glow.BrickColor = BrickColor.new("Bright green")
- beep = Instance.new("Sound", game.Players.LocalPlayer.Character)
- beep.Looped = false
- beep.SoundId = "rbxassetid://135232042"
- beep.Volume = 2
- beep:Play()
- wait(2)
- hi.Parent = grandpa
- grandpa.scn.glow.BrickColor = BrickColor.new("Bright red")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement