1MinuteRoblox

Making a Tycoon Materializer Script by 1MinuteRobloxTutorials

Mar 23rd, 2024 (edited)
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local buttons = script.Parent:FindFirstChild("Buttons")
  2. local bar = script.Parent:FindFirstChild("Bar")
  3.  
  4. local values = script.parent.parent.parent.Values
  5.  
  6. for i, v in pairs(buttons:GetChildren()) do
  7. v.ClickDetector.MouseClick:Connect(function()
  8. values.MaterialValue.Value = v.Material.Name
  9. bar.Material = v.Material.Name
  10. end)
  11. end
  12.  
  13. --Scripted by 1MinuteRobloxTutorials--
Advertisement
Add Comment
Please, Sign In to add comment