Advertisement
Sungmingamerpro13

SelectionBox With Money

Aug 14th, 2022
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. script.Parent.ClickDetector.MouseHoverEnter:Connect(function()
  2. if not script.Parent:FindFirstChild("SelectionBox") then
  3. local SelectionBox = Instance.new("SelectionBox")
  4. SelectionBox.Adornee = script.Parent
  5. SelectionBox.Parent = script.Parent
  6. SelectionBox.Color3 = Color3.new(1, 1, 1)
  7. SelectionBox.Transparency = 0.8
  8. end
  9. end)
  10.  
  11. script.Parent.ClickDetector.MouseClick:Connect(function(player)
  12. if player.Money.Value >= 10 then
  13. game.ServerStorage.Foods.Sandwich:Clone().Parent = player.Backpack
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement