Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local buttons = script.Parent:FindFirstChild("Buttons")
- local bar = script.Parent:FindFirstChild("Bar")
- local values = script.parent.parent.parent.Values
- for i, v in pairs(buttons:GetChildren()) do
- v.ClickDetector.MouseClick:Connect(function()
- values.MaterialValue.Value = v.Material.Name
- bar.Material = v.Material.Name
- end)
- end
- --Scripted by 1MinuteRobloxTutorials--
Advertisement
Add Comment
Please, Sign In to add comment