a = game.Workspace.NewName.Value hitherebuddy = script.Parent.Parent.Parent.Parent.Parent.Parent Player = game.Players.LocalPlayer function buy() local Part = hitherebuddy.Part Part.BrickColor = BrickColor.new ("Really black") script.Parent.Parent[a].BorderSizePixel = 0 print "blue border is now 0" workspace.NewName.Value = script.Parent.Name script.Parent.BorderSizePixel = 3 end script.Parent.MouseButton1Down:connect(buy)
a = game.Workspace.NewName.Value hitherebuddy = script.Parent.Parent.Parent.Parent.Parent.Parent Player = game.Players.LocalPlayer function buy() local Part = hitherebuddy.Part Part.BrickColor = BrickColor.new ("Really blue") script.Parent.Parent[a].BorderSizePixel = 0 print "black border is now 0" workspace.NewName.Value = script.Parent.Name script.Parent.BorderSizePixel = 3 end script.Parent.MouseButton1Down:connect(buy)
When the black square is pressed the blue square looses it's border (border is set to 0) and NewName.Value becomes "Black" However when the blue square is pressed the black square does not loose it's border but the Value of NewName does become "Blue" I do not know why this happens and i need help.