New script....
local player = script.Parent.Parent.Parent.Parent.Parent
local points = 3
script.Parent.MouseButton1Down:connect(function(down)
for i, v in pairs (script.Parent.Parent.ImageLabel:GetChildren()) do
if v.Name == "B1" and v.Name == "I1" and v.Name == "N1" and v.Name == "G1" and v.Name == "O1" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "B2" and v.Name == "I2" and v.Name == "N2" and v.Name == "G2" and v.Name == "O2" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "B3" and v.Name == "I3" and v.Name == "N3" and v.Name == "G3" and v.Name == "O3" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "B4" and v.Name == "I4" and v.Name == "N4" and v.Name == "G4" and v.Name == "O4" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "B5" and v.Name == "I5" and v.Name == "N5" and v.Name == "G5" and v.Name == "O5" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "B1" and v.Name == "B2" and v.Name == "B3" and v.Name == "B4" and v.Name == "B5" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "I1" and v.Name == "I2" and v.Name == "I3" and v.Name == "I4" and v.Name == "I5" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "N1" and v.Name == "N2" and v.Name == "N3" and v.Name == "N4" and v.Name == "N5" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "G1" and v.Name == "G2" and v.Name == "G3" and v.Name == "G4" and v.Name == "G5" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
if v.Name == "O1" and v.Name == "O2" and v.Name == "O3" and v.Name == "O4" and v.Name == "O5" then
if v.ImageLabel.Visible == true then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + points
end
end
end
end) |