Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CoffeeMachine = script.Parent
- local TouchPart = CoffeeMachine.TouchPart
- local FakeCup = CoffeeMachine.FakeCup
- TouchPart.Touched:Connect(function(PartThatTouched)
- local Cup = PartThatTouched.Parent
- local Character = Cup.Parent
- if Cup.Name == "Cup" then
- Cup.Parent = game.ReplicatedStorage
- FakeCup.Transparency = 0
- wait(1)
- FakeCup.Transparency = 1
- Cup.Parent = Character
- Cup.Coffee.Transparency = 0
- Cup.Name = "Coffee"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement